This approach involves below steps:

  1. Enable Azure CDN on your blob or web endpoint. For a Blob Storage endpoint, Integrate an Azure storage account with Azure CDN.

  2. Map Azure CDN content to a custom domain.

  3. Enable HTTPS on an Azure CDN custom domain.

1. Enable Azure CDN on your blob or web endpoint.

sunbscription, resourcegroup, resourcegroup region, Name, region, Pricing tier.

Create a new CDN endpoint

Setting

Value

Name

Enter name for your endpoint hostname. This name must be globally unique across Azure; if it's already in use, enter a different name. This name is used to access your cached resources at the domain <endpoint-name>.azureedge.net.

Origin type

Select Storage.

Origin hostname

Select the host name of the Azure Storage account you're using.

Origin path

Leave blank.

Origin host header

Leave the default value (which is the Origin hostname).

Protocol

Leave the default HTTP and HTTPS options selected.

Origin port

Leave the default port values.

Optimized for

Leave the default selection, General web delivery.

2.Map Azure CDN content to a custom domain.

Create a CNAME DNS record, Before you can use a custom domain with an Azure CDN endpoint, you must first create a canonical name (CNAME) record with Azure DNS or your DNS provider to point to your CDN endpoint.

DNS Provider:

Map the temporary cdnverify subdomain

Source

Type

Destination

cdnverify.www.contoso.com

CNAME

cdnverify.contoso.azureedge.net

Map the permanent custom domain

Source

Type

Destination

www.contoso.com

CNAME

contoso.azureedge.net

3.Enable HTTPS on an Azure CDN custom domain.

To enable HTTPS on an Azure CDN custom domain, you use a TLS/SSL certificate. You choose to use a certificate that is managed by Azure CDN or use your certificate.

Enable HTTPS with a CDN managed certificate