Azure / Azure/bicep

Warning BCP187: The property "tags" does not exist in the resource definition,

Open
#5,773 0 comments 2 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

the tags does exist but the Bicep is showing warning.
```
param resourceTags object = {
EnvironmentName: ' Dev'
CostCenter: '00000'
SupportGroup: ' My Team Group Name'
}
```

```
resource privateDnsZones_SOA 'Microsoft.Network/privateDnsZones/SOA@2018-09-01' = {
parent: Resource_privateDnsZones
name: '@'
properties: {
ttl: 3600
soaRecord: {
email: 'azureprivatedns-host.microsoft.com'
expireTime: 2419200
host: 'azureprivatedns.net'
minimumTtl: 10
refreshTime: 3600
retryTime: 300
serialNumber: 1
}
}
tags: resourceTags
}
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the BCP187 warning with the shown Microsoft.Network/privateDnsZones/SOA resource declaration and its tags property. Compare the resource definition used by Bicep with the Azure resource schema, and consider the issue resolved when this valid tags usage no longer produces the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.