Zdieľať cez


az change-analysis

Note

This reference is part of the change-analysis extension for the Azure CLI (version 2.37.0 or higher). The extension will automatically install the first time you run an az change-analysis command. Learn more about extensions.

List changes for resources.

Commands

Name Description Type Status
az change-analysis list

List the changes of resources in the subscription within the specified time range. Customer data will always be masked.

Extension Preview
az change-analysis list-by-resource

List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access.

Extension Preview

az change-analysis list

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List the changes of resources in the subscription within the specified time range. Customer data will always be masked.

az change-analysis list --end-time
                        --start-time
                        [--resource-group]
                        [--skip-token]

Examples

List the changes of a subscription within the specific time range

az change-analysis list --start-time '05/24/2022 8:43:36' --end-time '05/25/2022 9:46:36'

List the changes of a resource group within the specific time range

az change-analysis list -g [ResourceGroup] --start-time '05/24/2022 8:43:36' --end-time '05/25/2022 9:46:36'

Required Parameters

--end-time

Specifies the end time of the changes request.

--start-time

Specifies the start time of the changes request.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--skip-token

A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az change-analysis list-by-resource

Preview

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List the changes of a resource within the specified time range. Customer data will be masked if the user doesn't have access.

az change-analysis list-by-resource --end-time
                                    --resource
                                    --start-time
                                    [--skip-token]

Examples

List the changes of a resource within the specified time range

az change-analysis list-by-resource -r [ResourceId] --start-time '05/24/2022 8:43:36' --end-time '05/25/2022 9:46:36'

Required Parameters

--end-time

Specifies the end time of the changes request.

--resource -r

The identifier of the resource.

--start-time

Specifies the start time of the changes request.

Optional Parameters

--skip-token

A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.