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.
列出资源的更改。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az change-analysis list |
列出订阅中指定时间范围内的资源更改。 客户数据将始终被屏蔽。 |
Extension | Preview |
az change-analysis list-by-resource |
列出指定时间范围内资源更改。 如果用户没有访问权限,则会屏蔽客户数据。 |
Extension | Preview |
az change-analysis list
此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出订阅中指定时间范围内的资源更改。 客户数据将始终被屏蔽。
az change-analysis list --end-time
--start-time
[--resource-group]
[--skip-token]
示例
列出特定时间范围内订阅的更改
az change-analysis list --start-time '05/24/2022 8:43:36' --end-time '05/25/2022 9:46:36'
列出特定时间范围内资源组的更改
az change-analysis list -g [ResourceGroup] --start-time '05/24/2022 8:43:36' --end-time '05/25/2022 9:46:36'
必需参数
指定更改请求的结束时间。
指定更改请求的开始时间。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
跳过令牌用于在作返回部分结果后继续检索项。 如果以前的响应包含 nextLink 元素,则 nextLink 元素的值将包含一个 skipToken 参数,该参数指定用于后续调用的起点。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az change-analysis list-by-resource
此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出指定时间范围内资源更改。 如果用户没有访问权限,则会屏蔽客户数据。
az change-analysis list-by-resource --end-time
--resource
--start-time
[--skip-token]
示例
列出指定时间范围内资源更改
az change-analysis list-by-resource -r [ResourceId] --start-time '05/24/2022 8:43:36' --end-time '05/25/2022 9:46:36'
必需参数
指定更改请求的结束时间。
资源的标识符。
指定更改请求的开始时间。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
跳过令牌用于在作返回部分结果后继续检索项。 如果以前的响应包含 nextLink 元素,则 nextLink 元素的值将包含一个 skipToken 参数,该参数指定用于后续调用的起点。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |