Forum Discussion
Credentials used for Azure keyvault in notebooks
Hi Anonymous , thanks for the reply!
I'm looking into configuring a service principal or managed identity whose credentials I can use in the notebook. I am however having trouble finding straigtforward documentation on how to achieve this.
When I look up using a service principal whose credentials I can use to retrieve secrets from the key vault I, from my understanding, create the service principal by creating an app that has access to the key vault. I then run into the problem of needing to store the apps credentials someplace safe other than the key vault.
When I look up using managed identity the closest solution applicable to MS fabric is using workspace identity, this is however not yet ready to be used for connecting to resources that support Entra id, meaning I can't use it to connect to the key vault.
What am i missing in how this should be correctly configured?
Best regards
ag_b
Hi Anonymous
Sorry for the late reply.
Configuring a service principal or managed identity for use in a notebook can indeed be a bit tricky. Here I find some documents that can help:
Using a Managed Identity with Databricks to Run Notebooks Through a Web App (bart.je)
Use service principals & managed identities - Azure DevOps | Microsoft Learn
Manage service principals - Azure Databricks | Microsoft Learn
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.