Documentation

{{docApp.title}}

{{docApp.description}}

How can we help?

{{docApp.searchError}}
{{product.name}}

Searching in {{docApp.searchFilterBySpecificBookTitle}}

{{docApp.searchResultFilteredItems.length}} results for: {{docApp.currentResultsSearchText}} in {{docApp.searchFilterBySpecificBookTitle}}
Search results have been limited. There are a total of {{docApp.searchResponse.totalResultsAvailable}} matches.

You have an odd number of " characters in your search terms - each one needs closing with a matching " character!

{{docApp.libraryHomeViewProduct.title || docApp.libraryHomeViewProduct.id}}

{{docApp.libraryHomeViewProduct.description}}

  1. {{book.title}}

{{group.title || group.id}}

{{group.description}}

  1. {{book.title}}

{{group.title}}

Add Network Adapter

Operation Information

This operation will add a virtual network adapter to a VMware vSphere Virtual Machine.

See https://code.vmware.com/docs/10197/cmdlet-reference/doc/New-NetworkAdapter.html for detailed information regarding the operation-specific parameters.

Extra Credentials

This operation requires an extra credential to be provided, stored in KeySafe, to the following specification:

  • Credential Reference: credential1
  • Credential Keysafe Key Type: Username + Password

Input Parameters

Name Type Description Required Sensitive
VMName string The name of the Virtual Machine to perform the action against Yes No
Port string Specifies the port on the server you want to use for the connection No No
Protocol string Specifies the internet protocol you want to use for the connection. It can be either http or https No No
NoTrustedCert boolean Specifies if the Connect-VIServer cmdlet will establish the connection without taking into account that the certificate is invalid Yes No
NetworkName string Specifies the name of the network to which you want to add the new virtual network adapter Yes No
MacAddress string Specifies an optional MAC address for the new virtual network adapter No No
PhysicalFunction string Specifies the PCI ID of the physical device, backing a SriovEthernetCard adapter. If omitted, automatic mode is used for the physical function No No
StartConnected boolean Indicates that the virtual network adapter starts connected when the virtual machine associated with it powers on Yes No
Type string Specifies the type of the new network adapter. The valid types are e1000, Flexible, Vmxnet, EnhancedVmxnet, Vmxnet3, SriovEthernetCard, Vmxnet3Vrdma, and Unknown. If no value is given to the parameter, the new network adapter is of the type recommended by VMware for the given guest OS No No
WakeOnLan boolean Indicates that wake-on-LAN is enabled on the newly created virtual network adapter Yes No

Output Parameters

Name Type Description Required Sensitive
outcome string Outcome of the operation. Can be OK, WARN or FAIL Yes No
errors string Any errors returned by the operation No No
warnings string Any warnings returned by the operation No No
macAddress string MAC Address of the new adapter No No
wakeOnLanEnabled string Wake On Lan Enabled No No
type string Type No No
parentId string The new adapter parent ID No No
uid string Unique ID No No
id string Adapter ID No No
name string Adapter name No No
In This Document