1

Microsoft offers a RESTful API for Azure App Configuration with the documentation at: https://learn.microsoft.com/en-us/rest/api/appconfiguration/configurationstores/list

I have defined some features using Feature Manager in an instance of App Configuration. When I use the above API, it just gives me a list of App Configuration. I was wondering if there is an API for listing the features defined in App Configuration. I am building a service and I need to be able to query it programmatically.

1 Answer 1

2

The key-values present in your instance of App Configuration can be accessed through the data-plane API detailed here. The API docs you linked to are control-plane docs for creating/managing App Configuration instances, rather than working with the data inside of them.

Features in an App Configuration instance are key-values that follow specific conventions detailed here. To work with them programmatically, you can use the key-values API and follow the feature flag conventions for key-values.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks! In the samples here, the feature flags are local (in the appsettings) while I am trying to read them from App Configuration. Is there an SDK for that or do I need to make HTTP calls to the key-values endpoint? Also, in the documentation for key-values API, the host hasn't been mentioned. For example: GET /kv/{key}?label={label}&api-version={api-version}
The Microsoft.Extensions.Configuration.AzureAppConfiguration package provides the capability to load feature flags from Azure App Configuration and consume them using the Microsoft.FeatureManagement library. Check out this tutorial. It mentions using Microsoft.Azure.AppConfiguration.AspNetCore instead of the package I mentioned, but this package just references the one I mentioned and adds some ASP.NET Core functionality. The host should be available in Azure portal for your instance.
Thanks. I found what I was looking for at App Configuration API reference. I used Azure.Data.AppConfiguration and Azure.Identity and also created an rbac principal to be able to access App Configuration using client ID and client secret.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.