Azure / Azure/bicep

Warning BCP035: The specified "object" declaration is missing the following required properties: "properties".

Open
#6,707 0 comments 0 reactions 0 assignees View on GitHub
provider bug types: swagger inaccuracy
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

### Discussed in https://github.com/Azure/bicep/discussions/6705

Originally posted by **aarhoden-msft** April 26, 2022
## Warning BCP035: The specified "object" declaration is missing the following required properties: "properties".
### Resource type:
"Microsoft.Network/connections@2021-05-01"

### Description:
This resource class will accept an existing resource object reference to a VirtualNetworkGateway by id. Yet warns about missing the "properties" property. Intellisense in vscode totally helps, but it looks a lot like a total recreation of a VirtualNetwokGateway.

Excerpt:
```text
# define params/vars for location, v2vconnetion name, vnet gateway names (2) and vnet gateway resource ids (2)

resource v2vCconntectionResource 'Microsoft.Network/connections@2021-05-01' = {
name: v2vCconntectionName
location: azureRegion
properties: {
virtualNetworkGateway1: {
id: vnetGwAId
}
virtualNetworkGateway2: {
id: vnetGwBId
}

connectionType: 'Vnet2Vnet'
```
The above works but warns. Thanks.

Contributor guide

Open the contributing guide

Research direction

Start with the linked discussion and reproduce the Microsoft.Network/connections@2021-05-01 resource declaration using virtualNetworkGateway1 and virtualNetworkGateway2 references containing only ids. Investigate why the object declaration reports a missing properties property; done means the valid declaration no longer produces warning BCP035.

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.