azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

{Compute} Add resiliency view command and argument

Open william051200 opened this issue 3 weeks ago • 5 comments

Related command

az vmss get-resiliency-view --instance instance_id az vmss list-instances --resiliency-view

Description

Resolve https://github.com/Azure/azure-cli/issues/32361

Testing Guide

To make sure list-instances will show instances within the vmss with their resiliency status. az vmss list-instances --resiliency-view

To make sure resiliency status is being shown for target instance. az vmss get-resiliency-view --instance instance_id

History Notes

[Compute] az vmss list-instances: Add new argument --resiliency-view to show resiliency status of each instance [Compute] az vmss get-resiliency-view: Add new command to show resiliency status of each instance


This checklist is used to make sure that common guidelines for a pull request are followed.

william051200 avatar Dec 04 '25 02:12 william051200

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

⚠️AzureCLI-BreakingChangeTest
⚠️vm
rule cmd_name rule_message suggest_message
⚠️ 1001 - CmdAdd vmss get-resiliency-view cmd vmss get-resiliency-view added
⚠️ 1006 - ParaAdd vmss list-instances cmd vmss list-instances added parameter resiliency_view
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter expand: removed property aaz_type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter expand: removed property type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter filter: removed property aaz_type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter filter: removed property type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter pagination_limit: removed property aaz_type=int
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter pagination_token: removed property aaz_type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter pagination_token: removed property type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter resource_group: removed property aaz_type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter resource_group: removed property type=string
⚠️ 1010 - ParaPropUpdate vmss list-instances cmd vmss list-instances update parameter resource_group: updated property name from resource_group to resource_group_name
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter select: removed property aaz_type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter select: removed property type=string
⚠️ 1008 - ParaPropAdd vmss list-instances cmd vmss list-instances update parameter virtual_machine_scale_set_name: added property id_part=virtual_machine_scale_set_name
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter virtual_machine_scale_set_name: removed property aaz_type=string
⚠️ 1009 - ParaPropRemove vmss list-instances cmd vmss list-instances update parameter virtual_machine_scale_set_name: removed property type=string

Thank you for your contribution! We will review the pull request and get back to you soon.

yonzhan avatar Dec 04 '25 02:12 yonzhan

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

github-actions[bot] avatar Dec 04 '25 02:12 github-actions[bot]

please refer to the error of breaking-change detector: image

since you have changed the implementation logic from aaz inheritance to wrapper, you need to make sure this change won't introduce any breaking change. to do that, you'll need to manually define the parameters in the file https://github.com/Azure/azure-cli/blob/e39ecb40ce04c8341051edcd038ee53b20798a3d/src/azure-cli/azure/cli/command_modules/vm/_params.py, based on the build arguments schema in aaz file: https://github.com/Azure/azure-cli/blob/e39ecb40ce04c8341051edcd038ee53b20798a3d/src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_list_instances.py#L39

yanzhudd avatar Dec 04 '25 05:12 yanzhudd

/azp run

yanzhudd avatar Dec 17 '25 23:12 yanzhudd

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Dec 17 '25 23:12 azure-pipelines[bot]