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=

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-10 18:30:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-10 18:30:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-04-10 18:30:03       87 阅读
  4. Python语言-面向对象

    2024-04-10 18:30:03       96 阅读

热门阅读

  1. 为什么pdf拆分出几页之后大小几乎没有变化

    2024-04-10 18:30:03       41 阅读
  2. c++ 函数进阶

    2024-04-10 18:30:03       34 阅读
  3. 响应---

    2024-04-10 18:30:03       35 阅读
  4. 谈谈贪心算法

    2024-04-10 18:30:03       34 阅读
  5. OceanBase数据库oceanbase-ce的docker镜像中文说明

    2024-04-10 18:30:03       42 阅读
  6. Apache POI

    2024-04-10 18:30:03       31 阅读
  7. 瑞芯微RK3568调试Android 11的各种方法

    2024-04-10 18:30:03       61 阅读
  8. python-pytorch使用日志0.5.007

    2024-04-10 18:30:03       41 阅读