adp.core.secrets.get_secret

adp.core.secrets.get_secret(secret_name: str, scope_name: str = 'keyVaultScopeSDPSolutions01') str

Retrieve a secret from the Azure Keyvault.

In the past, this function used DbUtils, now it only uses the Azure Keyvault API’s directly. It will use the environment variable to determine which keyvault to use.

Parameters:

secret_name (str) – The name of the secret

Returns:

The content of the secret

Return type:

str