Using Terraform in Azure Cloud Shell
In Chapter 1, Setting Up the Terraform Environment, we studied the steps involved in installing Terraform on a local machine.
In Azure Cloud Shell, Microsoft has integrated Terraform into the list of tools that are installed by default.
In this recipe, we will see how to write a Terraform configuration and use Terraform in Azure Cloud Shell.
Getting ready
The prerequisite for this recipe is to have an Azure subscription and to be connected to this subscription via the Azure portal, which is accessible here: https://portal.azure.com/.
Note that this prerequisite applies to all recipes in this chapter.
In addition, you need to associate your Azure Cloud Shell with an existing Azure Storage Account or create a new one, as explained in the following documentation: https://docs.microsoft.com/azure/cloud-shell/persisting-shell-storage.
How to do it…
To use Terraform in Azure Cloud Shell, perform the...