How to map multiple subdomains into one app service in azure? - azure

I have existing app service with subdomain app.example.com.
I want to have another subdomain called client.example.com which is also pointing to app.example.com
Is this possible in Azure DNS?

Yes you can create the above requirement as shown below image,
if you have already bought your domains configure DNS A and TXT records of both domains to point to your Azure web app.
NOTE:- Please ensure that the SSL certificate to be import for your custom domains includes your app service FQDN in SAN(Subject Alternative Names) section in the certificate for it to be shown as https secure.
Is this possible in Azure DNS?
Yes its possible ,Please refer this MS DOC to Delegate an Azure DNS subdomain
For more information please refer this MS Q&A discussion|Hosting multiple domains under one app service

Related

Azure web service root domain works but not www subdomain

I have an Azure web app to which I have mapped a custom domain from another registrar. The root domain works fine and is secured with a (free) Azure SSL cert. I have not been able to get the www. subdomain to work. (It is also secured with an Azure SSL cert.)
I have followed these three articles that detail the method to Map an existing custom DNS name to Azure App Service, Add a TLS/SSL certificate in Azure App Service, and Secure a custom DNS name with a TLS/SSL binding in Azure App Service.
When I browse to the example web app, astroguru.com, it displays a simple blazor server starter page as it should. If I browse to www.astroguru.com, I get a page not found with info icon in the address bar that says the site is not secure, as shown below:
Below are the DNS records that I have created exactly as described in the first article ref'd above, which include (and see image below):
an A record pointing to the IP address of the web service.
a TXT record containing the verification ID
a CNAME record for the www subdomain that the tutorials say must
point to the original site name (e.g. astroguru.azurewebsites.net)
along with another TXT record with the hostname asuid.www and the
same verification ID.
The image below shows the two secured URLs from the Azure portal.
The image below shows the two private key certs in the Azure portal that secure the two URLs above:
Can someone tell me what I've done wrong here?
Had to recreate the certificate and rebind.

Azure URL is not working for the new CNAME entry

Recently we have created a new CNAME entry for the internal react website which is deployed in Azure. It has been pointed to traffic manager since we are deploying in two regions. After the CNAME entry is create, the URL throws 404 error. We have already configured the entry access restriction to all internal users. Appreciate if anyone can help to identify the issue.
For the error, you could add the new CNAME subdomain to your app service---custom domains---add custom domain as the picture displaying steps 1-5. After you validate the subdomain and add the subdomain into the custom domains, you should access the subdomain URL via the traffic manager. Read this blog for more details.
In addition, only Web Apps at the Standard SKU or above are eligible for use with Traffic Manager. Attempts to add a Web App of a lower SKU fail. Read Azure web apps as the endpoints.

Azure app service custom domain is not working with www prefix

I have a custom domain within my app service, but can't access my web app with www prefix only without. I get error ERR_NAME_NOT_RESOLVED when trying to access with www prefix. I define my custom domain as subdomain.domain.com
Most commonly this is caused by a one of the below:
Is your App Service Plan scaled to allow Custom Domains / SSL?
Have you mapped the Custom Domain to the Domain?
For Example: have you created a CNAME or A Record on Azure DNS or your DNS Server?
Has it been added to the Custom Domains setting of the App Service?
Microsoft documentation for this is pretty good and the link for this is:
https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain
Assuming, that you already own the Domain etc etc

Configuring Google Domain to point to Azure website

I have an site hosted on Azure that I am trying to point a domain from Google Domains to.
My current configuration is as follows:
Name Type Data
# A XXX.XXX.XXX.XXX
www CNAME history-podcasts.azurewebsites.net
awverify CNAME awverify.history-podcasts.com
I am following the instructions from here: Configuring a custom domain name for an Azure Website.
When I go to the Azure portal to Manage Domain and attempt to enter the url in DOMAIN NAMES, I get the following message:
A CNAME record pointing from history-podcasts.com to history-podcasts.azurewebsites.net was not found. Alternative record awverify.history-podcasts.com to awverify.history-podcasts.azurewebsites.net was not found either
When I go to the URL for the domain, I get the following message:
The website you have attempted to reach is not available in this Microsoft Azure Web Sites region. This could be due to one of several reasons:
The web site owner has registered a custom domain to point to the Microsoft Azure Web Site, but has not yet configured Azure to recognize it. Click here to read more.
When a site owner wants to use a custom domain with a Microsoft Azure Web Sites website, Azure needs to be configured to recognize the custom domain name, so that it can route the request to the appropriate server in the region. After registering the domain with a domain provider and configuring a DNS CNAME record to point to the site's Azurewebsites.net address (for example, contoso.azurewebsites.net), the website owner also needs to go to the Azure Portal and configure the site for the new domain. Click here to learn more about configuring the custom domains for a web site.
This is the same configuration settings I am currently using for several domains through Namecheap with Azure hosting and they work as intended.
EDIT:
To summarize, here are the steps you need to take:
1) Create CNAME record redirecting user from your domain to Azure specified domain using tools provided by your DNS hosting service
This step will ensure that when going to www.history-podcasts.com user will transparently be taken to history-podcasts.azurewebsites.net
Type: CNAME
Name: www
Value: history-podcasts.azurewebsites.net
IMPORTANT: Please note that it takes time for DNS servers to update their records therefore you should wait around 30 minutes before continuing.
2) Redirect your naked domain to subdomain using DNS hosting service tools
This step will ensure that when going to history-podcasts.com user will be redirected to www.history-podcasts.com
For Google Domains you can follow this guide here.
3) Add your domain to Azure Website
This step will assure Azure that you own the domain and you want your site to be reachable using specified domain name.
Login into https://manage.windowsazure.com/
Navigate Websites -> [Your Website] -> Configure
Scroll down to Domain names
Click Manage Domains (note that custom domains can only be used when in the Shared, Basic, or Standard modes)
Add your domain www.history-podcasts.com
At this point you should be able to reach your web site using both history-podcasts.com and www.history-podcasts.com domain names.
If your website requires HTTPS, you will have to take extra steps:
http://azure.microsoft.com/en-us/documentation/articles/web-sites-configure-ssl-certificate/

traffic manager + azure website : how do I configure custom dns ssl

I have a custom dns entry mapped to my traffic manager setup via CNAME record. I also have traffic manager pointing to my azure website endpoint and I have a wildcard cert matching my custom dns uploaded on my website. I'm having trouble getting ssl to work. The documentation is not clear on how to set up SSL when using traffic manager. Any help is appreciated. Please note I had this working with cloud service "web role" but I'm wanting to migrate to azure websites.
Have you seen this blog post by Scott Hanselman? http://www.hanselman.com/blog/CloudPowerHowToScaleAzureWebsitesGloballyWithTrafficManager.aspx
You don't upload the certificate to traffic manager. You upload it and set it up for each of the individual sites that the traffic manager will route your customers to

Resources