Get-SCClusterVirtualNetwork

Gets the virtual network associated with a host cluster.

Syntax

Get-SCClusterVirtualNetwork
   [-VMHostCluster] <HostCluster>
   [-VMMServer <ServerConnection>]
   [<CommonParameters>]

Description

The Get-SCClusterVirtualNetwork cmdlet gets one or more virtual networks associated with a host cluster.

Examples

Example 1: Get the virtual network for a cluster

PS C:\> $Cluster = Get-SCVMHostCluster -Name "VMHostCluster01.Contoso.com"
PS C:\> Get-SCClusterVirtualNetwork -VMHostCluster $Cluster

The first command gets the cluster object named VMHostCluster01 and stores the object in the $Cluster variable.

The second command gets the cluster virtual network object for the cluster stored in $Cluster (VMHostCluster01).

Parameters

-VMHostCluster

Specifies a VMM host cluster object.

Type:HostCluster
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

VirtualNetwork