How to connect custom domain and Azure domain - azure

enter image description hereenter image description hereI just have moved my custom domain curtirsuacidade.com.br to Azure and now I want to connect it to my app Curtir, that is running on Azure (curtir.azurewebsites.net). My Azure plan is S1 level. I am using the Custom Domain tool from Azure, but the button Add Custom Domain is hidden. What am I forgetting? I do not have any SSL certificates associate with my app yet.

You do NOT need SSL certificates to associate with a custom domain. And S1 (anything B1 or above) service plan is more than enough. Where are you looking for the custom domain tab? it should be there in your web app resource that runs on your app service plan
How does yours look?
For the Azure docs on binding a domain to your web app see here : https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings

Related

Azure Web App - Change Exisitng Web App to use a New Custom Domain

I support an existing Azure web-app that is linked to a custom domain. App Service Certificates are used to for the Web Apps TLS settings and bind to the custom domain.
There is now a requirement to register a new custom domain (using Azure is OK), un-link the exsiting domain and config-link the new custom domain to the existing Azure web-app.
I am trying to figure out a logical ordering of steps to achieve this. The Azure web-app is live however over the weekend the web-app is not in use. There are 3 non-production environments to test out the sequence of steps to ensure the web-site still remains accessible after the change.
Can you help with the sequence of steps to achieve the above?
Regards
There are 2 ways to add a new custom domain in the Azure Web Application:
Removing the existing custom domain and configuring the new Custom Domain Name
Using Deployment Slots
Way 1:
A) Remove the existing Custom Domain:
If your hostname has SSL bindings, remove them first and then delete the hostname.
Using PowerShell: If the web application having multiple custom domain names/
$webApp = Get-AzWebApp -ResourceGroupName "<<Resource-Group-Name>>" -Name "<<App_Name>>"
$webApp.HostNames.Clear()
$webApp.Hostnames.Add($webApp.DefaultHostName)
set-AzWebApp -ResourceGroupName "<<Resource-Group-Name>>" -Name
<<App_Name>> -HostNames $webApp.HostNames
The above cmdlets will remove the all custom hostnames except the default one.
To remove a specific hostname for the collection:
$webApp.HostNames.Remove("your_hostname_goes_here")
Only a Global Administrator can manage domains in Azure AD. Make sure you have enough permission to do this.
Custom domain from Azure AD will not be removed until the custom domain is primary. Make your other domain having extension as onmicrosoft.com as primary and then you should be able to remove the custom domain from Azure AD.
To know the limitations in deleting a custom domain name, please refer this MS Doc.
B) Adding a New Custom Domain:
Before Adding the Custom Domain, make sure you edit DNS records to add DNS entries for the root domain.
To get a domain verification Id, go to Azure Portal > <Your App Service> > Custom domains - Copy CDV ID and IP address.
Create the DNS Records for your domain and enable the mapping in your app. For more information, please refer this MS Doc and article.
The above documentation also contains the information of securing the custom DNS with a TLS/SSL binding and migration of domain from one to another App.
Way 2: Using Deployment Slots
Make your old custom domain web app to the staging slot.
Host the new custom domain web app in a new slot (suppose: Production Slot)
Using Azure CLI, you can add a slot to your web app using below cmdlets:
az webapp config hostname add [--hostname]
[--ids]
[--resource-group]
[--slot]
[--subscription]
[--webapp-name]
For more information, you can refer this MS Doc of Set up Deployment Slot Environments in Azure App Service and an Stackify article of azure deployment slots.

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.

How to add custom domain to azure app service with existing akamai edge hostname

We are trying to add a custom domain that integrates an Akamai edge hostname which we have already setup with our Azure App Service. The goal here is this mappping :
site.com -> site.com.edgekey.net -> site.azurewebsites.net
However in the App Service custom domain blade you can only go from :
site.com -> site.azurewebsites.net.
There is no way I can see that you can add the Akamai edge hostname. I've looked at the Azure CDN option but that only allows you to purchase CDN service from Azure, then integrate that into your App Service.
Is there a way to integrate an Akamai edge hostname into an Azure App Service custom domain?
As you know, we can add a root domain contoso.com or a subdomain www.contoso.com or a wildcard domain *.contoso.comin in the custom domain of web app service. You could follow this tutorial: Map an existing custom DNS name to Azure App Service
However, in this case, if you have custom domain site.com to the custom domain of web app service, you can add its subdomain sub1.site.com to the hostname. If you want to map site.com.edgekey.net -> site.azurewebsites.net you at least need a domain com.edgekey.net, then you can use a CNAME record name site in such domain com.edgekey.net to your web app service. I think it's impossible as the domain com.edgekey.net is not compatible.
If you want to use Azure CDN, Azure CDN support to add your custom domain to Azure CDN endpoint. You could view the details here. Let me know if you have any question.

Custom Domain SSL for azure blob

Anyone can find a workaround for having custom domain pointing to azure blob? Can application gateway pointed to there? how?
Facts :
- Azure blob does not support custom domain for SSL
- Using custom domain with SSL will prompt security concern due to the assets is from different SSL cert.
No. Currently there is no support for custom domains with SSL on Azure Storage services.
Give your vote here to help get this prioritised!
I have been using Application Gateway with my custom SSL to access BLOB.
Create a Application Gateway instance.
Add your custom SSL inside the SSL Settings in the App Gateway.
Configure backend pool and listener in App gateway.
Create a container and upload an image into it, copy the image URL. Replace the image domain BLOB URL with the Application Gateway IP. Request the image.
For retrieving sensitive files: Once you get the image, remember to turn off the Allow Blob public access toggle in your Storage Account settings.

Resources