@Sasidhar R. Kolli - Thanks for the question and using MS Q&A platform.
Here are the steps to update the secret in keyvault from Synapse notebook:
Before: Here is the sample keyvault named chepra
with key named chepra
and the secretValue named Mar2023
Step1: Create a Azure Key Vault linked service which you want to use as shown below:
Step2: You can use mssparkutils help for tokens and secrets.
This function displays the help documentation for secrets and tokens management in Synapse.
mssparkutils.credentials.help()
Step3: From mssparkutils help for tokens and secrets use putSecret(akvName: String, secretName: String, secretValue: String): puts AKV secret for a given akvName, secretName
After: Here is the sample keyvault named chepra
with key named chepra
and the secretValue named Oct2023
For more details, refer to Secure credentials with linked services using the mssparkutils.
Summary: Above steps helped to update the secret in keyvault from Synapse notebook.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.