I completed Terraform course and Labs, Now I planned to practice it with Azure Playground.
How I can use Azure Client ID, Client Secret ID, and Tenant ID.
I can able to create a new “App Registration” but can’t able to assign roles.
So, I tried using my default account to get the
ClientID:
ClientSecret:
TenantID:
But I couldn’t able to get a secret value, How I can use it in Terraform for automation?. Please suggest the method to practice
TIA
Regards,
Ramprasath
The best way is probably to define those variables into your shell:
export ARM_CLIENT_ID=“00000000-0000-0000-0000-000000000000”
export ARM_CLIENT_SECRET=“00000000-0000-0000-0000-000000000000”
export ARM_SUBSCRIPTION_ID=“00000000-0000-0000-0000-000000000000”
export ARM_TENANT_ID=“00000000-0000-0000-0000-000000000000”
Terraform AzureRM provider will automatically refer to those variables.
The other way is to locally login with:
az login and az account set -s <subscription_id>