author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
msmbaldwin |
key-vault |
include |
09/03/2020 |
msmbaldwin |
-
Make sure you have an Azure account with an active subscription.
-
Install Python 2.7+ or 3.5.3+.
-
Install the Azure CLI.
-
Follow the instructions on Configure authentication for local development, with which you create a local service principal and make it available to the Azure Key Vault Client for Python through environment variables.
When running code directly on Azure, a separate service principal is not needed if the app uses managed identity.
-
In a terminal or command prompt, create a suitable project folder, and then create and activate a Python virtual environment as described on Use Python virtual environments
-
Install the Azure Active Directory identity library:
pip install azure.identity