title | description | keywords | ms.topic | ms.date | ms.custom | adobe-target |
---|---|---|---|---|---|---|
Configure Terraform in Azure Cloud Shell with Azure PowerShell |
Learn how to configure Terraform in Azure Cloud Shell with Azure PowerShell |
terraform azure cli devops install configure portal interactive login rbac service principal automated script |
how-to |
03/18/2023 |
devx-track-terraform, mode-api, devx-track-azurepowershell |
true |
[!INCLUDE Terraform abstract]
This article shows how to get started with Terraform on Azure using Cloud Shell and PowerShell.
In this article, you learn how to:
[!div class="checklist"]
- Configure Cloud Shell
- Understand common Terraform and Azure authentication scenarios
- Authenticate via a Microsoft account from Cloud Shell (using Bash or PowerShell)
- Authenticate via a Microsoft account from Windows (using Bash or PowerShell)
- Create a service principal using the Azure CLI
- Create a service principal using Azure PowerShell
- Specify service principal credentials in environment variables
- Specify service principal credentials in a Terraform provider block
[!INCLUDE open-source-devops-prereqs-azure-subscription.md]
[!INCLUDE open-cloud-shell.md]
[!INCLUDE install-latest-version.md]
[!INCLUDE confirm-default-azure-subscription-or-authenticate.md]
[!INCLUDE authenticate-to-azure.md]
Troubleshoot common problems when using Terraform on Azure
[!div class="nextstepaction"] Create Azure resource group