Just an example of creating a vm in azure and installing saltstack minion using terraform
- An azure account.
- Terraform software installed.
- An azure resource group already created.
- A storage account to save the terraform state file and create a Service Principal (follow this tutorial).
Modify backend_config.tfvars and var_values.tfvars with your values
$ terraform workspace new DEV
$ terraform init -backend-config=backend_config.tfvars
$ terraform workspace select DEV
$ terraform plan -var-file=var_values.tfvars -out=tf_dev.plan
$ terraform apply tf_dev.plan
$ terraform destroy -var-file=var_values.tfvars