Have Subdomain point to a different azure address - azure-web-app-service

I'm trying to setup my google domains to where "blah.net" points to my app in azure sites, but I want "dev.blah.net" to point to a different app on azure (My dev instance).
Anyone know how to setup this up? I tried doing subdomain forwarding but that didn't seem to work.

I'm trying to setup my google domains to where "blah.net" points to my app in azure sites, but I want "dev.blah.net" to point to a different app on azure
You could use A record for your root domain(blah.net) and CName record for your sub domain(dev.blah.net). Steps below are for your reference.
Get production web app IP address, pre-configured domain and dev web app pre-configured domains from Azure Portal.
Configuration A record, CName record and TXT record as following in Google domain management tool.
Add hostname for your product and dev app on Azure portal.

Related

Azure Static Web App custom domain with GoDaddy is no working

I've a static Blazor website hosted on azure and I've set custom domain for it. The issue is custom domain https://www.raohammas.site/ is working while root domain https://raohammas.site/ doesn't work. Why? Though, I've added required DNS records for my domain.
DNS RECORDS On GoDaddy
Azure Custom Domains
I followed this guide by Microsoft to setup everything.
You need to follow the guide how to set up Apex domains: https://learn.microsoft.com/en-us/azure/static-web-apps/apex-domain-external

Domain forwarding from Google Domain to Azure Web App Service not masking URL

I have an Azure hosted React website running on a Web App Service. Let's call it mywebsite.azurewebsites.net
I have now purchased the domain name through Google Domains. Let's call it www.mywebsite.com.
The redirect is working fine. I type in www.mywebsite.com and I can see my website. However in the URL bar I can still see the address mywebsite.azurewebsites.net. I clearly want to see my new domain name. Can anyone provide any insight as to why this is?
You need to map an existing custom DNS name to Azure App Service.
See more: Azure Tutorial

How to have multiple host names for azure website

I created an web app for a demo website in Azure. The domain name for this website was created when I created the app service "myapp1.azurewebsites.net". I'd like to use additional domain names using the same azurewebsites.net such as myapp2.azurewebsites.net. When I try to add this custom domain it tells me
Failed to add hostname myapp2.azurewebsites.net. Too many (2)
hostnames in the default DNS zone. Limit is 1
Is there no way around this or must I use my own custom DNS name?
For this you need to add custom domain in Azure web app.
For example : when I created the app service "myapp1.azurewebsites.net" and want to have additional domain names , you can go for custom domains like abc.com.
You can not have .azurewebsites.net as the custom domain of already existing web app as it is already owned by Microsoft Azure web app.

Azure App Service - My Host file

I published my app on Azure App Service.
I don't want to buy domain for now.
I just want to use my local Host file to connect to my Azure App with the futur domain I will buy.
I added an entry in host file:
ip.ip.ip.ip mywebsite.com
But how could I configure my Azure App?
This will not work. Azure App Services work on the basis of DNS Names. By adding the above entry in the host file, the record will reach the App Services Front-End Servers. However, they will not be able to map the domain name to a web app and this will result in a 404 error.
You will have to map a domain name to your Azure Web App in order to get this working. This implies that you will need to own a domain name, this in turn implies that you need to buy a domain name. :-)
If you want to use an IP address, you can use a cloud service web worker role (probably with a reserved IP, if you don't want a dynamic IP) instead of an Azure web app.

Allowing Users to Enter a Custom cname on Azure Websites

I have a multi-site application running on Azure Websites. When a user signs up, they pick a name for their application and they end up with "appname.coolapplication.com". Everything so far is working great within our own domain.
Our application needs to allow users to enter their own custom domain. For example, they want to view their application from "elsewhere.com" rather than "appname.coolapplication.com". How do I go about configuring Azure Websites to allow me to do this?
You don't. Per these instructions you instruct the customer to enter a CNAME record on their domain registrar for the Azure domain, and then it begins to work.
EDIT:
The CNAME only "just works" for Azure Cloud Apps. For Azure Websites, it turns out you must add the domain in the portal as well. I'd thus recommend switching your Azure Websites to Azure Cloud Apps to simplify the issue.
You can use the powershell api to add custom hostnames.
See this question for details: Add many domains to an azure web site

Resources