Worked examples of Bicep and Terraform virtual machine quickstarts. These can be used to show the differences between the tooling and approaches.
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-terraform
Commands:
terraform init
terraform plan -out main.tfplan
terraform apply main.tfplan
terraform destroy
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-bicep?tabs=CLI
Commands:
az group create --name rg-foxtrot-mike --location eastus
az deployment group create --resource-group rg-foxtrot-mike --template-file main.bicep --parameters adminUsername=vmaddy
- You'll also be prompted to enter adminPassword. The minimum password length is 12 characters.
az group delete --name rg-foxtrot-mike