VS Code Extension Error: Wrong Validation
- Dominant language
- Bicep
- Stars
- 3.6k
- Forks
- 830
- Avg merge
- 1d 21m
- Merged PRs (30d)
- 79
Description
**Bicep version**
not related to bicep version
**Describe the bug**
I have 2 resources 'Microsoft.KeyVault/vaults/accessPolicies@2023-02-01' in one module file with the same name 'add'. It is not a name as in a case for other resources, but the key for adding, removing or replacing the policy, but extension higlights the 'name' with the following warning: Resources: "keyVaultAccessPolicies", "frontDoorKeyVaultPolicy" are defined with this same name in a file. Rename them or split into different modules
**To Reproduce**
Create two separated access policies for keyvault with the name 'add'
Contributor guide
Research direction
Start by reproducing the warning in the VS Code extension with two separate Key Vault access policies using the name 'add' in one module file. Trace the validation that reports duplicate resource names and confirm that these access-policy keys no longer produce an incorrect warning while genuine duplicate names remain detected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- cloud, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100