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}"
      }

      Terraform language logoazurerm_virtual_network_peering

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.