-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scope property in deployment() function #4698
Comments
In order for this property to be useful, do we need to finish #788? |
That was my motivation for supporting it, because it allows Bicep to generate Note that I was imagining a different implementation to @slavizh though - I was thinking it would return the actual value of the scope - e.g. That would allow Bicep to codegen resourceId expressions with the following format:
|
@anthony-c-martin I guess we just need to think of all the possible options for such scenario. Though probably there still might be useful to be able to use subscription() or managementGroup() depending on the scope. As they might use some of the properties in those functions for other functions like uniqueString, concat, etc. |
Is your feature request related to a problem? Please describe.
We have function like subscription() and soon to have managementGroup(). There are a few resources that allow to deployed at both subscription and management group scopes. The difference when these resources are deployed at these two scopes are minor. For example the main differences I have seen are:
With that said if you want to create one bicep solution that can deploy the applicable resources to both scopes it is good that you can use managementGroup() or subscription() function depending on the scope the deployment happens.
Describe the solution you'd like
the solution would be something like:
The text was updated successfully, but these errors were encountered: