Skip to content
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

Implement scopes for extension resources #870

Closed
anthony-c-martin opened this issue Nov 10, 2020 · 0 comments · Fixed by #1162
Closed

Implement scopes for extension resources #870

anthony-c-martin opened this issue Nov 10, 2020 · 0 comments · Fixed by #1162
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@anthony-c-martin
Copy link
Member

Implementation of https://github.com/Azure/bicep/blob/main/docs/spec/resource-scopes.md for extension resources.

The following syntax should be possible (using the 'scope' property to set the parent scope for an extension resource:

resource myWebsite 'Microsoft.Web/sites@2019-08-01' = {
  name: siteName
  location: resourceGroup().location
  properties: {
    <omitted>
  }
}

resource myLock 'Microsoft.Authorization/locks@2020-01-01' = {
  scope: myWebsite
  name: 'myLock'
  properties: {
    level: 'CanNotDelete'
  }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants