Bulk import DNS Records from a CSV File to Azure DNS

Earlier today I needed to quickly create a bunch of DNS entries under my DNS Zone hosted in Azure DNS Service. Currently, there are three ways of creating/importing DNS records.

  1. Azure Portal
  2. Azure PowerShell
  3. Azure CLI

Once again, PowerShell to the rescue!

  1. Create a CSV file with the following information ( In my case I only needed to create only A records ).
  2.  

     

  3. Open an Elevated PowerShell Prompt and login to your Azure Subscription.
  4.  

     

  5. Run the following cmdlet ( alter the Path information ).
  6.  

PowerShell output.

 

Azure Portal, looking good huh?

 

 

Thanks for reading!

George Markou

My Name is George Markou, IT Pro, Geek and Fancy Gadgets enthusiast. I am focused on Virtualization and Cloud Technologies.

%d bloggers like this: