Skip to content

Commit 0bf7af7

Browse files
authored
Merge pull request #95568 from rohinkoul/PrivateDNSMigrationGuideUpdates
Private dns migration guide updates
2 parents 16c70f0 + 858deb1 commit 0bf7af7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

articles/dns/private-dns-migration-guide.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@ ms.author: rohink
1111

1212
# Migrating legacy Azure DNS private zones to new resource model
1313

14-
The current Azure DNS private zones release provides new functionality and removes several limitations and restrictions of the initial public preview. However, these benefits aren't available on the private DNS zones that were created using the preview API. To get the benefits of the new release, you must migrate your legacy private DNS zone resources to the new resource model. The migration process is simple, and we've provided a PowerShell script to automate this process. This guide provides step by step instruction to migrate your Azure DNS private zones to the new resource model.
14+
During public preview, private DNS zones were created using “dnszones” resource with “zoneType” property set to “Private”. Such zones will not be supported after December 31, 2019 and must be migrated to GA resource model which makes use of “privateDnsZones” resource type instead of “dnszones”. The migration process is simple, and we've provided a PowerShell script to automate this process. This guide provides step by step instruction to migrate your Azure DNS private zones to the new resource model.
15+
16+
To find out the dnszones resources that require migration; execute the below command in Azure CLI.
17+
```azurecli
18+
az account set --subscription <SubscriptionId>
19+
az network dns zone list --query "[?zoneType=='Private']"
20+
```
1521

1622
## Prerequisites
1723

@@ -20,7 +26,7 @@ Make sure you have installed latest version of Azure PowerShell. For more inform
2026
Make sure that you've Az.PrivateDns module for the Azure PowerShell installed. To install this module, open an elevated PowerShell window (Administrative mode) and enter following command
2127

2228
```powershell
23-
Install-Module -Name Az.PrivateDns -AllowPrerelease
29+
Install-Module -Name Az.PrivateDns
2430
```
2531

2632
>[!IMPORTANT]
@@ -40,6 +46,9 @@ Enter “A” when prompted to install the script
4046

4147
You can also manually obtain the latest version of PowerShell script at https://www.powershellgallery.com/packages/PrivateDnsMigrationScript
4248

49+
>[!IMPORTANT]
50+
>The migration script must not be run in Azure cloud shell and must be executed in a VM or local machine connected to internet.
51+
4352
## Running the script
4453

4554
Execute following command to run the script

0 commit comments

Comments
 (0)