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
Block the existing keyword for extension resources that have no readable scopes (#18260)
## Description
Since some extension resources do not have a concept of existing
resources, it is a requirement to block the existing keyword when
authoring these extension resources.
## Example Usage
### Write-Only Resource
**Scenario**: A resource type with no readable scopes but has writable
scopes cannot be used with the `existing` keyword.
```bicep
// This will produce error BCP441
resource writeOnlyResource 'Microsoft.Example/writeOnlyType@2024-01-01' existing = {
name: 'myResource'
}
```
**Error Message** - Resource type
"Microsoft.Example/writeOnlyType@2024-01-01" cannot be used with the
'existing' keyword.
## Checklist
- [x] I have read and adhere to the [contribution
guide](https://github.com/Azure/bicep/blob/main/CONTRIBUTING.md).
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/18260)
0 commit comments