Azure / Azure/bicep

VS Code Extension Error: Wrong Validation

Open
#11,530 1 comment 0 reactions 0 assignees View on GitHub
intermediate language provider improvement
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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.