- Get Azure CLI
Run:
-
az login
-
az extension add --source https://azconfigextensions.blob.core.windows.net/azconfigextension/azconfig-0.3.0-py2.py3-none-any.whl
-
az azconfig credential list -n azconfig
Note: If you see the error similar to:
InvalidResourceNamespace - The resource namespace 'Microsoft.Azconfig' is invalid.
make sure to add the subscriptionAzure SDK Developer Playground
as your active subscription. To do this:- Check your active subscription value by doing
az account show
- Set default
az account set --subscription {Name or ID of subscription}
- Double check your active subscription value by doing
az account show
- Check your active subscription value by doing
-
From the output, get the first connection string and add it as
AZ_CONFIG_CONNECTION
environment variable's value. -
Make sure to restart VS or the environment where the tests are running.