- Get Azure CLI
- Have an Azure subscription. More information about how to create a free account.
Create or use an existing Configuration Store.
For users that have access to the Azure SDK Developer Playground
subscription, run:
-
az login
-
az extension add -n appconfig
-
az appconfig 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
APP_CONFIG_CONNECTION
environment variable's value. -
Make sure to restart VS or the environment where the tests are running.