Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
sachinkrsah1995
Microsoft Employee
Microsoft Employee

Access KeyVault secret using SPN or managed identity in fabric notebook

Hi Team,

Is there a way to Access KeyVault secret using SPN or managed identity from fabric notebook?

6 REPLIES 6
v-cboorla-msft
Microsoft Employee
Microsoft Employee

Hi @sachinkrsah1995 

 

Thanks for using Microsoft Fabric Community.

Please refer to the below links to access keyvault secret from Microsoft Fabric notebook.

Link 1: Secrets From Azure Key Vault in Microsoft Fabric Notebooks - YouTube

Link 2 : Reading and Writing Secrets in Azure Key Vault Using Microsoft Fabric Notebooks (iterationinsights.c...

 

I hope this information helps. Please do let us know if you have any further questions.

 

Thank you.

Hi @v-cboorla-msft ,

In both these links I see the keyvault is being accessed using a user domain access not spn. 

Just wanted to know if there is a way to Access KeyVault secret using SPN or managed identity from fabric notebook?

Hi @sachinkrsah1995 

 

I have reached internal team and got the response.

You can do it with azure.identity lib, see key vault example here: Using Managed Private Endpoints from Fabric Spark | by Aitor Murguzur | Mar, 2024 | Medium . The mssparkutils.credentials and tokenLibrary don't support spn yet, only user identity.

 

I hope this information helps.

 

Thank you.

Hi @v-cboorla-msft ,

 

Managed private endpoints require users to be on an F64 SKU or above. Do you have a suggestion on how this can be achieved with a SKU below this capacity.

 

Thanks!

Hi @sachinkrsah1995 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thanks.

Hi @sachinkrsah1995 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others .
If you have any question relating to the current thread, please do let us know and we will try out best to help you.
In case if you have any other question on a different issue, we request you to open a new thread.

 

Thanks.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.