How to create custom wildcard domain with Microsoft's domain (azurewebsites.net) - azure

I refer follwing link :-
https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-custom-domain-name#a
but When I am going to create custom domain it show following error.
No CNAME were found. Please add a CNAME record pointing to dev-demo.azurewebsites.net.
Please help me
Thanks.

According to the error message, what you need to do is set up a CNAME record to pointing to your Azure app's default domain for your domain registered at your domain registrar's own management tool (e.g. Azure DNS, GoDaddy, etc.).
If you registered your domain name with GoDaddy, please follow the steps blow.
Log in to your GoDaddy account.
Click on your account icon, then navigate to Manage My Domains.
Select the domain you want to manage, under the Action section, click on the Manage DNS button:
At the Records section, click Add and select CNAME from the drop-down list.
Complete the fields, then click Save button.
Now, go back to the Azure portal, and validate your hostname again.

Related

Migrate Website Infrastructure to Microsoft Azure

I have an accessible static HTML website set with domain and hosting. I would like to mimic this environment with Azure, meaning Azure will communicate with my domain and hosting provider.
Could I please ask to point to where should I find answer to this? It seems obvious, but I am not really sure about my search results.
You need to create CNAME record on your domain registrar account
Open a new browser tab and sign in to your domain registrar account.
Navigate to your domain name's DNS configuration settings.
Add a new CNAME record with the following values.
Setting Value
Type CNAME
Host Your subdomain, such as www
Value Paste the domain name you set aside in the text editor.
TTL (if applicable) Leave as default value.
Create a CNAME record in Azure Static Web Apps. Please find detailed step by step guide below:
https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain-external

How can I add custom domain in portal azure?

I try like this :
I have input my custom domain and click validate. It appears like a picture. I was confused what should I do next. There is no verify button
If I check on docs https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/add-custom-domain, there exist verify button
How can I solve this problem?
The issue will occur if you haven't added a CNAME record pointing to your website(sitecore-xxxxx-sm.azurewebsites.net).
If you bought the domain from azure, you can follow the steps below.
1.Click the domain name under App Service Domains part. You will be redirected to the management page.
2.Click 'Manage DNS records'
3.click 'Record set' to add a CNAME record.
If you bought the domain from other platform, you need to go to their domain management page to configure this, the steps are similar.

DNS! Use Bluehost domain with Azure

How can I use my existing Bluehost Domain with Azure? I have done creating a CNAME and A record on bluehost but when I try to visit my site the address i am seeing is the mysite.azurewebsites.net and not mysite.com has anyone tried this before ? hope anyone could help thanks in advance.
As Wayne said, you need to configure custom DNS name to your Azure Web App.
In the left navigation of the app page in the Azure portal, select Custom domains.
Create a CNAME record:
Select "Add hostname", fill your website name + domain name into Hostname and choose "CNAME", finally click "Add hostname". You will be able to browse your hostname in Explorer.
Create the A record:
Select "Add hostname", fill your website name + domain name into Hostname and choose "A record", finally click "Add hostname". You will be able to browse your hostname in Explorer.
For more detail, you could refer to this article.

Direct 1and1 domain to Azure site

