You'll need the following values to authenticate to Azure:
- Subscription ID
- Tenant ID
These values can be obtained from the portal with the following instructions:
- Log in to your Azure account.
- Select Subscriptions in the left sidebar.
- Select the subscription to be used.
- Select Overview.
- Copy the Subscription ID.
For information on how to get Tenant ID, see this document.
After you obtain the values, set the following environment variables:
AZURE_TENANT_ID
AZURE_SUBSCRIPTION_ID
To set the environment variables on your development system:
(Note: Administrator access is required)
- Open the Control Panel.
- Select System Security > System.
- Select Advanced system settings on the left.
- Inside the System Properties window, select the Environment Variables button.
- Select the property you'd like to change, then select the Edit button. If the property name isn't listed, select the New button.
export AZURE_TENANT_ID="__TENANT_ID__"
export AZURE_SUBSCRIPTION_ID="__SUBSCRIPTION_ID__"