| 1 | ## Example: using Azure Active Directory authentication |
| 2 | |
| 3 | This example provisions a Storage Container using Azure Active Directory for authentication. |
| 4 | |
| 5 | To run this example you need the following Environment Variables set: |
| 6 | |
| 7 | * `ARM_CLIENT_ID` - The UUID of the Service Principal/Application |
| 8 | * `ARM_CLIENT_SECRET` - The Secret associated with the Service Principal |
| 9 | * `ARM_ENVIRONMENT` - The Azure Environment (`public`, `germany` etc) |
| 10 | * `ARM_SUBSCRIPTION_ID` - The UUID of the Azure Subscription |
| 11 | * `ARM_TENANT_ID` - The UUID of the Azure Tenant |
| 12 | |
| 13 | You also need to update `main.go` to set the variable `storageAccountName` to an existing Storage Account (since we don't provision one for you). |
| 14 | |
| 15 | Assuming you've got Go installed - you can then run this using: |
| 16 | |
| 17 | ```bash |
| 18 | $ go run main.go |
| 19 | ``` |