![]() ![]() ![]() az account showĪny changes you make via Terraform are on the displayed Azure subscription. Run az account show to verify the current Microsoft account and Azure subscription. Terraform automatically authenticates using information from the default Azure subscription. When you log in to the Azure portal with a Microsoft account, the default Azure subscription for that account is used. Verify that the downloaded version of Terraform is first in the path. Move the terraform file into the bin directory. If the directory doesn't exist, create a directory named bin. Run curl, replacing the placeholder with the URL from the previous step. This link is for the latest 64-bit Linux AMD version, which is appropriate for Cloud Shell. Otherwise, continue with the following steps. If you're fine working with the indicated version, skip to the next section. If the Terraform version installed in Cloud Shell isn't the latest version, you see a message indicating that the version of Terraform is out of date. This article shows you how to download and install the current version of Terraform.ĭetermine the version of Terraform being used in Cloud Shell. However, the updates come within a couple of weeks of release. Install latest version of Terraform in Azure Cloud ShellĬloud Shell automatically updates to the latest version of Terraform. If you haven't previously used Cloud Shell, configure the environment and storage settings.ģ. If necessary, log in to your Azure subscription and change the Azure directory. If you already have a Cloud Shell session open, you can skip to the next section. ![]() Azure subscription: If you don't have an Azure subscription, create a free account before you begin.Specify service principal credentials in a Terraform provider block.Specify service principal credentials in environment variables.Create a service principal using Azure PowerShell.Create a service principal using the Azure CLI.Authenticate via a Microsoft account from Windows (using Bash or PowerShell).Authenticate via a Microsoft account from Cloud Shell (using Bash or PowerShell).Understand common Terraform and Azure authentication scenarios. ![]()
0 Comments
Leave a Reply. |