PowerCLI

 View Only
  • 1.  HCX Extend/Un-Extend Operations via PowerCLI

    Posted Oct 26, 2024 09:52 AM

    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 $networkExtended
    
    New-HCXNetworkExtension -Appliance $myL2CAppliance -DestinationGateway $myGateway -DestinationSite $myDestination -GatewayIp 192.167.5.21 -Netmask 255.255.192.0



  • 2.  RE: HCX Extend/Un-Extend Operations via PowerCLI

    Posted Oct 28, 2024 04:34 AM

    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}.