Skip to content

[Compute] az vm availability-set list: Support showing VM list#13090

Merged
qwordy merged 3 commits intoAzure:devfrom
qwordy:11821
Apr 27, 2020
Merged

[Compute] az vm availability-set list: Support showing VM list#13090
qwordy merged 3 commits intoAzure:devfrom
qwordy:11821

Conversation

@qwordy
Copy link
Member

@qwordy qwordy commented Apr 20, 2020

Description

#11821
az vm availability-set list does not show VM list in each availability set.
Now it can show it.

Before:

"virtualMachines": null

After:

"virtualMachines": [
      {
        "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/FYTEST4/providers/Microsoft.Compute/virtualMachines/VM1",
        "resourceGroup": "FYTEST4"
      }
    ]

Testing Guide

az vm availability-set create -g rg-n as
az vm create -g rg-n vm1 --image centos --availability-set as
az vm availability-set list

You should be able to see VM list in each availability set.

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


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

@qwordy qwordy requested review from arrownj and yungezz April 20, 2020 05:57
@yonzhan yonzhan added this to the S169 - For Build milestone Apr 20, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 20, 2020

add to S169

@qwordy qwordy requested a review from mmyyrroonn April 20, 2020 09:06
@@ -1268,7 +1268,7 @@ def list_av_sets(cmd, resource_group_name=None):
op_group = _compute_client_factory(cmd.cli_ctx).availability_sets
if resource_group_name:
return op_group.list(resource_group_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will be returned if list by resource group ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Contains VM list.

@qwordy qwordy merged commit 5fff003 into Azure:dev Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants