dependsOn for module? #7925
-
Is it possible to set dependsOn property to module? What I'm trying is create two ExpressRoute circuit <-> Gateway connections simultaneously. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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
] |
Beta Was this translation helpful? Give feedback.
@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