次の方法で共有


New-SCVMNetwork

Creates a virtual machine network.

Syntax

Default (Default)

New-SCVMNetwork
    [-Name] <String>
    [[-Description] <String>]
    -LogicalNetwork <LogicalNetwork>
    [-UserRole <UserRole>]
    [-VMMServer <ServerConnection>]
    [-RoutingDomainId <Guid>]
    [-PAIPAddressPoolType <VMNetworkIPAddressPoolType>]
    [-CAIPAddressPoolType <VMNetworkIPAddressPoolType>]
    [-Owner <String>]
    [-PortACL <PortACL>]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [-OnBehalfOfUser <String>]
    [-OnBehalfOfUserRole <UserRole>]
    [<CommonParameters>]

IsolationType

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

AutoCreate

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

External

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

ExternalVMNetwork

New-SCVMNetwork
    [-Name] <String>
    [[-Description] <String>]
    -LogicalNetwork <LogicalNetwork>
    [-UserRole <UserRole>]
    [-VMMServer <ServerConnection>]
    [-RoutingDomainId <Guid>]
    [-PAIPAddressPoolType <VMNetworkIPAddressPoolType>]
    [-CAIPAddressPoolType <VMNetworkIPAddressPoolType>]
    [-ExternalVMNetwork]
    [-Owner <String>]
    [-NetworkManager <VirtualSwitchExtensionManager>]
    [-PortACL <PortACL>]
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [-OnBehalfOfUser <String>]
    [-OnBehalfOfUserRole <UserRole>]
    [<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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AutoCreate
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CAIPAddressPoolType

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

Parameter properties

Type:VMNetworkIPAddressPoolType
Default value:None
Accepted values:IPV4, IPV6
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Description

Specifies a description for the virtual machine network.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ExternalName

Specifies an external name for an object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

External
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ExternalVMNetwork

Indicates that the virtual machine network is external.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ExternalVMNetwork
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-IsolationType

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

  • NoIsolation
  • WindowsNetworkVirtualization
  • External
  • VLANNetwork

Parameter properties

Type:VMNetworkType
Default value:None
Accepted values:NoIsolation, WindowsNetworkVirtualization, External, VLANNetwork
Supports wildcards:False
DontShow:False

Parameter sets

IsolationType
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:LogicalNetwork
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of a VMM object.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-NetworkManager

Specifies a virtual switch extension manager.

Parameter properties

Type:VirtualSwitchExtensionManager
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AutoCreate
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
ExternalVMNetwork
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-OnBehalfOfUser

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:UserRole
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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"

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PAIPAddressPoolType

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

Parameter properties

Type:VMNetworkIPAddressPoolType
Default value:None
Accepted values:IPV4, IPV6
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PortACL

Specifies a port ACL object.

Parameter properties

Type:PortACL
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments: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.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RoutingDomainId

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

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserRole

Specifies a user role object.

Parameter properties

Type:UserRole
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a VMM server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.