Learn how to create a web app on Azure and purchase an Azure Domain name secured with an TLS/SSL certificate. The same process works for both Azure Function apps and Azure App service (web apps).
If you want to bring your own domain name or SSL certificate, use these resources:
You can purchase a domain name in the Azure portal, specifically for your Azure Web app, or you can bring your own domain.
The domain resource is a separate resource from the web app resource.
In the Azure portal, use this link to begin creating a new domain.
As part of the creation process, create a new resource group to contain all the resources for your secured and named web app.
In the Domain Details, enter the domain name you want, such as cats-flying-dogs.com. You should have a few domain name choices with variations to try.
Continue filling out the creation tabs for the service:
Tab name
Select
Contact information
Personal or corporate information about web site ownership.
Hostname assignment
Keep the default settings.
Advanced
Keep the default settings so your domain name renews next year and your contact information is kept private.
When you are done, select Review + create at the bottom of the web site.
The domain name is purchased for you and billed to your Azure subscription.
2. Create a new web app service
Create a new paid web resource using one of the following links. Do not create the resource using a free pricing tier. Create the resource in the resource group created in the previous section.
In the Azure portal, for your new web app, select the Custom domains setting, then select + Add custom domain.
In the right panel, enter the new domain name, such as cats-flying-dogs.com, then select Validate.
Select the Add custom domain to connect the domain name to the app service's IP address.
In the Azure portal, for your new web app, select the Custom domains setting, and copy your IP Address.
Select + Add custom domain.
In the right panel, enter your domain name, such as www.dinatests.me, then select Validate.
Select the Hostname record type to indicate if the domain name includes subdomains.
From the Azure portal for your web app, copy the web app domain name, such as https://web-app-test.azurewebsites.net, but remove the https:// when you copy the host name in the next step.
In your domain provider's site, create a new TXT record. Add the Verification ID as a TXT record with your domain provider.
CNAME record and paste the web app domain name into the Hostname field.
Copy the Custom Domain Verification ID and enter that CNAME record in your domain name provider's site.
4. Create free managed private certificate
Select TSL/SSL Settings from the Settings area.
Select Private Key Certificates then select + Create App Service Managed Certificate
Select the new domain name then select Create.
This may take a minute or two to complete.
5. Add binding between certificate and domain
Select the Custom domains setting, then select Add binding for the new domain name.
In the right panel, select the new domain, the private certificate, and the TLS/SSL type.
The process completes and the Custom Domain page shows the custom domain name is secure.
Select the app's Overview page and see the URL for your web app uses the new domain name.
Learn more about securing your web app service
You can use existing domain names and certificates or you can create new domain names and certificates on your hosting services: