Share via


Get-SCClusterVirtualNetwork

Gets the virtual network associated with a host cluster.

Syntax

Default (Default)

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.

Parameter properties

Type:HostCluster
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

VirtualNetwork