nsxt-automated-lab-deployment
nsxt-automated-lab-deployment copied to clipboard
Unable to add ESXi host(s) as a Transport Node
When executing the if($runAddESXiTransportNode) {} block, the following create method fails with an invalid_request message. The $transportNodeSpec variable output is provided below. It looks as though it may be missing some required values. Please advise.
PS C:\> $transportNode = $transportNodeService.create($transportNodeSpec)
A server error occurred: 'com.vmware.vapi.std.errors.invalid_request': . Check $Error[0].Exception.ServerError for more details.
At line:1 char:1
+ $transportNode = $transportNodeService.create($transportNodeSpec)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], CisServerException
+ FullyQualifiedErrorId : VMware.VimAutomation.Cis.Core.Types.V1.CisServerException
PS C:\> $transportNodeService
Name Documentation
com.vmware.nsx.transport_nodes
PS C:\> $transportNodeSpec
self : <Unset, [com.vmware.nsx.model.self_resource_link]>
revision : <Unset, [long]>
description : <Unset, [string]>
display_name : ca-esx-1-123.corp.local
resource_type : <Unset, [string]>
tags : <Unset, [List<com.vmware.nsx.model.tag>]>
host_switch_spec : <Unset, [dynamic_structure]>
host_switches : <Unset, [List<com.vmware.nsx.model.host_switch>]>
node_id : 55b057d6-459f-4c90-ac46-7f29b2b01296
transport_zone_endpoints : System.Object[]
Hi, has the above issue reported by @jasonarieger been resolved? because I am facing the same issue.