You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy cross subscription peering however running into the error ResourceGroupNotFound. The strange thing is that it displays the remote RG correctly in the error, has sufficient rights on the remote subscription and also sets up the peering from local to remote however, just not the peering back (remote to local)...
I used the examples as described here. So I defined the lz_key and vnet_key. Both point in the correct direction.
Any clues?
Error │ Error: network.VirtualNetworkPeeringsClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="ResourceGroupNotFound" Message="Resource group 'cnts-rg-connectivity-vnet-myl' could not be found." │ │ with module.solution.azurerm_virtual_network_peering.peering["connectivity_to_apim"], │ on /home/vscode/.terraform.cache/prod/rover_jobs/20230622211752794115131/modules/solution/networking.tf line 165, in resource "azurerm_virtual_network_peering" "peering": │ 165: resource "azurerm_virtual_network_peering" "peering" { │ ╵ Terraform apply return code: 1 Error on or near line 110: Error running terraform apply; exiting with status 1
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm trying to deploy cross subscription peering however running into the error
ResourceGroupNotFound
. The strange thing is that it displays the remote RG correctly in the error, has sufficient rights on the remote subscription and also sets up the peering from local to remote however, just not the peering back (remote to local)...I used the examples as described here. So I defined the
lz_key
andvnet_key
. Both point in the correct direction.Any clues?
Error
│ Error: network.VirtualNetworkPeeringsClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="ResourceGroupNotFound" Message="Resource group 'cnts-rg-connectivity-vnet-myl' could not be found." │ │ with module.solution.azurerm_virtual_network_peering.peering["connectivity_to_apim"], │ on /home/vscode/.terraform.cache/prod/rover_jobs/20230622211752794115131/modules/solution/networking.tf line 165, in resource "azurerm_virtual_network_peering" "peering": │ 165: resource "azurerm_virtual_network_peering" "peering" { │ ╵ Terraform apply return code: 1 Error on or near line 110: Error running terraform apply; exiting with status 1
Code
peering.tfvars
vnet_peerings = { apim_to_connectivity = { name = "apim-to-connectivity" from = { vnet_key = "apim" } to = { lz_key = "connectivity_virtual_networks" vnet_key = "connectivity" } allow_virtual_network_access = true allow_forwarded_traffic = false allow_gateway_transit = false use_remote_gateways = false } connectivity_to_apim = { name = "connectivity-to-apim" from = { lz_key = "connectivity_virtual_networks" vnet_key = "connectivity" } to = { vnet_key = "apim" } allow_virtual_network_access = true allow_forwarded_traffic = false allow_gateway_transit = false use_remote_gateways = false } }
Beta Was this translation helpful? Give feedback.
All reactions