Announcing Service Principal support for Fabric APIs
A new way to authenticate and authorize your Fabric applications.
You can now use service principal to access Fabric APIs. Service principal is a security identity that you can create in Entra and assign permissions to it in Entra and other Microsoft services, such as Microsoft Fabric.
With service principal you can automate your Fabric processes and integrate them with other services.
Which Fabric APIs support service principal?
The following Fabric APIs support service principal authentication and authorization:
- Fabric Workspace management APIs:
- Use service principal to create, update, delete Fabric workspace as well as assign user permissions to it. Workspaces – REST API (Core) | Microsoft Learn
- Fabric Capacity APIs:
- Use service principal to list capacities: Capacities – REST API (Core) | Microsoft Learn
- Fabric Item CORE CRUD APIs for the following item types:
- Paginated Report
- Semantic model
- Report
- Lakehouse
- Notebook
- Environment
- Spark Job Definition
- EventHouse
- KQL Database
- KQL Queryset
- One Lake shortcut APIs OneLake Shortcuts – REST API (Core) | Microsoft Learn.
- OneLake Data Access Security APIs Create or Update Data Access Roles, List Data Access Roles.
We are working to enable service principal support for more Fabric APIs, stay tuned for more updates.
How to use service principal with Fabric APIs?
To use service principal with Fabric APIs, follow these steps:
- Create a service principal in Entra for your Fabric resources, you can use the Azure portal, Azure CLI, or PowerShell to do this.
- Assign permission for your Fabric resources.
- Acquire an Entra access token for your service principal for Fabric , you can use the Azure SDK, Azure CLI, or PowerShell to do this.
- Use the access token to call the Fabric APIs that support service principal.
For more details and examples, please refer to the documentation on Service principal authentication and authorization for Fabric APIs.
Microsoft Fabric REST API references – Microsoft Fabric REST APIs | Microsoft Learn
Feedback and support
We hope you enjoy using service principal with Fabric APIs and find it useful for your Fabric automation scenarios. We would love to hear your feedback and suggestions on how to improve this feature. Feel free to contact us at tridentpubapir@microsoft.com