-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EnhReq: Need ability to retrieve history of changes for Azure App Config keys #27777
Comments
Thank you for opening this issue, we will look into it. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @shenmuxiaosen, @avanigupta. |
Hi @andrejusc, would |
@avanigupta - it works only partially as in my original command
and then it would require additional parsing of
and I'd like to be able to retrieve |
We currently don't support revision history specifically for feature flags. However, you could still filter on the state by parsing the value field using the |
@avanigupta - but how to do that? I'm reading that JMESPath, which is used for I could potentially achieve that via Linux As retrieval here is not straightforward - I still see then value of this enhancement request to be implemented/considered. |
@avanigupta - could this request be prioritized by some means? |
Hi @andrejusc, The idea to add a --history flag to the Using jq in linux, you could use this command to get all feature flags with their last modified date and state: az appconfig revision list -n <store-name> --key <feature-flag-key> | jq ".[] | {modified_date: .lastModified, enabled: .value | fromjson | .enabled} I hope this helps. |
Hi @albertofori - having already quite powerful Not sure why it's a problem of consistency here - I assume single object or array of objects are 2 main JSON variations in responses anyway. And it's down to consumer then based on provided documentation to process that response one way or another. But main point here - is to avoid extra parsing need altogether as it's not the expectation with already flexible AZ CLI commands/options/filters/etc. |
In Azure CLI, However, your point is valid that we should provide an easier way to get the history of feature flags without parsing json values using 3rd party tools. We are considering the best way to design this feature to meet your needs and Azure CLI standards. |
Related command
As of today - I could retrieve some configured entry and fields of names and last_modified in form like this:
az appconfig feature show -n <name> --key .appconfig.featureflag/<flag> --fields name last_modified
but I cannot find a way to retrieve history of changes, which I could see in Azure UI.
Is your feature request related to a problem? Please describe.
It's a problem of expected OOTB AZ CLI capabilities here.
Describe the solution you'd like
Not sure if
--history
option is used in some other AZ CLI commands. But potentially would like to be able to do like this:az appconfig feature show -n <name> --key .appconfig.featureflag/<flag> --fields name last_modified state --history
Describe alternatives you've considered
The only known alternative so far is Azure Portal UI, which is inconvenient for better automation.
Additional context
N/A
The text was updated successfully, but these errors were encountered: