Skip to content

Click on each book below to review & buy on Amazon.

As an Amazon Associate, I earn from qualifying purchases.


Azure Static Web App - Add Custom Domains

Follow this runbook to add custom domains to an Azure Static Web App.

Prerequisites

Ownership of a domain is required.

To create a Static Web App from an Azure or GitHub repository, follow runbook:

(Optional) - To manage DNS through Azure, follow runbooks:

In the top search bar type static web apps.

Select Static Web Apps under Services.

static-web-apps-search

Click on the Static Web App that requires a custom domain adding.

static-web-apps-list

Add Custom Domain

Under Settings, select Custom domains.

static-web-apps-settings

Only the Auto-generated domain currently exists.

static-web-apps-autogen

Select + Add and choose either Custom domain on Azure DNS or Custom domain on other DNS.

static-web-apps-add

Azure DNS

Enter the Domain name.

Choose the DNS zone.

Select Add.

It may take a few minutes to add the required CNAME record to the DNS zone.

static-web-apps-custom-az

Select Close once the DNS record has been successfully added.

Other DNS

Enter the Domain name you wish to use.

Select Next.

static-web-apps-custom-other

Add the DNS record provided to your domain. Follow your domain registrars instructions on how to do this.

Select Add.

It can take up to 48 hours for DNS changes to take effect.

static-web-apps-custom-other-validate-cname

Once the CNAME record shows as Validated, select Close.

static-web-apps-custom-other-validated-cname

View Web App Using Custom Domain

The custom domain should show as Validated and you can visit the Static Web App using the new custom domain.

static-web-apps-custom-az-validated


Support DTV Linux

Click on each book below to review & buy on Amazon. As an Amazon Associate, I earn from qualifying purchases.

NordVPN ®: Elevate your online privacy and security. Grab our Special Offer to safeguard your data on public Wi-Fi and secure your devices. I may earn a commission on purchases made through this link.