Azure / Azure/bicep-types-az

VSCode Extension: Missing 'location' required property for Network Security Group

Open
#1,886 2 comments 0 reactions 0 assignees View on GitHub
Network Service Attention
Dominant language
TypeScript
Stars
108
Forks
44
Avg merge
18h 53m
Merged PRs (30d)
29

Description

**Bicep version**
0.21.1

**Describe the bug**
When using the _required properties_ autocomplete feature for `Microsoft.Network/networkSecurityGroups@2023-05-01` only the name property is generated.

This passes a what-if run but if you actually try to deploy the template the error `The location property is required for this definition. (Code: LocationRequired)` occurs

**To Reproduce**
1. Create a bicep template with a network security group and autocomplete required properties. Only the name is generated

resource securitygroup 'Microsoft.Network/networkSecurityGroups@2023-05-01' = {
name: 'test'
}

2. Try to deploy this template

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in the VSCode extension with Microsoft.Network/networkSecurityGroups@2023-05-01 using the required-properties autocomplete feature. Inspect how that resource's required properties are defined, then verify that autocomplete includes location and that the generated template no longer produces the LocationRequired deployment error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.