Skip to content

cmdlets hosts in cluseter as they appear in the portal. #8685

@theav8or

Description

@theav8or

Describe the bug

Looking to list the hosts on all cluster using azure-cli, cmdlets can not list hosts as they appear in the portal.
The goal here is to identify any discrepancies between what is shown in vCenter versus what is displayed in the portal/AzCLI, demonstrating that this is a scale operation.

This situation arises if Maintenance event adds a host to the SDDC during the vSphere 8 Upgrade .

Related command

https://learn.microsoft.com/en-us/cli/azure/vmware/vm?view=azure-cli-latest#az-vmware-vm-list

Errors

az vmware vm list --resource-group group1 --private-cloud cloud1 --cluster-name cluster1

Issue script & Debug output

no output list hosts

Expected behavior

have host cound with the parent cluster show in output

Environment Summary

azure-cli 2.30.0

core 2.30.0
telemetry 1.0.6

Extensions:
interactive 0.4.4

Python location '/usr/local/bin/python3'
Extensions directory '/home/user/.azure/cliextensions'

Python (Linux) 3.8.10 (default, May 3 2021, 08:55:58)
[GCC 9.3.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

this will enable automation preventing false alerts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions