New-SCVMNetwork
New-SCVMNetwork
Creates a virtual machine network.
Syntax
Parameter Set: Default
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-JobVariable <String> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-PortACL <PortACL> ] [-PROTipID <Guid]> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: AutoCreate
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -AutoCreateSubnet -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-JobVariable <String> ] [-NetworkManager <VirtualSwitchExtensionManager> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-PortACL <PortACL> ] [-PROTipID <Guid]> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: External
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -ExternalName <String> -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-JobVariable <String> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-PortACL <PortACL> ] [-PROTipID <Guid]> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: ExternalVMNetwork
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -ExternalVMNetwork -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-JobVariable <String> ] [-NetworkManager <VirtualSwitchExtensionManager> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-PortACL <PortACL> ] [-PROTipID <Guid]> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: IsolationType
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -IsolationType <VMNetworkType]> -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-JobVariable <String> ] [-OnBehalfOfUser <System.String> ] [-OnBehalfOfUserRole <Microsoft.SystemCenter.VirtualMachineManager.UserRole> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType]> ] [-PortACL <PortACL> ] [-PROTipID <Guid]> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Detailed 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 VM 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.
Parameters
-AutoCreateSubnet
Indicates that a subnet is automatically created.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-CAIPAddressPoolType<VMNetworkIPAddressPoolType]>
Specifies an address pool type. Valid values are: IPV4, IPV6.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Description<String>
States a description for the specified object.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ExternalName<String>
Specifies an external name for an object.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ExternalVMNetwork
Indicates that the VM network is external.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-IsolationType<VMNetworkType]>
Specifies an isolation type for a VM network. Valid values are: NoIsolation, WindowsNetworkVirtualization, External, VLANNetwork.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-JobVariable<String>
Specifies that job progress is tracked and stored in the variable named by this parameter.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-LogicalNetwork<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.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies the name of a VMM object.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-NetworkManager<VirtualSwitchExtensionManager>
Specifies a virtual switch extension manager.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-OnBehalfOfUser<System.String>
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-OnBehalfOfUserRole<Microsoft.SystemCenter.VirtualMachineManager.UserRole>
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Owner<String>
Specifies the owner of a VMM object in the form of a valid domain user account.
Example format: -Owner "Contoso\ReneeLo"
Example format: -Owner "ReneeLo@Contoso"
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PAIPAddressPoolType<VMNetworkIPAddressPoolType]>
Specifies an address pool type. Valid values are: IPV4, IPV6.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PortACL<PortACL>
Specifies a port Access Control List (ACL) value that this cmdlet assigns to the virtual machine network. The port ACL is assigned when the virtual machine network is created.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PROTipID<Guid]>
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-RoutingDomainId<Guid>
Specifies the ID of a routing domain in the form of a GUID.
Aliases |
none |
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UserRole<UserRole>
Specifies a user role object.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
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.
Examples
Example 1: Create a virtual machine VM network
The first command gets the logical network object named LogicalNetwork01, and then stores the object in the $LogNet variable.
The second command creates a virtual machine network named VMNetwork01 with the logical network LogicalNetwork01.
PS C:\> $LogNet = Get-SCLogicalNetwork -Name "LogicalNetwork01"
PS C:\> New-SCVMNetwork -Name "VMNetwork01" -LogicalNetwork $LogNet