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 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
Azure DNS supports importing and exporting zone files by using the Azure command-line interface (CLI). Zone file import is not currently supported via Azure
PowerShell or the Azure portal.
https://docs.microsoft.com/en-us/azure/dns/dns-import-exportTo move the adatum.com zone from on-premises server Server1 to Azure Subscription1, we need to perform the following steps:
Export the DNS Zone file from Server1: We can use the DNS Manager console installed on Server2 to export the adatum.com DNS zone file from Server1. To do this, follow these steps:
Create an Azure DNS Zone in Subscription1: To create an Azure DNS Zone in Subscription1, we can use either Azure PowerShell or Azure CLI. Both tools provide cmdlets or commands to create Azure DNS zones. In this case, we will use Azure PowerShell. To create an Azure DNS Zone, follow these steps:
Import the DNS Zone file to Azure DNS Zone: Once we have created the Azure DNS Zone, we can import the adatum.com zone file to the Azure DNS Zone. To do this, we can use the Azure PowerShell cmdlet "Set-AzDnsRecordSet" to add DNS records to the new zone. We can import the DNS records from the zone file using a loop in PowerShell. To import the DNS zone file, follow these steps:
Therefore, the best tool to use for this scenario is Azure PowerShell, as it provides cmdlets for creating Azure DNS Zones and importing DNS records. Option A is the correct answer.