Create a Virtual Network in Azure

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

Your task: Add resources to create a virtual network named my-vnet with address space ["10.0.0.0/16"] and a subnet named my-subnet with address prefix ["10.0.1.0/24"] in the resource group defined in main.tf.

GitOps Repository

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

Code Editor

Terminal