Learn how to add a custom domain to an Azure storage account and what steps are necessary to avoid disruption.
- [Instructor] When you first start using Azure, you're going to notice that you're going to be using the domain that Azure provides for you. This is okay, but you're probably going to want to add in a custom domain at some point. You will notice the default URL for your storage accounts are yourstorageaccount.blob.core.windows.net /mycontainer/myblob. Adding a custom URL will change this to mycompany.com/mycontainer/blob. It's a little nicer, and it's a lot easier for your user to remember that.
One thing I want to point out here, you'll notice that in both of these examples, we're using http, not https. As of this recording, in early January 2017, https is not available with custom domains. You have two options to configure a custom domain in Azure storage. First, you'll go ahead and create and register a CNAME with your registrar, and then you're going to go ahead and enter that domain name in Storage blade. And I'm going to show you that in a moment. In our example here, your CNAME record would be Storage.mycompany.com, and the target would be Mycompanystorage.blob.core.windows.net.
Keep in mind when you use this scenario, you will lose connectivity to the storage account while DNS is populated. If you have a scenario where you cannot lose access to those resources, then you're going to use the indirect CNAME validation method. The first thing you'll do is create a CNAME again. You're going to point the asverify subdomain to the current domain. At this point, the asverify will pre-register your custom domain name, ensuring your service is not disrupted when the DNS records update.
Once this has completed, you will then create another CNAME record. From our example here, you can see our first CNAME record will be Asverify.Storage.mycompany.com. That will point to Asverify.Mycompanystorage.blob.core.windows.net. Once this is pre-registered, then your new CNAME record will be Storage.mycompany.com, which will point to Mycompanystorage.blob.core.windows.net. Let's go ahead and show you where we do this within Azure.
I'm currently logged into Azure. I'm going to go ahead and open the resource group StorageOverview. And I'd like to go ahead and add a custom domain name to the storage account StorageOverview. Under Settings, you're going to go ahead and click Custom Domain, and then you'll go ahead and add in your domain name. And again, if you cannot have any downtime, you will use the indirect CNAME validation method.
- Implementing storage blobs and Azure files
- Managing access
- Configuring diagnostics, monitoring, and analytics
- Enabling and viewing logs
- Implementing Azure SQL databases
- Implementing recovery services
- Creating an Azure Backup vault
- Configuring the Azure Backup agent
- Backing up and restoring files
- Backing up an Azure virtual machine