当前位置:   article > 正文

How to find which Azure Private DNS Zone is associated with VNet

How to find which Azure Private DNS Zone is associated with VNet

Here are some common scenarios in question:

  1. AzFW goes into failed state due to a Private DNS zone linked with the VNET which causes resolution failures.
  2. Private Endpoint creation where DNS zone fails to link to the vnet as another zone with the same name is already assigned.
  3. Trying to create vnet link in DNS zone and failing as there is another zone with the same name linked to the vnet.

Resolution:

You can leverage the below given PS script in order to find the zone names which have a link with the vnet in question:

Connect-AzAccount
Write-host"Here is a list of subscription available to you"Get-AzSubscription | format-table-property Subscriptionid, Name
$Subid= Read-Host"Enter the SubscriptionID you need to search the vnet link in"Connect-AzAccount -Subscription $subid$ResourceGroups= Get-AzResourceGroup
$ResourceGroupsNames= $ResourceGroups.ResourceGroupName
$VNETID=

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/429397
推荐阅读
相关标签
  

闽ICP备14008679号