Azure / Azure/bicep-types-az

[Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2021-05-01]: The property "location" does not exist in the resource or type definition

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

Description

### Resource Type

Microsoft.Network/privateEndpoints/privateDnsZoneGroups

### Api Version

2021-05-01

### Issue Type

Missing property(s)

### Other Notes

My process:
- created an EventHub + private DNS Zone Group via Azure portal
- exported ARM template
- used VSCode Bicep plugin to Paste JSON as Bicep

Then warning appeared over location field

### Bicep Repro

resource my_dns_zone_group 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2021-05-01' = {
name: 'resource-name'
location: 'eastus2' // VSCode flagged as warning with "The property "location" does not exist in the resource or type definition, although it might still be valid. If this is a resource type definition inaccuracy, report it using https://aka.ms/bicep-type-issues."
properties: {
privateDnsZoneConfigs: [
{
name: 'my-name'
properties: {
privateDnsZoneId: ''
}
}
]
}
}

### Confirm

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Microsoft.Network/privateEndpoints/privateDnsZoneGroups type definition for API version 2021-05-01 and compare it with the Bicep reproduction. Confirm whether location is valid for this resource, then update the definition so the shown template is accepted without a warning and verify the type-checking result.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript
Domain
cloud, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.