New-SCVMNetwork

Creates a virtual machine network.

Syntax

New-SCVMNetwork [-Name] <String> [[-Description] <String>] [-AutoCreateSubnet]
 [-CAIPAddressPoolType <VMNetworkIPAddressPoolType>] [-JobVariable <String>] -LogicalNetwork <LogicalNetwork>
 [-NetworkManager <VirtualSwitchExtensionManager>] [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>]
 [-Owner <String>] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType>] [-PROTipID <Guid>] [-PortACL <PortACL>]
 [-RoutingDomainId <Guid>] [-RunAsynchronously] [-UserRole <UserRole>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]
New-SCVMNetwork [-Name] <String> [[-Description] <String>] [-CAIPAddressPoolType <VMNetworkIPAddressPoolType>]
 -ExternalName <String> [-JobVariable <String>] -LogicalNetwork <LogicalNetwork> [-OnBehalfOfUser <String>]
 [-OnBehalfOfUserRole <UserRole>] [-Owner <String>] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType>]
 [-PROTipID <Guid>] [-PortACL <PortACL>] [-RoutingDomainId <Guid>] [-RunAsynchronously] [-UserRole <UserRole>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]
New-SCVMNetwork [-Name] <String> [[-Description] <String>] [-CAIPAddressPoolType <VMNetworkIPAddressPoolType>]
 [-ExternalVMNetwork] [-JobVariable <String>] -LogicalNetwork <LogicalNetwork>
 [-NetworkManager <VirtualSwitchExtensionManager>] [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>]
 [-Owner <String>] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType>] [-PROTipID <Guid>] [-PortACL <PortACL>]
 [-RoutingDomainId <Guid>] [-RunAsynchronously] [-UserRole <UserRole>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]
New-SCVMNetwork [-Name] <String> [[-Description] <String>] [-CAIPAddressPoolType <VMNetworkIPAddressPoolType>]
 -IsolationType <VMNetworkType> [-JobVariable <String>] -LogicalNetwork <LogicalNetwork>
 [-OnBehalfOfUser <String>] [-OnBehalfOfUserRole <UserRole>] [-Owner <String>]
 [-PAIPAddressPoolType <VMNetworkIPAddressPoolType>] [-PROTipID <Guid>] [-PortACL <PortACL>]
 [-RoutingDomainId <Guid>] [-RunAsynchronously] [-UserRole <UserRole>] [-VMMServer <ServerConnection>]
 [<CommonParameters>]

Description

The New-SCVMNetwork cmdlet creates a virtual machine network. Virtual machine networks support multiple methods of isolation: No isolation, network virtualization, external, and VLAN. The type of isolation used by the VM network depends on the specified logical network. Virtual Machine Manager (VMM) uses the IP address pools that are associated with a virtual machine network to assign customer addresses to virtual machines.

The customer address is visible to the virtual machine and is used by customers to communicate with the virtual machine.

You must provide a logical network object when you create a virtual machine network. To obtain a logical network object, use the Get-SCLogicalNetwork cmdlet.

Examples

Example 1: Create a virtual machine network

PS C:\> $LogNet = Get-SCLogicalNetwork -Name "LogicalNetwork01"
PS C:\> New-SCVMNetwork -Name "VMNetwork01" -LogicalNetwork $LogNet

The first command gets the logical network object named LogicalNetwork01 and stores the object in the $LogNet variable.

The second command creates a VM network named VMNetwork01 with the logical network LogicalNetwork01.

Parameters

-AutoCreateSubnet

Indicates that a subnet is automatically created.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CAIPAddressPoolType

Specifies an address pool type. Valid values are: IPV4, IPV6.

Type:VMNetworkIPAddressPoolType
Parameter Sets:IPV4, IPV6
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

Specifies a description for the virtual machine network.

Type:String
Required:False
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExternalName

Specifies an external name for an object.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExternalVMNetwork

Indicates that the virtual machine network is external.

Type:SwitchParameter
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IsolationType

Specifies an isolation type for a virtual machine network. The acceptable values for this parameter are:

- NoIsolation

  • WindowsNetworkVirtualization
  • External
  • VLANNetwork

Type:VMNetworkType
Parameter Sets:NoIsolation, WindowsNetworkVirtualization, External, VLANNetwork
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies that job progress is tracked and stored in the variable named by this parameter.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LogicalNetwork

Specifies a logical network. A logical network is a named grouping of IP subnets and VLANs that is used to organize and simplify network assignments.

Type:LogicalNetwork
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a VMM object.

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NetworkManager

Specifies a virtual switch extension manager.

Type:VirtualSwitchExtensionManager
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-OnBehalfOfUser

Specifies a user name. This cmdlet operates on behalf of the user that this parameter specifies.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OnBehalfOfUserRole

Specifies a user role. To obtain a user role, use the Get-SCUserRole cmdlet. This cmdlet operates on behalf of the user role that this parameter specifies.

Type:UserRole
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Owner

Specifies the owner of a VMM object in the form of a valid domain user account.

- Example format: -Owner "Contoso\PattiFuller"

  • Example format: -Owner "PattiFuller@Contoso"

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PAIPAddressPoolType

Specifies an address pool type. Valid values are: IPV4, IPV6.

Type:VMNetworkIPAddressPoolType
Parameter Sets:IPV4, IPV6
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PortACL

Specifies a port ACL object.

Type:PortACL
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RoutingDomainId

Specifies the ID of a routing domain in the form of a GUID.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UserRole

Specifies a user role object.

Type:UserRole
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

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