question

SesethuMhlana-4258 avatar image
0 Votes"
SesethuMhlana-4258 asked ·

Use custom domain for Azure CDN endpoint.

I have a Azure CDN endpoint linked to a single page application hosted in blob storage. I have a custom domain that I bought through a different provider.
I want to link the custom domain with the CDN endpoint or the blob storage. How do I do that?

azure-blob-storage
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered ·

There is a tutorial available here which walks you through the steps to accomplish this. Please follow the steps outlined here and let us know if your run into any issues or have further questions.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SesethuMhlana-3345 avatar image
0 Votes"
SesethuMhlana-3345 answered ·

@deherman-MSFT
I created a CNAME record on my domain provider (Godaddy) account. Set the Host field to my custom domain and and the Points to field to my CDN endpoint.
When associating the custom domain with the CDN endpoint in the CDN Endpoint page in Azure portal, I set the Custom hostname to the custom domain, I get the error

We couldn't find a DNS record for '<custom_domain_url>' that points to '<cdn_endpoint_url>'. Before you can associate a domain with this CDN endpoint, you need to create a CNAME record with your DNS provider for '<custom_domain_url>' that points to '<cdn_endpoint_url>'.

where '<custom_domain_url> and <cdn_endpoint_url> are placeholders in this case.
I have repeated this a couple of times and I don't know what I'm missing.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.