PowerCLI Reference

Get-HCXApplianceCompute

Synopsis

This cmdlet retrieves a list of vCenter Server compute resources.

Syntax

Get-HCXApplianceCompute [[-Name] <String[]>] -DVS <HCXApplianceDVS> [-Server <HcxServer[]>] [<CommonParameters>]

Get-HCXApplianceCompute [[-Name] <String[]>] -Network <HCXNetwork> [-Server <HcxServer[]>] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet retrieves a list of vCenter Server compute resources. You can use the output of the cmdlet for creating a new HCX (Hybrid Cloud Extension) Appliance request.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the name of the vCenter Server compute.falseFalse
DVSHCXApplianceDVSSpecifies the DVS (Distributed Virtual Switch) filter.trueTrue (ByValue)
NetworkHCXNetworkSpecifies the HCX (Hybrid Cloud Extension) networks. These include networks of type Network, DistributedVirtualPortgroup, VirtualWire, and VirtualNetwork.trueTrue (ByValue)
ServerHcxServer[]Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.falseFalse

Return Type

VMware.VimAutomation.Hcx.Types.V1.HCXApplianceCompute

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> $myNetwork = Get-HCXNetwork -Name "myName"
        Get-HCXApplianceCompute -Network $myNetwork

Retrieves a list of vCenter Server compute resources filtered by network.

-------------------------- Example 2 --------------------------

PS C:\> $myDvs = Get-HCXApplianceDVS -Name "myDvs"
        Get-HCXApplianceCompute -DVS $myDvs

Retrieves the list of vCenter Server compute resources filtered by DVS.

-------------------------- Example 3 --------------------------

PS C:\> $myDvs = Get-HCXApplianceDVS -Name "myDvs"
        Get-HCXApplianceCompute -DVS $myDvs -Name "myName"

Retrieves a list of vCenter Server compute resources filtered by name.


Copyright © VMware, Inc. All rights reserved.