Also even more important, does powercli support extending/un-extending networks over NE Appliances that are in an HA Group as I am getting the following?
Remove-HCXNetworkExtension : 10/28/2024 4:12:15 AM Remove-HCXNetworkExtension com.vmware.vapi.std.errors.invalid_request {'messages': [], 'data': struct {'code': E_OPERATION_FAILED,
'message': SERVICE-MESH-NAME is part of an HA group. Requested URL is not supported for unextending network using HA group}, 'error_type': INVALID_REQUEST}.
Original Message:
Sent: Oct 26, 2024 08:29 AM
From: virtualizingtheworld
Subject: HCX Extend/Un-Extend Operations via PowerCLI
My understanding is that these operations happen in serial,
Can I automate them via powercli to unextend (and then re-extend from other HCX Connector) and how would that look like/example with multiple networks? And when having multiple Service Mesh's how do you specify on which one does the extension reside for un-extending or there is no need?
From vmwarehcx I see that below would be the commands and looks like there are some variable that need to be assigned first for these to work?
Remove-HCXNetworkExtension -HCXNetworkExtension $networkExtendedNew-HCXNetworkExtension -Appliance $myL2CAppliance -DestinationGateway $myGateway -DestinationSite $myDestination -GatewayIp 192.167.5.21 -Netmask 255.255.192.0