Terraform with Azure Provider
Activity 3: Create a Storage account in Azure
- Manual Steps:
- Create a new resource group /find an existing resource group.
- Lets create a storage account
- Create a new resource group /find an existing resource group.
- We need to find a provider for azure Refer Here
- For resource group Refer Here and for storage account Refer Here
- Refer Here for authentication approaches
- For authentication lets install azure cli Refer Here. To authenicate into azure cli, launch powershell after installation
az login -
apply the template Refer Here for the changes.
-
Now lets add virtual network manually
- Refer Here for the terraform resource
- Apply the terraform template with
-auto-approve. Refer Here for the changeset
- Next Steps:
- We want to add flexibility to templates by parametrization/variables
- We need to understand order of creation
- What is the purpose of state file
