azurerm_virtual_network_peering

    0

    0

    lucycodes42

    Terraform snippets

    This code is creating a new virtual network peering connection between the two virtual networks, test1 and test2. The peering connection will use the remote_virtual_network_id to identify the other virtual network.

    Shortcut: tf_azurerm_virtual_network_peering

    resource "azurerm_virtual_network_peering" "${MyResource}" {
       name = "peer2to1"
       resource_group_name = "\${azurerm_resource_group.test.name}"
       virtual_network_name = "\${azurerm_virtual_network.test1.name}"
       remote_virtual_network_id = "\${azurerm_virtual_network.test2.id}"
    }
    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.