Skip to content

dependsOn for module? #7925

Answered by brwilkinson
skmkzyk asked this question in Q&A
Discussion options

You must be logged in to vote

@skmkzyk

Yes you can either have an explicit depends on OR if you reference the other module anywhere in a property value, it will add the depends on by default.

This shows where a reference to KV.name is used, so this would depend on that resource or module implicitly.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/KV-KeyVault.bicep#L176

then you just use the normal depends on syntax to explicitly define the same.

This WAF module depends on the Publicip module

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/WAF.bicep#L113

  dependsOn: [
    PublicIP
  ]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by StefanIvemo
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