Quickstart: Create an Azure CDN profile and endpoint

In this quickstart, you enable Azure Content Delivery Network (CDN) by creating a new CDN profile and CDN endpoint. After you have created a profile and an endpoint, you can start delivering content to your customers.

If you don't have an Azure subscription, create a free account before you begin.

Prerequisites

For the purposes of this quickstart, you must have created a storage account named mystorageacct123, which you use for the origin hostname. For more information, see Integrate an Azure storage account with Azure CDN

Log in to the Azure portal

Log in to the Azure portal with your Azure account.

Create a new CDN profile

A CDN profile is a container for CDN endpoints and specifies a pricing tier.

  1. In the Azure portal, in the upper left, select Create a resource.

    The New pane appears.

  2. Select Web + Mobile, then select CDN.

    Select CDN resource

    The CDN profile pane appears.

    Use the settings specified in the table following the image.

    New CDN profile

    Setting Value
    Name Enter my-cdn-profile-123 for your profile name. This name must be globally unique; if it is already in use, you may enter a different one.
    Subscription Select an Azure subscription from the drop-down list.
    Resource group Select Create new and enter my-resource-group-123 for your resource group name. This name must be globally unique; if it is already in use, you may enter a different one.
    Resource group location Select Central US from the drop-down list.
    Pricing tier Select Standard Verizon from the drop-down list.
    Create a new CDN endpoint now Leave unselected.
  3. Select Pin to dashboard to save the profile to your dashboard after it is created.

  4. Select Create to create the profile.

Create a new CDN endpoint

After you've created a CDN profile, you can use it to create an endpoint.

  1. In the Azure portal, select in your dashboard the CDN profile that you created. If you can't find it, select All services, then select CDN profiles. In the CDN profiles page, select the profile that you want to use.

    The CDN profile page appears.

  2. Select Endpoint.

    CDN profile

    The Add an endpoint page appears.

    Use the settings specified in the table following the image.

    Add endpoint pane

    Setting Value
    Name Enter my-endpoint-123 for your endpoint hostname. This name must be globally unique; if it is already in use, you may enter a different one. This name is used to access your cached resources at the domain <endpoint name>.azureedge.net.
    Origin type Select Storage.
    Origin hostname Enter mystorageacct123.blob.core.windows.net for your hostname. This name must be globally unique; if it is already in use, you may enter a different one
    Origin path Leave blank.
    Origin host header Leave the default generated value.
    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.
  3. Select Add to create the new endpoint.

    After the endpoint is created, it appears in the list of endpoints for the profile.

    CDN endpoint

    Because it takes time for the registration to propagate, the endpoint isn't immediately available for use.

Clean up resources

In the preceding steps, you created a CDN profile and an endpoint in a resource group. Save these resources if you want to go to Next steps and learn how to add a custom domain to your endpoint. However, if you don't expect to use these resources in the future, you can delete them by deleting the resource group, thus avoiding additional charges:

  1. From the left-hand menu in the Azure portal, select Resource groups and then select my-resource-group-123.

  2. On the Resource group page, select Delete resource group, enter my-resource-group-123 in the text box, then select Delete.

    This action will delete the resource group, profile, and endpoint that you created in this quickstart.

Next steps

To learn about adding a custom domain to your CDN endpoint, see the following tutorial: