Forum Discussion
Call semPy libraries as service principal
- Anonymous1 year ago
HI Anonymous,
After I double checked these credentials that we provide in the notebook. It seems not really used for the sempy functions authorizations.
They only initialed for Fabric RestClient and corresponding functions uses. For the default sempy functions, they still invoked the current user credentials that notebook and its sessions cached.
Regards,
Xiaoxin Sheng
Hi Anonymous,
Perhaps you can tried to use azure keyvault to get the service principal credentials and use in notebook:
secret = mssparkutils.credentials.getSecret('https://key-vault-datasarva.vault.azure.net/', 'secret-value')
Using Azure Key Vault in Microsoft Fabric Notebooks
Regards,
Xiaoxin Sheng
Hi Anonymous
I have incorporated your suggestion, meaning my client secret now looks like this:
- Anonymous1 year agoNot applicable
HI Anonymous,
After I double checked these credentials that we provide in the notebook. It seems not really used for the sempy functions authorizations.
They only initialed for Fabric RestClient and corresponding functions uses. For the default sempy functions, they still invoked the current user credentials that notebook and its sessions cached.
Regards,
Xiaoxin Sheng