az appconfig revision

Manage revisions for key-values stored in an App Configuration.

Commands

az appconfig revision list

Lists revision history of key-values.

az appconfig revision list

Lists revision history of key-values.

az appconfig revision list [--all]
                           [--connection-string]
                           [--datetime]
                           [--fields {content_type, etag, key, label, last_modified, locked, tags, value}]
                           [--key]
                           [--label]
                           [--name]
                           [--query-examples]
                           [--subscription]
                           [--top]

Examples

List revision history of a key-value using App Configuration name.

az appconfig revision list -n MyAppConfiguration --key color --label test

List revision history of a key-value with multiple labels.

az appconfig revision list -n MyAppConfiguration --key color --label test,prod,\0

List revision history for key "color" with any labels using connection string

az appconfig revision list --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --key color --datetime "2019-05-01T11:24:12Z"

List revision history for all items and query only key, value and last_modified.

az appconfig revision list --connection-string Endpoint=https://contoso.azconfig.io;Id=xxx;Secret=xxx --fields key value last_modified

Optional Parameters

--all

List all items.

--connection-string

Combination of access key and endpoint of App Configuration. Can be found using 'az appconfig credential list'. Users can preset it using az configure --defaults appconfig_connection_string=<connection_string> or environment variable with the name AZURE_APPCONFIG_CONNECTION_STRING.

--datetime

Format: "YYYY-MM-DDThh:mm:ssZ". If no time zone specified, use UTC by default.

--fields

Space-separated customized output fields.

accepted values: content_type, etag, key, label, last_modified, locked, tags, value
--key

If no key specified, return all keys by default. Support star sign as filters, for instance abc* means keys with abc as prefix.

--label

If no label specified, list all labels. Support star sign as filters, for instance abc* means labels with abc as prefix. Use '0' for null label.

--name -n

Name of the App Configuration. You can configure the default name using az configure --defaults app_configuration_store=<name>.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--top -t

Maximum number of items to return. Must be a positive integer. Default to 100.