Terraform for Azure VM Provisioning
Lets use Azurerm backend
- create a new storage account Refer Here for official docs
- Refer Here for the changes to include azurerm backend and Refer Here for the official docs of azurerm backend
- In the demonstration, we have created a new workspace dev, that led to creation of a file in storage account
- Terraform apply has created the following resources
Lets Create a azure sql db
- For the changeset Refer Here and apply the changes
Lets create an nsg, nic and vm
- We are supposed to create a linux vm Refer Here
- Refer Here for the linux vm
- Refer Here for the changeset with necessary changes to create a vm and execute the provisioning based on variable
runningversion
How to use multiple providers with same name
- Refer Here
- Refer Here for the changeset which helped to create two vpcs in two diferent regions.
Dynamic Block
- Refer Here for official docs
- Refer Here for the easy example
- Refer Here for the changes.