Deploy a Virtual Machine in Azure

In the "Code Editor" tab, open the vm.tf file.

Your task: Add resources to deploy a Linux virtual machine named my-vm in the resource group and virtual network defined in main.tf and vnet.tf. Use size Standard_B1s, admin username azureuser, and disable password authentication.

GitOps Repository

  • 📁 /root/learn-terraform-azure-vm
    • 📄 provider.tf
    • 📄 main.tf
    • 📄 vnet.tf
    • 📄 vm.tf

Code Editor

Terminal