Configure Azure so Terraspace can connect to it. The recommended way is to:
- login with
- set up environment variables like
To configure your
az CLI, follow the Install the Azure CLI
When you run
az login you’ll be greeted with instructions to open up a webpage and enter the provided device token id.
$ az login To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code EXAMPLE12 to authenticate. $
That’s usually enough to set up the
az CLI. You can check with:
az account list -o table
Set up env variables
We set up
ARM_CLIENT_ID because terraspace uses it to handle things like automatically creating the Storage Account for the terraform state file. To get these env variables setup, follow the Azure Instructions.
The azure_check script is useful to check that access is working. You should get something like this.
$ ruby azure_check.rb Successfully connected to Azure with your ARM_CLIENT_ID and ARM_CLIENT_SECRET $
Next, we’ll create a new project.