jazida-opensource / dotenv-azure

🛠 Load environment variables from Azure's services App Configuration, Key Vault or a .env file
MIT License
10 stars 4 forks source link

Add support for keys with labels #410

Open kylehayes opened 3 years ago

kylehayes commented 3 years ago

I'm interested in providing a contribution to add support for keys with labels (https://docs.microsoft.com/en-us/azure/azure-app-configuration/concept-key-value#label-keys).

My thought was adding logic to loadFromAzure that would look for a new env var called AZURE_APP_CONFIG_LABELS. This value would be passed to getAppConfigurations. In getAppConfigurations, the labels would be passed to client.listConfigurationSettings into the labelFilter key for the ListConfigurationSettingsOptions property.

danielfsousa commented 3 years ago

That would be great! Feel free to open a PR