Skip to main content

Set Azure Secrets as environment variables.

Project description

Azure KeyVault Secrets as Environment Variable

FOSSA Status

Get Azure KeyVault variables ans use them as environment variables.


pip install azsecrets


You can set environment variables for:

export AZURE_CLIENT_ID=***
export AZURE_TENANT_ID=***

or send it via the CLI as

secrets --vault-base-url *** --client-id *** --secret *** --tenant *** env --shell bash

Once you have set up the environment variables, just call the CLI:

secrets env --shell bash

You can also use it at as an package my importing it:

from azsecrets import AzureSecrets

print(AzureSecrets().get_secrets(["SECRET-NAME-1", "SECRET-NAME-1"]))


All contributions are welcome.


FOSSA Status

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azsecrets-2.0.1.tar.gz (3.7 kB view hashes)

Uploaded source

Built Distribution

azsecrets-2.0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page