Images Served from Different Domains /AZURE CDN

Asya Kırkaya 25 Reputation points
2023-03-30T07:05:43.3633333+00:00

Can the domain where the images are served be different than the Azure CDN standard?

Azure Content Delivery Network
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,261 Reputation points Microsoft Employee
    2023-03-31T02:43:33.42+00:00

    Hello @Asya Kırkaya ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to know if images can be served from a different domain than the Azure CDN.

    Yes, it is possible to serve images from a different domain than the Azure CDN as long as the domain is publicly accessible.

    You can configure a Custom origin type endpoint on your Azure CDN profile which could be any publicly accessible origin web server (hosted in Azure or elsewhere). In the custom origin type endpoint, you can add an origin hostname such a custom domain name or an IP address and CDN will pull content from this origin.

    Refer: https://video2.skills-academy.com/en-us/azure/cdn/cdn-create-endpoint-how-to?toc=%2Fazure%2Ffrontdoor%2FTOC.json

    Every CDN endpoint is a specific configuration which you can customize with required content delivery behavior and access. To organize your CDN endpoints by internet domain, web application, or some other criteria, you can use multiple profiles.

    For example: If you want to serve images which are stored in a publicly accessible domain abc.com, then you can simply add abc.com as a custom origin type endpoint to your Azure CDN profile as below:

    User's image

    You can then enable caching for that endpoint to store data locally, so that future requests for that data can be accessed more quickly.

    Refer: https://video2.skills-academy.com/en-us/azure/cdn/cdn-how-caching-works?toc=%2Fazure%2Ffrontdoor%2FTOC.json

    https://video2.skills-academy.com/en-us/azure/cdn/cdn-caching-rules-tutorial

    https://video2.skills-academy.com/en-us/azure/cdn/cdn-query-string

    If you own a custom domain, you can also add the same to an Azure Content Delivery Network (CDN) endpoint and can deliver your content with the custom domain in your URL instead of the default Azure CDN domain.

    https://video2.skills-academy.com/en-us/azure/cdn/cdn-map-content-to-custom-domain?toc=%2Fazure%2Ffrontdoor%2FTOC.json&tabs=azure-dns%2Cazure-portal%2Cazure-portal-cleanup

    Once you have configured your Azure CDN profile with the custom origin, the content will be served as described in the below doc:

    https://video2.skills-academy.com/en-us/azure/cdn/cdn-overview?toc=%2Fazure%2Ffrontdoor%2FTOC.json#how-it-works

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful