title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.workload | ms.tgt_pltfrm | ms.devlang | ms.topic | ms.date | ms.author | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Quickstart - Create an Azure CDN profile and endpoint |
This quickstart shows how to enable Azure CDN by creating a new CDN profile and CDN endpoint. |
cdn |
asudbring |
danielgi |
4ca51224-5423-419b-98cf-89860ef516d2 |
azure-cdn |
media |
na |
na |
quickstart |
04/30/2020 |
allensu |
mvc |
In this quickstart, you enable Azure Content Delivery Network (CDN) by creating a new CDN profile, which is a collection of one or more CDN endpoints. After you have created a profile and an endpoint, you can start delivering content to your customers.
- An Azure account with an active subscription. Create an account for free.
- An Azure Storage account named cdnstorageacct123, which you use for the origin hostname. To complete this requirement, see Integrate an Azure Storage account with Azure CDN.
Sign in to the Azure portal with your Azure account.
[!INCLUDE cdn-create-profile]
After you've created a CDN profile, you use it to create an endpoint.
-
In the Azure portal, select in your dashboard the CDN profile that you created. If you can't find it, you can either open the resource group in which you created it, or use the search bar at the top of the portal, enter the profile name, and select the profile from the results.
-
On the CDN profile page, select + Endpoint.
The Add an endpoint pane appears.
-
Enter the following setting values:
Setting Value Name Enter cdn-endpoint-123 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 from the drop-down list, such as cdnstorageacct123.blob.core.windows.net. Origin path Leave blank. Origin host header Leave the default value (which is the host name for the storage account). 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. -
Select Add to create the new endpoint. After the endpoint is created, it appears in the list of endpoints for the profile.
The time it takes for the endpoint to propagate depends on the pricing tier selected when you created the profile. Standard Akamai usually completes within one minute, Standard Microsoft in 10 minutes, and Standard Verizon and Premium Verizon in up to 90 minutes.
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:
-
From the left-hand menu in the Azure portal, select Resource groups and then select CDNQuickstart-rg.
-
On the Resource group page, select Delete resource group, enter CDNQuickstart-rg in the text box, then select Delete. This action delete the resource group, profile, and endpoint that you created in this quickstart.
[!div class="nextstepaction"] Tutorial: Use CDN to server static content from a web app
[!div class="nextstepaction"] Tutorial: Add a custom domain to your Azure CDN endpoint