Your company has an Azure subscription named Subscription1.
The company also has two on-premises servers named Server1 and Server2 that run Windows Server 2016. Server1 is configured as a DNS server that has a primary DNS zone named adatum.com. Adatum.com contains 1,000 DNS records.
You manage Server1 and Subscription1 from Server2. Server2 has the following tools installed:
-> The DNS Manager console
-> Azure PowerShell
-> Azure CLI 2.0
You need to move the adatum.com zone to an Azure DNS zone in Subscription1. The solution must minimize administrative effort.
What should you use?
Click on the arrows to vote for the correct answer
A. B. C. D.B
Step 1: Installing the DNS migration script
Open an elevated PowerShell window (Administrative mode) and run following command install-script PrivateDnsMigrationScript
Step 2: Running the script -
Execute following command to run the script
PrivateDnsMigrationScript.ps1 -
https://docs.microsoft.com/en-us/azure/dns/private-dns-migration-guideTo move the adatum.com DNS zone to an Azure DNS zone in Subscription1 while minimizing administrative effort, you should use Azure PowerShell.
Here's a step-by-step explanation of how to accomplish this task using Azure PowerShell:
Open Azure PowerShell on Server2.
Sign in to your Azure account by running the following command and entering your credentials when prompted:
powershellConnect-AzAccount
Select Subscription1 by running the following command:
powershellSelect-AzSubscription -SubscriptionName Subscription1
Create a new resource group in Subscription1 to host the new Azure DNS zone by running the following command:
powershellNew-AzResourceGroup -Name MyResourceGroup -Location "East US"
Replace "MyResourceGroup" with a name of your choice, and replace "East US" with the Azure region where you want to create the resource group.
Create a new Azure DNS zone in the resource group by running the following command:
powershellNew-AzDnsZone -Name adatum.com -ResourceGroupName MyResourceGroup
Replace "adatum.com" with the name of the DNS zone you want to create.
Export the adatum.com zone from Server1 by running the following command on Server1:
powershellExport-DnsServerZone -Name adatum.com -FileName adatum.com.dns -ComputerName Server1
Replace "adatum.com" with the name of the DNS zone you want to export, and replace "Server1" with the name of the DNS server hosting the zone.
Copy the adatum.com.dns file to Server2.
Import the adatum.com zone to the new Azure DNS zone by running the following command:
powershellImport-AzDnsZone -Name adatum.com -ResourceGroupName MyResourceGroup -File adatum.com.dns
Replace "adatum.com" with the name of the DNS zone you want to import, and replace "MyResourceGroup" with the name of the resource group you created in step 4.
Verify that the zone was imported successfully by running the following command:
powershellGet-AzDnsRecordSet -ZoneName adatum.com -ResourceGroupName MyResourceGroup
This command should return the 1,000 DNS records from the adatum.com zone.
By using Azure PowerShell, you can automate the process of moving the adatum.com DNS zone to an Azure DNS zone in Subscription1, which minimizes administrative effort.