Skip to content

why an explicit dependsOn is not supported on a resource Group? #4114

Discussion options

You must be logged in to vote

Hi @brwilkinson

I understand what you are saying . However i have made it to work by using the following code. Setup is that i already have a RG in azure with tags, and i just want to use it . Value of lookup is true in the below code. What i cant understand is that even though i am not deploying the resource group because of the lookup condition, i was expectiing rg.name to be null or something, but strangely this works and because of this i am able to establish an implicit dependency using rg.name and i am not requiring a depends on . Can you please explain me this behavior. Please have a look at the main.bicep

targetScope= 'subscription'
param inputData object = json(loadTextContent('.…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@brwilkinson
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants