Closed akata72 closed 3 years ago
This is possible with modules
and the scope
property. Modules effectively replace nested/linked deployments.
https://github.com/Azure/bicep/blob/main/docs/spec/modules.md#defining-and-configuring-module-scopes
Here's an example: https://github.com/Azure/bicep/blob/main/docs/examples/201/proximity-placement-with-multi-resource-groups/main.bicep#L44
Let me know if that's clear or if you need more context.
Excellent. Should have seen that :-) Thanks.
While deploying an NSG I also want to deploy a flowlogs resource to a different resource group. (currently doing this using a nested template, but can't find this option in the current implementation of the deployments resource).
Describe the solution you'd like Having the option to configure the resourcegroup for the nested deployment (if that is the solution).