Hi Team,
I'm trying to set the value of disable blast secure gateway to False using PowerCLI . The code i'm trying to use is below
$ViewAPI = $global:DefaultHVServers.ExtensionData
$List = $ViewAPI.ConnectionServer.ConnectionServer_List().General
$Update = new-object VMware.Hv.MapEntry
$update.key = "General.BypassTunnel"
$update.value = $False
$ViewAPI.ConnectionServer.ConnectionServer_Update($List,$update)
But when i try updating the BypassTunnel value, getting below error
$ViewAPI.ConnectionServer.ConnectionServer_Update($List,$update)
MethodException: Cannot convert argument "id", with value: "VMware.Hv.ConnectionServerGeneralData", for "ConnectionServer_Update" to type "VMware.Hv.ConnectionServerId": "Cannot convert the "VMware.Hv.ConnectionServerGeneralData" value of type "VMware.Hv.ConnectionServerGeneralData" to type "VMware.Hv.ConnectionServerId"."
Any help to fix this error is highly appreciated
Regards,
Sajith