Azure / Azure/bicep-types-az

Microsoft.Network/connections: Inaccurate requirements for this resource type.

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

Description

### Resource Type

Microsoft.Network/connections

### Api Version

2022-11-01

### Issue Type

Other

### Other Notes

The Connections resource is throwing an error stating that the following code requires virtualNetworkGateway1: {} to have a properties field within it. However, I can deploy it just fine without properties. The only necessary part is the ID. The same issue happens within localNetworkGateway2: {}

resource connection1 'Microsoft.Network/connections@2022-11-01' = {
name: '${rgName}_to_vhub_${vhubIteration}_1'
location: location
properties: {
virtualNetworkGateway1: {
id: existingVNGID
}

### Bicep Repro

resource connection1 'Microsoft.Network/connections@2022-11-01' = {
name: '${rgName}_to_vhub_${vhubIteration}_1'
location: location
properties: {
virtualNetworkGateway1: {
id: existingVNGID
}
localNetworkGateway2: {
id: lng1.id
}
}
}

### Confirm

- [X] I have read the troubleshooting guide and looked for duplicates.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the Microsoft.Network/connections type definition for API version 2022-11-01 and compare its virtualNetworkGateway1 and localNetworkGateway2 shapes with the Bicep repro in this issue. Validate the definition against a deployment that supplies only each gateway ID; done means the type accepts the repro without requiring an unnecessary properties field.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
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.