官术网_书友最值得收藏!

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:

  1. Navigate to the Azure portal by opening https://portal.azure.com/.
  2. From the left menu, click Create a resource. In the search box, type CDN and click the Create button.
  1. Add the following values, as shown in the next screenshot:
    • NamePacktCDN.
    • 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 locationEast US.
    • Pricing tierSelect 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
  1. Click Create.
  1. The CDN profile will now be created. After creation, we can configure a new CDN endpoint for it.
  2. Open the CDN overview blade and select Endpoint from the top menu as follows:
Creating a new CDN endpoint
  1. 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
  1. Click Add to add the endpoint to the profile.
  2. 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
  1. An example of requesting an image from the endpoint that we generated will look like the following:
https://PacktCDNEndpoint.azureedge.net/images/image.png
  1. This can be tested inside a browser window.

In the next section, we are going to cover Azure Data Box.

主站蜘蛛池模板: 乌兰浩特市| 滦平县| 白沙| 武乡县| 佛坪县| 勃利县| 巧家县| 灵石县| 平江县| 镇坪县| 嘉善县| 徐闻县| 玛沁县| 巴林左旗| 常宁市| 永城市| 射洪县| 庆阳市| 唐海县| 杭锦后旗| 巴里| 岳阳市| 蓬安县| 射阳县| 金湖县| 尤溪县| 隆子县| 临高县| 新蔡县| 阿拉善右旗| 北安市| 巴彦淖尔市| 大方县| 黎平县| 体育| 博白县| 应用必备| 正安县| 元江| 湖北省| 思南县|