CmdID / az / az offazure / az offazure hyperv / az offazure hyperv host
az offazure hyperv host list
Method to get all hosts in a site. Azure CLI extensions reference
1 example 4 options Its page in the Azure CLI extensions reference
Examples
List hosts by site
az offazure hyperv host list --resource-group "pajindTest" --site-name "appliance1e39site" --subscription-id "4bd2aa0f-2bd2-4d67-91a8-5a4533d58600"Identify--resource-groupName of resource group.--site-nameSite name.--subscription-idThe ID of the target subscription.Options
--filter--resource-group, -gName of resource group.--site-nameSite name.--subscription-idThe ID of the target subscription.