azurerm_virtual_network

    0

    0

    lucycodes42

    Terraform snippets

    The code creates a virtual network called virtualNetwork1 with an address space of 10.0.0.0/16. The code also specifies the dns_servers for the virtual network.

    Shortcut: tf_azurerm_virtual_network

    resource "azurerm_virtual_network" "${MyResource}" {
       name = "virtualNetwork1"
       location = "West US"
       resource_group_name = "\${azurerm_resource_group.test.name}"
       address_space = ["10.0.0.0/16"]
       dns_servers = ["10.0.0.4"]
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.