Forum Discussion

xiaochenchi's avatar
xiaochenchi
Copper Contributor
Mar 14, 2019

Does vNet peering cause a circular dependency error in Automation script?

I am sorry if someone has asked this before. I did search a while and could not find anything. When a peering is set up between two vNets, VNET1 and VNET2, there would be two 'dependsOn' properties in the template generated from the Automation script blade of the resource group. VNET1 would depend on VNET2, and VNET2 would depend on VNET1. This causes a circular dependency error and the deployment of the template would fail. If you manually remove the two 'dependsON' properties, the deployment would succeed with the same result. Why does vNet peering add the dependency properties in the template which cause circular dependency error? Thanks

Resources