Export (0) Print
Expand All
Expand Minimize

New-SCVMNetwork

Updated: April 29, 2014

Applies To: System Center 2012 R2 Virtual Machine Manager

New-SCVMNetwork

Creates a virtual machine network.

Syntax

Parameter Set: Default
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-JobVariable <String> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-PROTipID <Guid> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: AutoCreate
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -AutoCreateSubnet -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-JobVariable <String> ] [-NetworkManager <VirtualSwitchExtensionManager> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-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> {IPV4 | IPV6} ] [-JobVariable <String> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-PROTipID <Guid> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ExternalVMNetwork
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -ExternalVMNetwork -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-JobVariable <String> ] [-NetworkManager <VirtualSwitchExtensionManager> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-PROTipID <Guid> ] [-RoutingDomainId <Guid> ] [-RunAsynchronously] [-UserRole <UserRole> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: IsolationType
New-SCVMNetwork [-Name] <String> [[-Description] <String> ] -IsolationType <VMNetworkType> {NoIsolation | WindowsNetworkVirtualization | External | VLANNetwork} -LogicalNetwork <LogicalNetwork> [-CAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-JobVariable <String> ] [-Owner <String> ] [-PAIPAddressPoolType <VMNetworkIPAddressPoolType> {IPV4 | IPV6} ] [-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

-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

-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.

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 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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft