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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Community Support
Community Support

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.