Last active
April 6, 2021 18:11
-
-
Save geekzter/fba403aeddd6000868d2611bccab9587 to your computer and use it in GitHub Desktop.
Use Azure CLI to authenticate to Terraform interactively, Azure CLI subscription takes precedence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az login | |
az account set --subscription 00000000-0000-0000-0000-000000000000 | |
$env:ARM_SUBSCRIPTION_ID=$(az account show --query "id" -o tsv) | |
$env:ARM_TENANT_ID=$(az account show --query "tenantId" -o tsv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment