Lab 4: Use Content Delivery Network endpoints

Task 1: Retrieve endpoint Uniform Resource Identifiers (URIs)

  1. On the Azure portal's navigation pane, select the Resource groups link.

  2. On the Resource groups blade, select the MarketingContent resource group that you created previously in this lab.

  3. On the MarketingContent blade, select the contentdeliverynetwork CDN profile that you created previously in this lab.

  4. On the CDN profile blade, select the cdnmedia[yourname] endpoint.

  5. On the Endpoint blade, copy the value of the Endpoint hostname link. You'll use this value later in the lab.

  6. Close the Endpoint blade.

  7. On the CDN profile blade, select the cdnvideo[yourname] endpoint.

  8. On the Endpoint blade, copy the value of the Endpoint hostname link. You'll use this value later in the lab.

  9. Close the Endpoint blade.

Task 2: Test multimedia content

  1. Construct a URL for the campus.jpg resource by combining the Endpoint hostname URL from the cdnmedia[yourname] endpoint that you copied previously in the lab with a relative path of /campus.jpg.

    Note: For example, if your Endpoint hostname URL is https://cdnmediastudent.azureedge.net/, your newly constructed URL would be https://cdnmediastudent.azureedge.net/campus.jpg.

  2. Construct a URL for the conference.jpg resource by combining the Endpoint hostname URL from the cdnmedia[yourname] endpoint that you copied previously in the lab with a relative path of /conference.jpg.

    Note: For example, if your Endpoint hostname URL is https://cdnmediastudent.azureedge.net/, your newly constructed URL would be https://cdnmediastudent.azureedge.net/conference.jpg.

  3. Construct a URL for the poster.jpg resource by combining the Endpoint hostname URL from the cdnmedia[yourname] endpoint that you copied previously in the lab with a relative path of /poster.jpg.

    Note: For example, if your Endpoint hostname URL is https://cdnmediastudent.azureedge.net/, your newly constructed URL would be https://cdnmediastudent.azureedge.net/poster.jpg.

  4. Construct a URL for the welcome.mp4 resource by combining the Endpoint hostname URL from the cdnvideo[yourname] endpoint that you copied previously in the lab with a relative path of /welcome.mp4.

    Note: For example, if your Endpoint hostname URL is https://cdnvideostudent.azureedge.net/, your newly constructed URL would be https://cdnvideostudent.azureedge.net/welcome.mp4.

  5. On the taskbar, activate the shortcut menu for the Microsoft Edge icon, and then select New window.

  6. In the new browser window, refer to the URL that you constructed for the campus.jpg media resource, and then verify that the resource was successfully found.

    Note: If the content isn't available yet, the CDN endpoint is still initializing. This initialization process can take anywhere from 5 to 15 minutes.

  7. Refer to the URL that you constructed for the conference.jpg media resource, and then verify that the resource was successfully found.

  8. Refer to the URL that you constructed for the poster.jpg media resource, and then verify that the resource was successfully found.

  9. Refer to the URL that you constructed for the welcome.mp4 video resource, and then verify that the resource was successfully found.

  10. Close the browser window that you created in this task.

Task 3: Update the Web App settings

  1. On the Azure portal's navigation pane, select Resource groups.

  2. On the Resource groups blade, select the MarketingContent resource group that you created previously in this lab.

  3. On the MarketingContent blade, select the landingpage[yourname] web app that you created previously in this lab.

  4. On the App Service blade, in the Settings category, select the Configuration link.

  5. In the Configuration section, select the Application settings tab.

  6. Select the existing CDNMediaEndpoint application setting.

  7. In the Add/Edit application setting pop-up dialog box, update the Value text box by entering the Endpoint hostname URL from the cdnmedia[yourname] endpoint that you copied previously in the lab, and then select OK.

  8. Select the existing CDNVideoEndpoint application setting.

  9. In the Add/Edit application setting pop-up dialog box, update the Value text box by entering the Endpoint hostname URL from the cdnvideo[yourname] endpoint that you copied previously in the lab, and then select OK.

  10. Select Save, and then select Continue to confirm your changes.

    Note: Wait for your application settings to persist before you move forward with the lab.

  11. In the Configuration section, select Overview.

  12. In the Overview section, select Restart, and then select Yes to confirm the app restart process.

    Note: Wait for the restart operation to complete before you continue with the lab. You'll receive a notification when the operation is done.

Task 4: Test the web content

  1. On the Azure portal's navigation pane, select the Resource groups link.

  2. On the Resource groups blade, select the MarketingContent resource group that you created previously in this lab.

  3. On the MarketingContent blade, select the contentdeliverynetwork CDN profile that you created previously in this lab.

  4. On the CDN profile blade, select the cdnweb[yourname] endpoint.

  5. On the Endpoint blade, copy the value of the Endpoint hostname link.

  6. On the taskbar, activate the shortcut menu for the Microsoft Edge icon, and then select New window.

  7. In the new browser window, refer to the Endpoint hostname URL for the cdnweb[yourname] endpoint.

  8. Observe the website and multimedia content that are all served using Content Delivery Network.

Review

In this exercise, you updated your web app to use Content Delivery Network to serve multimedia content and to serve the web application itself.

results matching ""

    No results matching ""