Assign App Service domain to Azure VM or Azure Storage
App Service domains (preview) simplifies to create and manage domains for various Azure services. App Service domains leverages Azure DNS for hosting the domain and GoDaddy as the domain registrar.In addition to the domain registration fee, usage charges for Azure DNS apply. For information, see Azure DNS Pricing.
This tutorial shows you how to buy an App Service domain and assign DNS names a Virtual machine and Azure Storage
Sign in to Azure
Open the Azure portal and sign in with your Azure account.
Navigate to the app in the Azure portal
From the left menu, select New -> Everything -> App Service Domain (preview)
Purchase a domain
In the App Service Domain page, in the Search for domain box, type the domain name you want to buy and type Enter
. The suggested available domains are shown just below the text box. Select one or more domains you want to buy.

Click the Contact Information and fill out the domain's contact information form. When finished, click OK to return to the App Service Domain page. Next, select the desired options for your domain. See the following table for explanations:
Setting | Suggested Value | Description |
---|---|---|
Subscription | Pay-As-You-Go | Select a Subscription. If you have multiple subscriptions, choose the appropriate subscription. |
Contact Information | Enter your contact information such as address, phone number etc .. | Fill out the domain's contact information form. When finished, click OK to return to the App Service Domain page. |
Resource Group | myprojectgroup | Enter a resource group. A resource group is a logical container into which Azure resources like web apps, databases that is deployed and managed. You can create a resource group or use an existing one |
Auto renew | Enable | Renews your App Service Domain automatically every year. Your credit card is charged the same purchase price at the time of renewal. |
Privacy protection | Enable | Opt in to "Privacy protection", which is included in the purchase price for free(except for top-level domains whose registry do not support privacy protection, such as .co.in, .co.uk, and so on). |
Accept terms and purchase | Accept | Click Legal Terms to review the terms and the charges, then click Buy. |
Assign domain to Azure Virtual machine
Resource Manager VMs can have a Public IP. A VM with a Public IP address may also be behind a load balancer. You can create a DNS A or CNAME record for the Public address. This custom name can be used to bypass the VIP on the load balancer. To verify if you VM has a public IP , go the resource group used by the VM to see if you have a resource "Public IP address" .


Add Custom domain for Azure storage
Create an App Service Domain . Once provisioned , select DNS Zone setting and Add a record set .
Create a new CNAME record and provide a subdomain alias such as www or images. Then provide a host name, which is your Blob service endpoint, in the format my-storage-account-name.blob.core.windows.net (where my-storage-account-name is the name of your storage account).


Auto Renew your Domain
You can change your billing setup for your domain registration anytime to either enable or disable auto-renew by selecting Domain Renewal setting