The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
This setting is currently blocking executing a notebook with a service principal with the notebook then accessing the OneLake to read in a delta table. We want to leave this setting disabled and have notebooks executed via service principal rather than users. Anyone know if there is a way to get this scenario to work?
(a) Tenant Setting - Allow apps running outside of Fabric to access data via OneLake is disabled ( Config below works fine if this setting is chnaged to enabled )
(b) I have a data pipeline which is owned by a service principal
(c) It calls a notebook and when submitted it runs the notebook as the service principal
(d) The notebook then tries to load from a delta table using
(e) The service principal as an admin on the workspace
(f) We get error:
Hi @garddolau,
Thanks for reaching out to the Microsoft fabric community forum.
Based on the behavior you're describing, the issue is related to how Fabric handles authentication contexts when accessing OneLake from a notebook executed via a service principal with the key tenant setting currently disabled.
Even though your notebook is running inside Fabric and the service principal has admin access to the workspace, when the setting "Allow apps running outside of Fabric to access data via OneLake" is disabled, Fabric enforces stricter access control to OneLake storage endpoints wven for service principals operating within Fabric boundaries.
This means the service principal needs to authenticate as a “Fabric identity” for OneLake access to work. But with the tenant setting disabled, only identities marked explicitly as Fabric users or runtime identities (like managed identities) are allowed to access OneLake endpoints internally.
To allow this scenario without enabling the tenant setting, you must assign the service principal the “Fabric runtime” identity permissions. You can proceed by:
* Ensuring the service principal has the required OneLake permissions. Fpor this go to the relevant Lakehouse storage account via Microsoft Purview or Azure portal. Then assign “Storage Blob Data Contributor” role to the service principal at the right scope (container or workspace level). Also assign Workspace permissions to the service principal (which you've already done).
* Also ensure the service principal is enabled as a Fabric runtime identity. Go to Fabric Admin Portal -> Access control. Under Runtime Identities, ensure your service principal is explicitly registered here. This step is critical because, with the tenant setting disabled, Fabric treats all other identities as external unless they are in this list.
* If necessary, configure a Lakehouse-level ACL for the service principal. Within the Fabric UI, open the Lakehouse, then go to Manage Access -> Add your service principal and assign the Viewer or Contributor role.
Once these steps are complete, your service principal should be able to read the Delta table from OneLake without needing to enable the tenant setting.
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team
Hi, thanks for your prompt reply. I can;t find the option for Go to Fabric Admin Portal -> Access control. Under Runtime Identities
Is it under fabric tenant settings or somewhere else?
Thanks,
Darren
Hi @garddolau,
The “Runtime Identities” setting is not listed under the same section shown in the below image (which is focused on Developer and Admin API settings).
The “Runtime Identities” configuration is managed under Microsoft Fabric Admin Portal → Access Control → Runtime Identities.
Best Regards,
Hammad.
Hi Hammad, I can't still find the Access Control section. Can you provide a screen shot of where it is please?
Thanks
one of these?
Thanks, the service principal is already a member of thoes and it works find for all other Fabric activities just not access on OneLake within the notebook
User | Count |
---|---|
21 | |
18 | |
6 | |
2 | |
2 |
User | Count |
---|---|
50 | |
49 | |
18 | |
6 | |
5 |