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've switched to using modules and since then i've not been able to successfully peer a network. I have a subnet module, vnet module, and a vnet peer module. When i first run terraform apply it fails as with this error:
Resource is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation." Details=[]
This is likely because i'm updating the VNET when i'm creating and updating the Subnets. I would usually put a "depends_on" so the resource waits for the subnet changes/updates to finish. However, i don't think this is possible with modules?
Is there any workarounds? Re-running apply works, but i'd prefer the code to deploy first time :) I can include my modules if required.
Actual Behavior
Error: Error applying plan:2 errors occurred:* module.VirtualNetworks.module.ManagementvNetPeering.azurerm_virtual_network_peering.vNetPeering:1 error occurred:* azurerm_virtual_network_peering.vNetPeering: Error Creating/Updating Virtual Network Peering "vn-prd-we-1" (Network "#####"/ Resource Group "rg#####"): network.VirtualNetworkPeeringsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ReferencedResourceNotProvisioned" Message="Cannot proceed with operation because resource /subscriptions/###################################/resourceGroups/###################/providers/Microsoft.Network/virtualNetworks/########### used by resource /subscriptions/######################/resourceGroups/################/providers/Microsoft.Network/virtualNetworks/##############/virtualNetworkPeerings/########### is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation." Details=[]
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Jul 25, 2019
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Azure RM Provider Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
I've switched to using modules and since then i've not been able to successfully peer a network. I have a subnet module, vnet module, and a vnet peer module. When i first run terraform apply it fails as with this error:
Resource is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation." Details=[]
This is likely because i'm updating the VNET when i'm creating and updating the Subnets. I would usually put a "depends_on" so the resource waits for the subnet changes/updates to finish. However, i don't think this is possible with modules?
Is there any workarounds? Re-running apply works, but i'd prefer the code to deploy first time :) I can include my modules if required.
Actual Behavior
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: