- Microsoft Azure Administrator:Exam Guide AZ-103
- Sjoukje Zaal
- 396字
- 2025-04-04 14:18:00
Configuring Azure CDN endpoints
In this demonstration, we are going to set up an Azure CDN by creating a new CDN profile and CDN endpoint from the Azure portal. Therefore, we have to perform the following steps:
- Navigate to the Azure portal by opening https://portal.azure.com/.
- From the left menu, click Create a resource. In the search box, type CDN and click the Create button.
- Add the following values, as shown in the next screenshot:
- Name: PacktCDN.
- Subscription: Select the same subscription as we used for creating the blob storage account. We are going to use this to store the images that can be accessed by the CDN.
- Resource group: Create a new one and call it PacktCDNResourcegroup.
- Resource group location: East US.
- Pricing tier: Select Standard Verizon from the drop-down list.
- Create a new CDN endpoint now: Leave unselected; we will do this later:

Creating a new CDN profile
- Click Create.
- The CDN profile will now be created. After creation, we can configure a new CDN endpoint for it.
- Open the CDN overview blade and select Endpoint from the top menu as follows:

Creating a new CDN endpoint
- For the endpoint, specify the following values, as shown in the next screenshot:
- Name: PacktCDNEndpoint.
- Origin type: Storage.
- Origin hostname: This name must be unique. Pick the storage account that is used in the previous section; in my case, this is packtpubstorage.blob.core.windows.net.
- 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 here.
- Optimized for: Leave the default here, which is General web delivery:

Adding an endpoint
- Click Add to add the endpoint to the profile.
- We have now created a CDN profile and an endpoint that can be used to access the images or other files that are stored inside the blob container in the storage account. You can request the images and other files using the endpoint that is generated for you as follows:

Generated endpoint
- An example of requesting an image from the endpoint that we generated will look like the following:
https://PacktCDNEndpoint.azureedge.net/images/image.png
- This can be tested inside a browser window.
In the next section, we are going to cover Azure Data Box.