New-SCVirtualNetworkAdapterPortProfileSet

Creates a virtual network adapter port profile set.

Syntax

New-SCVirtualNetworkAdapterPortProfileSet [[-Name] <String>] [[-Description] <String>]
 [-IsDefaultPortProfileSet <Boolean>] [-JobGroup <Guid>] [-JobVariable <String>] -LogicalSwitch <LogicalSwitch>
 [-PROTipID <Guid>] -PortClassification <PortClassification> [-RunAsynchronously]
 [-VMMServer <ServerConnection>]
 [-VirtualNetworkAdapterExtensionPortProfiles <VirtualNetworkAdapterExtensionPortProfile[]>]
 [-VirtualNetworkAdapterNativePortProfile <VirtualNetworkAdapterNativePortProfile>] [<CommonParameters>]

Description

The New-SCVirtualNetworkAdapterPortProfileSet cmdlet creates a virtual network adapter port profile set.

To create the virtual network adapter port profile set, you must provide a port classification and logical switch. To obtain a port classification object, use the Get-SCPortClassification cmdlet. To obtain a logical switch object, use the Get-SCLogicalSwitch cmdlet.

Examples

Example 1: Create a virtual network adapter port profile set

PS C:\> $PortClass = Get-SCPortClassification -Name "PortClass01"
PS C:\> $LogSwitch = Get-SCLogicalSwitch -Name "LogicalSwitch01"
PS C:\> New-SCVirtualNetworkAdapterPortProfileSet -Name "VirtualNetworkAdapterPortProfSet01" -PortClassification $PortClass -LogicalSwitch $LogSwitch

The first command gets the port classification object named PortClass01 and stores the object in the $PortClass variable.

The second command gets the logical switch object named LogicalSwitch01 and stores the object in the $LogicalSwitch variable.

The last command creates a virtual network adapter port profile set with the name VirtualNetworkAdapterPortProfileSet01 using PortClass01 and LogicalSwitch01.

Parameters

-Description

Specifies a description for the port profile set.

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

Indicates whether this is the default port profile set.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobGroup

Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.

Type:Guid
Required:False
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
-LogicalSwitch

Specifies a logical switch object.

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

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Required:False
Position:0
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
-PortClassification

Specifies the port classification of the switch to which the virtual network adapter connects.

Type:PortClassification
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
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
-VMMServer

Specifies a VMM server object.

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

Specifies an array of virtual network adapter extension port profiles.

Type:VirtualNetworkAdapterExtensionPortProfile[]
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VirtualNetworkAdapterNativePortProfile

Specifies a virtual network adapter native port profile object.

To obtain a virtual network adapter native port profile object, use the Get-SCVirtualNetworkAdapterNativePortProfile cmdlet.

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