Secret manager
Azure Key Vault
YAML
To use secrets in YAML files (e.g. in data integration pipelines):
-
Add the following keys and values to your environment variables so that Mage can access the Azure Key Vault:
AZURE_KEY_VAULT_URL
: The Azure Key Vault URI.AZURE_CLIENT_ID
: Azure Active Directory client ID.AZURE_CLIENT_SECRET
: Azure Active Directy client secret.AZURE_TENANT_ID
: Azure Active Directory tenant ID.
-
Store a secret in Azure Key Vault.
-
Use the following syntax in your YAML file to interpolate secret values from Azure Key Vault:
For example:
Python
Here is the example python code to get secrets from Azure Key Vault: