You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Some resources support multiple scopes, like Cost Management budgets and scheduled actions. The modules for these features are identical, except for any specific handling around the scope. In some cases, we need specific logic based on the scope ID, but this requires different logic for each scope:
// For subscriptions...varscopeId = subscription().id// For resource groups...varscopeId = resourceGroup().id// For management groups...varscopeId = managementGroup().id
Since these functions all work differently for each scope, it's not possible to reuse the same code for each scoped module.
Describe the solution you'd like
Create a scope() function that is an alias for the scope the deployment is run for.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Some resources support multiple scopes, like Cost Management budgets and scheduled actions. The modules for these features are identical, except for any specific handling around the scope. In some cases, we need specific logic based on the scope ID, but this requires different logic for each scope:
Since these functions all work differently for each scope, it's not possible to reuse the same code for each scoped module.
Describe the solution you'd like
Create a
scope()
function that is an alias for the scope the deployment is run for.The text was updated successfully, but these errors were encountered: