Verify that you have the following items before beginning your configuration.
- An Azure subscription. If you don't already have an Azure subscription, you can activate your MSDN subscriber benefits or sign up for a free account.
- You need to install the latest version of the Azure Resource Manager PowerShell cmdlets. For more information, see How to install and configure Azure PowerShell.
Open your PowerShell console and connect to your account. For more information, see Using PowerShell with Resource Manager.
Login-AzureRmAccount
Check the subscriptions for the account.
Get-AzureRmSubscription
Choose which of your Azure subscriptions to use.
Select-AzureRmSubscription -SubscriptionName "your_subscription_name"
Azure Resource Manager requires that all resource groups specify a location. This location is used as the default location for resources in that resource group. However, because all DNS resources are global, not regional, the choice of resource group location has no impact on Azure DNS.
You can skip this step if you are using an existing resource group.
New-AzureRmResourceGroup -Name MyAzureResourceGroup -location "West US"
The Azure DNS service is managed by the Microsoft.Network resource provider. Your Azure subscription must be registered to use this resource provider before you can use Azure DNS. This is a one-time operation for each subscription.
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Network