Configuring the Service Principal access Microsoft Fabric OneLake APIs
This blog post explains how to configure access for my Service Principal to interact with the Azure Storage API to use the API to get details for Microsoft Fabric Storage.
This is part of a blog post series where I am going to show you how to “View Total Storage consumed in Microsoft Fabric”
When I started this blog post I realized that I first need to explain how to configure the Service Principal authentication to interact with the Azure Storage API permissions. This is because in my notebook these steps are required for the notebook to run successfully.
NOTE: In my example I am using my Fabric Service Principal which is also used for the Power BI and Fabric Admin API requests. Because the Azure Storage permission is not related to the Power BI or Fabric APIs this API can be used.
NOTE II: The Fabric Service Principal already has got all the required permissions for Power BI and Fabric APIs requests, so using an existing Service Principal makes sense as one less thing to manage and configure.
Setting up Service Principal and permissions
Below is how to set up the Service Principal and permissions for the Azure Storage
Here is a link to set up the initial service principal: Enable service principal authentication for read-only admin APIs – Microsoft Fabric | Microsoft Learn
Once the Service Principal has been created, it then needs the following API Permissions
- Click on API Permissions
- The permission is under Azure Storage
- The API underlying permission is as shown above.
Here are the steps
- Click on Add a permission, then select Azure Storage
- Click on delegated permissions and select as shown below
Click Add permissions
Once the permissions are added you should see it in the API Permissions as shown below.
Summary
In this blog post I have shown you how to configure the Service Principal to be able to use the Azure Storage API.
Please stay tuned for the next blog post where I show you how to use this Service Principal to access the Azure Storage APIs to get all the details of the Lakehouse and Warehouse storage sizes.
Any questions and comments are most welcome.
[…] Gilbert Quevauvilliers grants some permissions: […]
[…] is where I am using the Service Principal that I created in my previous blog post (Configuring the Service Principal access Microsoft Fabric OneLake APIs – FourMoo | Fabric | Po…) which has got the required permissions to access the Azure Storage APIs which will allow me to […]