External content provider: Azure
Overview
This section describes how to configure the Azure Storage Service to support an RPI external content provider.
Azure account configuration
In a browser, log into https://portal.azure.com.
After logging in, you will be redirected to the Azure Portal home page.
![](../__attachments/3904997397/att_43_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Click Storage accounts to view the list of storage accounts for the Azure Storage service.
![](../__attachments/3904997397/att_7_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
![](../__attachments/3904997397/att_44_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Select your preferred account and view its details.
![](../__attachments/3904997397/att_36_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Adding an Azure storage container
Having clicked Containers, you can add a container and edit its privacy settings. Add a container, and set its access type to Container. Note that if this setting is not changed files will not be accessible in RPI.
![](../__attachments/3904997397/att_46_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Specify a name for the container and click Create.
![](../__attachments/3904997397/att_8_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Select the created container in the list and start uploading/viewing files.
![](../__attachments/3904997397/att_37_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Azure CDN (Content Delivery Network) configuration
In a browser, log into https://portal.azure.com.
In the navigation panel, scroll down, and click More services > Front Door and CDN Profiles > Create.
![](../__attachments/3904997397/att_9_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
![](../__attachments/3904997397/att_26_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Select Explore other offerings, then select Azure CDN Standard from Microsoft (classic). Click Continue.
![](../__attachments/3904997397/att_27_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
To create a new CDN profile, complete the form’s required details and click Review + Create.
![](../__attachments/3904997397/att_10_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Refresh the list of CDN profiles. Once your new profile is available, select it.
![](../__attachments/3904997397/att_11_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
To add an Endpoint, click Endpoint.
![](../__attachments/3904997397/att_38_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Complete the form and click Add.
![](../__attachments/3904997397/att_20_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Wait while the CDN endpoint is created. Refresh the list of CDN profiles to view the newly-created endpoint.
![](../__attachments/3904997397/att_21_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Select the endpoint and scroll down to Origin.
![](../__attachments/3904997397/att_39_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Use the Origin hostname to configure the Azure Storage provider’s Blob service endpoint property.
Locating the access key
Select your preferred Storage account and view its details.
![](../__attachments/3904997397/att_40_for_3897786400.jpeg?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
In the left menu, select Access keys.
![](../__attachments/3904997397/att_28_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
At key1, click Show, then click Copy to clipboard.
Set permissions
Click the top left menu icon and select Azure Active Directory.
![](../__attachments/3904997397/att_29_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Click App registrations, then New registration.
![](../__attachments/3904997397/att_30_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Supply a name, then click the Register button.
![](../__attachments/3904997397/att_47_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
The App Overview page provides the Application ID and Directory (tenant) ID.
![](../__attachments/3904997397/att_51_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Click Certificates and secret in the left-hand menu. Click New client secret, and click Add.
Assign an App and Role to your storage container.
Go to your storage account and select the created container.
In the left menu, select Access Control (IAM).
Select Add > Add role assignment.
![](../__attachments/3904997397/att_49_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)
Complete the form:
Role - Select Storage Blob Data Contributor.
Assign access to - Leave the defaults unchanged. They should be User, group, or service principal.
Select - Start typing in the name of the app and select it from the dropdown list.
Click Save.
![](../__attachments/3904997397/att_52_for_3897786400.png?inst-v=c3007bf4-8f91-43d3-9633-90859273c945)