Better validation of resources with invalid names
Open
enhancement
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
Raised from https://github.com/Azure/bicep/pull/1800#discussion_r594791321
We should be able to say definitively that the following will not work as resource names:
```bicep
resource vmExt 'Microsoft.Compute/virtualMachines/extensions@2020-06-01' = {
name: 'myExt/'
location: 'eastus'
}
resource attachment 'Microsoft.ApiManagement/service/apis/issues/attachments@2019-01-01' = {
name: '///'
}
```
Contributor guide
Research direction
Start by reproducing the two resource-name examples in the issue and inspect the existing resource-name validation entry point. Done means both invalid names are definitively rejected, with coverage demonstrating the expected validation behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100