Secrets
Azure Key Vault
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:
"{{ azure_secret_var('secret_name') }}"
For example:
api_key: "{{ azure_secret_var('API_KEY') }}" access_token: "{{ azure_secret_var('ACCESS_TOKEN') }}"