Azure / Azure/bicep

Better validation of resources with invalid names

Open
#1,885 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.