Move adatum.com DNS Zone to Azure DNS Zone | Exam AZ-104: Microsoft Azure Administrator

Move adatum.com DNS Zone to Azure DNS Zone

Question

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?

Answers

Explanations

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-guide

To 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:

  1. Open Azure PowerShell on Server2.

  2. Sign in to your Azure account by running the following command and entering your credentials when prompted:

    powershell
    Connect-AzAccount
  3. Select Subscription1 by running the following command:

    powershell
    Select-AzSubscription -SubscriptionName Subscription1
  4. Create a new resource group in Subscription1 to host the new Azure DNS zone by running the following command:

    powershell
    New-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.

  5. Create a new Azure DNS zone in the resource group by running the following command:

    powershell
    New-AzDnsZone -Name adatum.com -ResourceGroupName MyResourceGroup

    Replace "adatum.com" with the name of the DNS zone you want to create.

  6. Export the adatum.com zone from Server1 by running the following command on Server1:

    powershell
    Export-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.

  7. Copy the adatum.com.dns file to Server2.

  8. Import the adatum.com zone to the new Azure DNS zone by running the following command:

    powershell
    Import-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.

  9. Verify that the zone was imported successfully by running the following command:

    powershell
    Get-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.