Get-SCClusterVirtualNetwork
Applies To: System Center 2012 - Virtual Machine Manager
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.
For more information about Get-SCClusterVirtualNetwork, type: "Get-Help Get-SCClusterVirtualNetwork -online".
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.
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
1: Get the virtual network for a 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).
PS C:\> $Cluster = Get-SCVMHostCluster -Name "VMHostCluster01.Contoso.com"
PS C:\> Get-SCClusterVirtualNetwork -VMHostCluster $Cluster