az maintenance update
Note
此参考是 Azure CLI(版本 2.67.0 或更高版本) 的维护 扩展的一部分。 该扩展将在首次运行 az maintenance update 命令时自动安装。 了解更多关于扩展的信息。
使用维护管理更新。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az maintenance update list |
列出资源的更新。 |
Extension | GA |
| az maintenance update list-parent |
列出资源的更新。 |
Extension | GA |
az maintenance update list
列出资源的更新。
az maintenance update list --provider-name
--resource-group
--resource-name
--resource-type
示例
Updates_List
az maintenance update list --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "smdtest1" --resource-type "virtualMachineScaleSets"
必需参数
资源提供程序名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
资源标识符。
资源类型。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az maintenance update list-parent
列出资源的更新。
az maintenance update list-parent [--ids]
[--provider-name]
[--resource-group]
[--resource-name]
[--resource-parent-name]
[--resource-parent-type]
[--resource-type]
[--subscription]
示例
Updates_ListParent
az maintenance update list-parent --provider-name "Microsoft.Compute" --resource-group "examplerg" --resource-name "1" --resource-parent-name "smdtest1" --resource-parent-type "virtualMachineScaleSets" --resource-type "virtualMachines"
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源提供程序名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源标识符。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源父标识符。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源父类型。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源类型。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |