Home

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

%3CLINGO-SUB%20id%3D%22lingo-sub-369823%22%20slang%3D%22en-US%22%3EDoes%20vNet%20peering%20cause%20a%20circular%20dependency%20error%20in%20Automation%20script%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-369823%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20sorry%20if%20someone%20has%20asked%20this%20before.%20I%20did%20search%20a%20while%20and%20could%20not%20find%20anything.%20When%20a%20peering%20is%20set%20up%20between%20two%20vNets%2C%20VNET1%20and%20VNET2%2C%20there%20would%20be%20two%20'dependsOn'%20properties%20in%20the%20template%20generated%20from%20the%20Automation%20script%20blade%20of%20the%20resource%20group.%20VNET1%20would%20depend%20on%20VNET2%2C%20and%20VNET2%20would%20depend%20on%20VNET1.%20This%20causes%20a%20circular%20dependency%20error%20and%20the%20deployment%20of%20the%20template%20would%20fail.%20If%20you%20manually%20remove%20the%20two%20'dependsON'%20properties%2C%20the%20deployment%20would%20succeed%20with%20the%20same%20result.%20Why%20does%20vNet%20peering%20add%20the%20dependency%20properties%20in%20the%20template%20which%20cause%20circular%20dependency%20error%3F%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-369823%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-375786%22%20slang%3D%22en-US%22%3ERe%3A%20Does%20vNet%20peering%20cause%20a%20circular%20dependency%20error%20in%20Automation%20script%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-375786%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301262%22%20target%3D%22_blank%22%3E%40xiaochenchi%3C%2FA%3E%2C%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20seems%20that%20this%20is%20product%20feedback%2C%20I%20think%20that%20since%20the%20generation%20of%20arm%20templates%20is%20automated%20then%20the%20system%20detects%20that%20there%20is%20a%20dependency%20between%20the%20two%20VNets%20and%20then%20generate%20the%20template%20to%20reflect%20this%20cross-dependency%2C%20I%20think%20this%20is%20apparent%20in%20VNets%20case%20but%20I%20think%20that%20there%20are%20situations%20where%20the%20generation%20system%20will%20reproduce%20the%20same%20situation%20but%20with%20different%20resources%2C%20anyway%20I%20posted%20feedback%20on%20this%20link%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ffeedback.azure.com%2Fforums%2F217313-networking%2Fsuggestions%2F37127734-vnet-peering-circular-dependency-reference-due-to%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ffeedback.azure.com%2Fforums%2F217313-networking%2Fsuggestions%2F37127734-vnet-peering-circular-dependency-reference-due-to%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
xiaochenchi
New Contributor

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

1 Reply

Hi @xiaochenchi

it seems that this is product feedback, I think that since the generation of arm templates is automated then the system detects that there is a dependency between the two VNets and then generate the template to reflect this cross-dependency, I think this is apparent in VNets case but I think that there are situations where the generation system will reproduce the same situation but with different resources, anyway I posted feedback on this link https://feedback.azure.com/forums/217313-networking/suggestions/37127734-vnet-peering-circular-depen...

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Discussion - Updating our interface with Fluent touches
Elliot Kirk in Discussions on
102 Replies