New-SCVirtualNetworkAdapterPortProfileSet

Creates a virtual network adapter port profile set.

Syntax

New-SCVirtualNetworkAdapterPortProfileSet
   [-IsDefaultPortProfileSet <Boolean>]
   -PortClassification <PortClassification>
   [-VirtualNetworkAdapterNativePortProfile <VirtualNetworkAdapterNativePortProfile>]
   [-VirtualNetworkAdapterExtensionPortProfiles <VirtualNetworkAdapterExtensionPortProfile[]>]
   [-VMMServer <ServerConnection>]
   [[-Name] <String>]
   [[-Description] <String>]
   -LogicalSwitch <LogicalSwitch>
   [-JobGroup <Guid>]
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<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.

Required Parameters

-LogicalSwitch

Specifies a logical switch object.

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

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

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

Optional Parameters

-Description

Specifies a description for the port profile set.

Type:String
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
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

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

Type:String
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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
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[]
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
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False