You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromazure.keyvault.secretsimportSecretClientfromazure.identityimportDefaultAzureCredentialVAULT_URL="https://arnoldlab.vault.azure.net/"credential=DefaultAzureCredential()
client=SecretClient(vault_url=VAULT_URL, credential=credential)
bank_secret=client.get_secret("TEST")
print(f"Secret with name '{bank_secret.name}' was found with value '{bank_secret.value}'.")
You should get the following output: Secret with name 'TEST' was found with value 'thisisatestkey'.