Skip to content

Bug Report: Policy initiative defines unused and unneeded zoneId for Azure Container Registry #2013

@juanandmsft

Description

@juanandmsft

Describe the bug
The ESLZ policy initiative defines "azureAcrDataPrivateDnsZoneId": "{regionName}.data.privatelink.azurecr.io" in the "dnsZoneNames" parameter, but then is not used.

In fact is not needed, because the zone "{regionName}.data.privatelink.azurecr.io" is a subzone of "privatelink.azurecr.io" already addressed properly by "azureAcrPrivateDnsZoneId".

Steps to reproduce

  1. Create ACR with private Endpoint
  2. The PE contains both entries for "privatelink.azurecr.io" and "{regionName}.data.privatelink.azurecr.io", just with "azureAcrPrivateDnsZoneId", without "azureAcrDataPrivateDnsZoneId".

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Policy 📝Issues / PR's related to PolicybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions