Forum Discussion
Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline
- 4 months ago
Hi kasun_rumesh , Thank you for reaching out to the Microsoft Community Forum.
Your workspace setup looks correct from the screenshots, so this does not look like a Workspace Identity creation or workspace permission issue anymore. The error is happening before the notebook execution itself, while Fabric is trying to access workspace details. That usually points to tenant-level API authentication.
Please check whether the tenant setting “Service principals can call Fabric public APIs” is enabled in the Fabric Admin Portal. If the setting is restricted to specific security groups, make sure the Workspace Identity/service principal is included there as well. Also keep “Allow Code-First Artifacts like Notebooks to access this connection” enabled on the notebook connection, since Notebook activities require it.
This looks more like a missing Fabric API permission for the Workspace Identity than a notebook or Key Vault problem.
Hi kasun_rumesh , Thank you for reaching out to the Microsoft Community Forum.
Your workspace setup looks correct from the screenshots, so this does not look like a Workspace Identity creation or workspace permission issue anymore. The error is happening before the notebook execution itself, while Fabric is trying to access workspace details. That usually points to tenant-level API authentication.
Please check whether the tenant setting “Service principals can call Fabric public APIs” is enabled in the Fabric Admin Portal. If the setting is restricted to specific security groups, make sure the Workspace Identity/service principal is included there as well. Also keep “Allow Code-First Artifacts like Notebooks to access this connection” enabled on the notebook connection, since Notebook activities require it.
This looks more like a missing Fabric API permission for the Workspace Identity than a notebook or Key Vault problem.
My solution was removing the connection, and it worked, hope this helps someone else because it was fun to get it