In the past I have been able to just change the nameservers, wait a short while and then create an addon domain on my hosting.
However this doesnt appear to be how Azure works. I keep reading I have to create a CNAME. 1and1 only allows CNAME's on subdomains. I have done this and I have xxx.mysite.org successfully pointed at mysite.azurewebsites.net.
Without using a HTTP redirect can I get mysite.org pointing at mysite.azurewebsites.net?
Thanks!
After days trying to tackle this and reading endless articles online, I finally found the solution. I found numerous articles on mapping and configuring custom domains with azure including getting Error 404 - Website not found after configuring azure (which I also faced) but lacked the detailed configuration with 1and1 which was the main issue.
Some of the top-level articles I've been through I've listed below.
Map Custom domain to Azure App
https://learn.microsoft.com/en-us/azure/app-service-web/web-sites-custom-domain-name
Configure custom domain to azure app
Configuring custom domain for Azure Web App
https://learn.microsoft.com/en-us/azure/cloud-services/cloud-services-custom-domain-name -- Refers to Cloud Service and/or Web App
Error 404 - Web Site not found - Azure web site
https://social.msdn.microsoft.com/Forums/azure/en-US/c7974e51-8022-47cb-9a8c-ff7643966dc3/error-404-web-site-not-found-azure-web-site?forum=windowsazurewebsitespreview
Solution
1and1 Domain Configuration
Go to 1and1 control panel > Domains > Edit DNS Settings.
In Edit DNS Settings, the Name Server Settings should remain 1 & 1 name server.
In A/AAAA and CNAME Records section, select 'Other IP Address' and enter the IP which is assigned to you azure web app, you can find this through accessing your web app and going to 'Custom Domains'.
Add a TXT record with the value being yourappname.azurewebsites.net and click save.
Create a sub domain in 1and1 portal called awverify.mydomain.extension (where extension is your domain extension .i.e .com/.net/.co.uk), click Save
After you create your sub domain, go back to the domain section and next to your domain name click on 'Manage Sub Domain (for that domain)'
Expand the Sub Domain you created and click on 'Edit DNS Settings'.
In the 'Edit DNS Settings' on the A/AAAA and CNAME Records section, select 'Other IP Address' and insert the same app IP Address in the IPv4 text box and click Save.
Go back to your Main 'Manage Domain' section in 1and1 and repeat steps 5, 6, 7 and 8 only this time, your sub domain should be www.yourdomain.yourextension and in step 8 the additional configuration is that you add a TXT record, the value of your TXT record should be yourappname.azurewebsites.net.
After you have finished with the 1and1 configuration, it is strongly advised to wait at least between 12-48 hours to allow the propagation to complete before trying to validate your app in azure, in some cases this might work after a couple of hours.
Then configure Azure to recognise your domain.
Azure Web App Configuration
Go to your app > Custom Domain > Add Hostname
In hostname text box, type yourdomain.yourextension and click validate, on successful validation click 'Add Hostname'
Repeat step 2 to add www.yourdomain.yourextension.
Hope this helps.
You don't have to use a CNAME to use a custom domain with your Azure website. You can use an A record instead.
When you go to "Manage custom domains" in the Azure portal for your site, at the bottom of the window (underneath the CNAME instructions and list of domains) is the IP address to use to configure the A record.
You can use this to configure the DNS for your bare domain, to point it to Azure.
This is how I did it.
In your 1and1 account create a subdomain for your domain awverify.yourdomain.com
Go to DNS settings of this subdomain and under the A/AAAA and CNAME Records section, there will be radiobox for the CNAME, select this option and type in awverify.yourdomain.azurewebsites.net (this could be found in the Bring External Domains window in your azure portal)
When you save your changes here, it might notify you an error, just wait for a few seconds or minutes then click save button again to save your changes.
After successfully saving the subdomain DNS settings, go to the DNS settings of your domain, now under A/AAAA and CNAME Records section, select Other IP Address and in the IPv4 Address text field, type in the IP address you will see under Bring External Domains in your Azure portal. Save your changes.
In your Azure portal, under Bring External Domains, type in your 1and1 domain, wait for to verify, you should see a green check mark at the right side of the text box.

Azure Websites DNS

I have an azure website at yis3.azurewebsites.net - I have promoted this to be a "shared" site so that I can use a custom domain. I have the domain yorkshireimagescanning.co.uk that I bought from 123-reg.co.uk. I have configured this to give a CName record with dnsname of "awverify" and destination of awverify.yis3.azurewebsites.net.
I've waited over 12 hours and checked on digwebinterface.com and all looks good but when I click to "Manage custom domains" from the Azure portal , I enter a domain name of "yorkshireimagescanning.co.uk" but it won't accept it.
Please help
* Edit *
I've now waited a couple of days for domain propagation. Here's a screen grab from my domain registrar:
In the azure portal I've tried to add the following custom domains for the yis3.azurewebsites.net site but it won't accept any:
awverify.www.yorkshireimagescanning.co.uk
www.yorkshireimagescanning.co.uk yorkshireimagescanning.co.uk
awverify.yorkshireimagescanning.co.uk
Here's a screen grab from the portal:
To use yorkshireimagescanning.co.uk
To use your domain without the www. prefix you need to add an A Record in addition to the CNAME you've added for "awverify".
First, make sure you've added the domain to the Azure portal by following the instructions under "Set the domain name in management portal" here.
Next, follow the instructions under "Configure an A record for the domain name" on the same page. This involves pointing your domain directly at the IP address of the Azure web site. You should then have added 2 DNS records in total:
CNAME awverify.www awverify.yis3.azurewebsites.net
A xx.xx.xx.xx (your website's IP address)
I've marked the next option as "preferred" because it points your domain at the Azure hostname "yis3.azurewebsites.net" instead of directly at the IP address. The IP address of your Azure website won't change, but if you ever need to deploy your website elsewhere it will have a different IP, so there will be a delay while the DNS change propagates.
To use www.yorkshireimagescanning.co.uk (preferred)
To use your domain with a www. prefix you need to add another CNAME record in addition to the one you've already added.
First, make sure you've added the domain to the Azure portal by following the instructions under "Set the domain name in management portal" here.
Next, follow the instructions under "Configure the CNAME on your domain registrar" on the same page. This involves adding a CNAME that points "www" to your Azure website's hostname (yis3.azurewebsites.net). You should then have added 2 DNS records in total:
CNAME awverify.www awverify.yis3.azurewebsites.net
CNAME www yis3.azurewebsites.net
A note about domain forwarding: Don't use 301 forwarding unless your site has been permanently moved. Use 302 for temporary redirection. More details here.
I finally figured out what was wrong. I was deploying a new version of an existing site but the old version still had www.yorkshireimagescanning.co.uk set on the custom domains page. Once I deleted it then I was able to add the domain on the new azure site.

Resources