diff --git a/.github/workflows/standalone-scenarios.json b/.github/workflows/standalone-scenarios.json index e544d2ca41..f540b9bd05 100644 --- a/.github/workflows/standalone-scenarios.json +++ b/.github/workflows/standalone-scenarios.json @@ -164,6 +164,7 @@ "networking/virtual_network/100-simple-vnet-subnets-nsgs", "networking/virtual_network/100-subnet-delegation", "networking/virtual_network/101-vnet-peering-nsg", + "networking/virtual_network/103-vnet-peering-v1", "networking/virtual_network/200-nsg-flow-logs", "networking/virtual_network/201-nsg-flow-logs-v1", "networking/virtual_subnets/100-simple-subnet-rbac", diff --git a/examples/networking/virtual_network/103-vnet-peering-v1/configuration.tfvars b/examples/networking/virtual_network/103-vnet-peering-v1/configuration.tfvars index 432ca77fb9..315251ff63 100644 --- a/examples/networking/virtual_network/103-vnet-peering-v1/configuration.tfvars +++ b/examples/networking/virtual_network/103-vnet-peering-v1/configuration.tfvars @@ -450,32 +450,62 @@ vnet_peerings_v1 = { # to peer with a vnet in a different subscription you can reference the id in from or to # or use vnet_key and lz_key - test_TO_hub_re1 = { - name = "test_TO_hub_re1" - from = { - id = "/subscriptions/xxxxxxxxxxxx/resourceGroups/vnet/providers/Microsoft.Network/virtualNetworks/vnet1" - } - to = { - vnet_key = "hub_re1" - } - allow_virtual_network_access = true - allow_forwarded_traffic = false - allow_gateway_transit = false - use_remote_gateways = false - } + # + # uncomment and adjust the following example for cross subscripiton vnet peering + # + # test_TO_hub_re1 = { + # name = "test_TO_hub_re1" + # from = { + # id = "/subscriptions/xxxxxxxxxxxx/resourceGroups/vnet/providers/Microsoft.Network/virtualNetworks/vnet1" + # } + # to = { + # vnet_key = "hub_re1" + # } + # allow_virtual_network_access = true + # allow_forwarded_traffic = false + # allow_gateway_transit = false + # use_remote_gateways = false + # } - hub_re1_TO_test = { - name = "hub_re1_TO_test" - from = { - vnet_key = "hub_re1" - } - to = { - id = "/subscriptions/xxxxxxxxxxxxx/resourceGroups/vnet/providers/Microsoft.Network/virtualNetworks/vnet1" - } - allow_virtual_network_access = true - allow_forwarded_traffic = false - allow_gateway_transit = false - use_remote_gateways = false - } + # hub_re1_TO_test = { + # name = "hub_re1_TO_test" + # from = { + # vnet_key = "hub_re1" + # } + # to = { + # id = "/subscriptions/xxxxxxxxxxxxx/resourceGroups/vnet/providers/Microsoft.Network/virtualNetworks/vnet1" + # } + # allow_virtual_network_access = true + # allow_forwarded_traffic = false + # allow_gateway_transit = false + # use_remote_gateways = false + # } + # test_TO_hub_re1 = { + # name = "test_TO_hub_re1" + # from = { + # id = "/subscriptions/xxxxxxxxxxxx/resourceGroups/vnet/providers/Microsoft.Network/virtualNetworks/vnet1" + # } + # to = { + # vnet_key = "hub_re1" + # } + # allow_virtual_network_access = true + # allow_forwarded_traffic = false + # allow_gateway_transit = false + # use_remote_gateways = false + # } + + # hub_re1_TO_test = { + # name = "hub_re1_TO_test" + # from = { + # vnet_key = "hub_re1" + # } + # to = { + # id = "/subscriptions/xxxxxxxxxxxxx/resourceGroups/vnet/providers/Microsoft.Network/virtualNetworks/vnet1" + # } + # allow_virtual_network_access = true + # allow_forwarded_traffic = false + # allow_gateway_transit = false + # use_remote_gateways = false + # } } diff --git a/main.tf b/main.tf index 522cf0d6da..26b084d4a1 100644 --- a/main.tf +++ b/main.tf @@ -40,7 +40,6 @@ provider "azurerm" { } } - data "azurerm_subscription" "primary" {} data "azurerm_client_config" "current" {}