Custom domain name for azure website deployment slot? - azure-web-app-service

I've got a web site on azure with a second deployment slot for staging. Let's say its example.azurewebsites.net and example-staging.azurewebsites.net. When I try to add a custom domain (i.e. stage.example.com), it tells me I must first make stage.example.com a CNAME of example(staging).azurewebsites.net. That last part... that doesn't work. Domains can't have ( and ) in them.. Is this a bug in Azure or am I missing something?

The message is wrong. Please refer to the message in the full Azure portal (manage.windowsazure.com): "To verify authorization, create a CNAME resource record with your DNS provider that points from either www.yourdomain.com to example-staging.azurewebsites.net, or from awverify.www.yourdomain.com to awverify.example-staging.azurewebsites.net.

This has been fixed in the latest UX redesign for App Service custom domains.

Related

Delegate Subdomain to Azure via CNAME

the company I’m working for provided me a subdomain. test.mycomp.com . I want to add it to my azure web app via custom domain.
The azure system recommends a CNAME delegation and provided me the information to enter web-zeudz-staging.azurewebsites.net in the dns management as CNAME.
After doing so and verifiying via DNS Lookup, Azure always gives me „Domain Ownership Error“. What can I do to make this work?
Is your DNS provider also a CDN provider, for example cloudflare? If so, turn off the CDN/proxy function so it's a DNS only record and try again.
If you don't have any control over the CDN function you can use txt record validation.
Create your TXT record awverify.subdomain.test.mycomp.com with value web-zeudz-staging.azurewebsites.net and validate again. It should succeed.
There's also a CNAME awverify method but you need CDN disabled for that too.
I find it strange that your company doesn't have the option to enable/disabled CDN for any given DNS entry though.

Azure Custom Domain from 3rd party Registrar

As part of my Azure learning, I am trying to configure Azure with a Domain Name purchased with GoDaddy.
I am following the following Azure Articles:
Map a custom domain name to an Azure app
Configure a custom domain name in Azure App Service (Purchased directly from GoDaddy)
Questions/issues:
The article references making a TXT record that references <appname>.azurewebsites.net. Has <appname>.cloudapp.net replaced this?
The article references a "Custom Domains Blade in the Azure Portal". When I go to "Web Apps" on the old Azure Portal, it redirects me to the new one.
In the new portal.azure.com I cannot find a place to specify a Custom Domain anywhere.
Here is what my GoDaddy DNS looks like, does it look right?
I got this to work.
I just kitchen-sinked it. Not sure if cloudapp.net or azurewebsites.net is needed so I put in both.
I also set up Active Directory with a custom domain (the additional TXT entry)

Configure Azure DNS

I'm trying to bind my azure website to a third level domain.
This is my configuration on the Azure portal:
This is my domain provied A-Record console:
And this is my domain provider CName-Record console:
With this configuration the application works on http://www.test.mysite.biz but it doens't work on http://test.mysite.biz
(on http://test.mysite.biz it is displayed a page "domain reserved")
What Am I doing wrong?
Thanks a lot
You need to add another cname to your website
awverify.test pointing to awverify.yourazureapp.azurewebsites.net
check on https://www.whatsmydns.net/ to verify that awverify.test.yourwebsite.biz it is pointing to awverify.yourazureapp.azurewebsites.net

Manage domain name purchased through azure

I purchased a custom domain name through Azure, and it was correctly pointing to my Web App, and it was working. I subsequently deleted and recreated the Web app, and the underlying IP has changed. In order to associate the same domain name with the replacement app, Azure requires the CNAME to be set by the DNS provider. However, Azure is the DNS provider, and I can find no way to do this. I see lots of articles discussing how to manage the domain name once it is associated with the app, but not how do to manage it the gap between creation and association, which is the gap where I need to add the CNAME.
Take a look at this: http://blogs.msdn.com/b/waws/archive/2014/10/01/mapping-a-sub-domain-to-an-azure-web-site.aspx
and this: https://azure.microsoft.com/en-us/documentation/articles/cloud-services-custom-domain-name/
Edit: Also, you could do what you are asking for through Powershell: https://azure.microsoft.com/en-us/documentation/articles/dns-web-sites-custom-domain/
The problem occurs because the subscription was changed from a pay-as-you-go subscription to developer benefits subscription. The purchase of the domain name is tied to the subscription with it was purchased. Creating the App under the original subscription enables the management blade.
Did this recently, using "myfunkydomain.com" and "myfunkywebapp" as examples ..
Bought the domain through Azure ("Custom domain and SSL" blade on the WebApp) which you have already done.
The new "DNS preview" service allows you to create DNS Zones and then manage the subdomain recordsets - Create a new zone (I called "myfunkydomain.com" and take note of the 4 DNS servers allocated to the zone.
Then under "Custom domain and SSL" blade of your Web App select the new domain (myfunkydomain.com) under "Managed Domains" and then click the Advanced menu button - this will take you to a seperate site where you can delegate the domain to the 4 DNS servers from step 2. This is what you are missing I think. I took note of the current DNS servers before changing them (but have had no need to change them back)
Once delegated you can create CNAME recordsets under the DNS preview Zone and point the CNAME record to the full domain of your Web App myfunkywebapp.azurewebsites.net and you are in full control of the domain from the Azure portal. There is a WebApi for managing this whole process which we use to create new tenants of our domain programatically.

Azure WebApps custom domain - CNAME pointed to azurewebsite must exist?

We are trying to migrate sites from AWS to Azure WebApps.
AS IS:
The CNAME of the existing site points to Imperva. Imperva then points to AWS Site.
TO BE:
The CNAME of the existing site points to Imperva. Imperva then points to Azure WebApp Site.
PROBLEM:
When I try to add the custom domain to azure Web Apps website, it complains with the error that the existing Site MUST have CNAME pointing to Azure Website.
see example below:
This means that as part of cutover, we need to do below:
1. Quicky update CNAME to point to azure web app
2. Once custom domain is setup in azure
3. Change the CNAME back to Imperva.
This sounds bit hacky.
Is above right approach or am I missing anything here?
The part that you're missing is the direction of the CNAME. What Azure wants to do is to ensure that you do actually have authority over that domain name. So they want you to create a CNAME that points from awverify.www.example.com to www.example.com
Once that record is created Azure will looking that record and ensure that it redirects to www.example.com. This has no impact on any existing configuration (unless you just happen to have awverify sub domain in uswe already!)
www.example.com will still work in exactly the same way as before until you are ready to move that name to Azure.

Resources