Use the Azure Marketplace to enable a CDN for the Sitecore Media Library

Version: 10.4

This topic describes how to enable the Sitecore Media Library to use a Microsoft Azure® Content Delivery Network (CDN) with Azure Marketplace. With a CDN you can set up the Sitecore Media Library to use a CDN on Azure, or manually configure CDN to run with an existing on-premise installation. You can also deploy a CDN by using Azure Marketplace or the Sitecore Azure Toolkit.

Note

CDN is not available for on-premise deployments,  however, you can configure the Sitecore Media Library manually to use CDN.

Prerequisites

To enable the Sitecore Media Library to use a CDN with Azure Marketplace, you must have the following: 

  • Sitecore XP and XM 9.1 or later.

  • A scaled configuration, (this option is only available for Azure deployments).

Considerations for setting up a CDN

You can set up a CDN with either of the following scenarios:

  • You do not have a CDN, and you want Sitecore create one

  • You have already set up a CDN endpoint, and you want to direct Sitecore to use it

You do not have a CDN, and you want Sitecore to create one

There is no preparation required for this scenario. However you must choose from the available Azure CDN pricing tiers. For more information about creating a CDN profile and endpoint configurations from Sitecore, see: CDN setup Considerations, the section CDN setup Considerations when Sitecore sets up CDN for you.

You have already set up a CDN endpoint, and you want to direct Sitecore to use it

If you have already set up a CDN endpoint, you can share the URL of the endpoint during deployment. Before following the set up steps, read CDN setup considerations.

Deploying using Azure Marketplace

To deploy a CDN using Azure Marketplace, work through the following steps:  

  1. In Azure Marketplace, start a new Sitecore deployment.

  2. Choose a Sitecore version (minimum 9.1), topology, and configurations.

  3. In the Module list, select Sitecore CDN provider. Check the availability of the package for your Sitecore version, topology, and configurations.

  4. Choose the option that applies to you: 

  5. Follow the wizard and deploy Sitecore.

    Note

    Some tiers may need to be set up post-deployment. If so, follow the instructions provided by the deployment wizard.

Verifying configurations

To verify your configurations, check:  

  • The Sitecore configuration page - On the CD server, go to /sitecore/admin/showconfig.aspx. All of the configurations mentioned in the above steps must come from the CDN.config patch file that you created.

  • Any URL that has been created using one of the options mentioned in Developer considerations for the Sitecore Media Library CDN support, in the section: Getting a CDN-enabled Media Item URL. Ensure the generated URL includes a CDN URL and revision number.

Do you have some feedback for us?

If you have suggestions for improving this article,