Skip to content

Set SdnVMNetworkAdapterPortProfile

Adam Rudell edited this page Dec 5, 2023 · 5 revisions

Set-SdnVMNetworkAdapterPortProfile

SYNOPSIS

Configures the port profile applied to the virtual machine network interfaces.

SYNTAX

Local (Default)

Set-SdnVMNetworkAdapterPortProfile -VMName <String> -MacAddress <String> [-ProfileId <Guid>]
 [-ProfileData <Int32>] [-HostVmNic] [<CommonParameters>]

Remote

Set-SdnVMNetworkAdapterPortProfile -VMName <String> -MacAddress <String> [-ProfileId <Guid>]
 [-ProfileData <Int32>] [-HostVmNic] [-HyperVHost <String>] [-Credential <PSCredential>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

-ProfileData 1

EXAMPLE 2

Set-SdnVMNetworkAdapterPortProfile -VMName 'TestVM01' -MacAddress 001DD826100E -ProfileData 2

PARAMETERS

-VMName

Specifies the name of the virtual machine.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MacAddress

Specifies the MAC address of the VM network adapter.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProfileId

The InstanceID of the Network Interface taken from Network Controller. If ommited, defaults to an empty GUID to enable network connectivity for non-NC managed VMs.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: [System.Guid]::Empty
Accept pipeline input: False
Accept wildcard characters: False

-ProfileData

1 = VfpEnabled, 2 = VfpDisabled (usually in the case of Mux). If ommited, defaults to 1.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: 1
Accept pipeline input: False
Accept wildcard characters: False

-HostVmNic

Indicates if NIC is a host NIC. If ommited, defaults to false.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-HyperVHost

Type the NetBIOS name, an IP address, or a fully qualified domain name of the computer that is hosting the virtual machine.

Type: String
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credential

Specifies a user account that has permission to perform this action. The default is the current user.

Type: PSCredential
Parameter Sets: Remote
Aliases:

Required: False
Position: Named
Default value: [System.Management.Automation.PSCredential]::Empty
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Documentation

How To Guides:

Troubleshooting Guides

Learning

Functions

Clone this wiki locally