Azure / Azure/bicep-types-az

Missing property "properties" in virtualNetworkGateway1 attribute of Microsoft.Network/Connections@2024-01-01

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

Description

Bicep
```bicep
resource erGw 'Microsoft.Network/virtualNetworkGateways@2024-01-01' = {
name: '${sitePrefix}-ergw'
location: location
properties: {
gatewayType: 'ExpressRoute'
ipConfigurations: [
{
name: 'vnetGatewayConfig0'
properties: {
privateIPAllocationMethod: 'Dynamic'
publicIPAddress: {
id: ergwPublicIp.id
}
subnet: {
id: subnetGateway.id
}
}
}
]
sku: {
name: erGwSku
tier: erGwSku
}
}
}

resource erConn 'Microsoft.Network/connections@2024-01-01' = {
name: '${sitePrefix}-erconn-0'
location: location
properties: {
connectionType: 'ExpressRoute'
authorizationKey: erAuthorization
peer: {
id: erCircuitId
}
virtualNetworkGateway1: {
id: erGw.id
}
}
}
```

> Warning BCP035: The specified "object" declaration is missing the following required properties: "properties". If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]

EDIT: The warning references line 101, which is the virtualNetworkGateway1 line. This is also underlined yellow in VSCode. The deployment successfully runs as expected with the ExpressRoute successfully connected.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Microsoft.Network/connections@2024-01-01 type definition and compare the virtualNetworkGateway1 declaration with the Bicep example in the issue. Check the generated diagnostic for line 101; done means the valid ExpressRoute resource no longer reports BCP035 while deployment behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
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.