Get-SCClusterVirtualNetwork

Get-SCClusterVirtualNetwork

Gets the virtual network associated with a host cluster.

Syntax

Parameter Set: Default
Get-SCClusterVirtualNetwork [-VMHostCluster] <HostCluster> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

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

Parameters

-VMHostCluster<HostCluster>

Specifies a VMM host cluster object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • VirtualNetwork

Examples

Example 1: Get the virtual network for a cluster

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

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

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

Get-SCVMHostCluster