Private DNS zone with virtual network link on creation.

Matthew-5454 21 Reputation points
2022-05-26T15:07:37.027+00:00

We currently have a hub and spoke setup with our Custom DNS on a single Subscription. what we want to do is if new DNS zones are created they get linked to the Custome DNS Vnet.

Could this be done by azure policy

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
732 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,650 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
966 questions
{count} votes

Accepted answer
  1. Arnav Sharma 91 Reputation points MVP
    2022-06-29T23:42:56.413+00:00

    Something like this

    https://github.com/Azure/Community-Policy/tree/master/Policies/Network/enforce_vnet_dns_servers

    Or you can do it via powershell/automation: powershell scans for DNS and if not linked, a condition will link it

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.