PowerCLI Reference



This cmdlet creates an HCX network mapping request.


New-HCXNetworkMapping [-Confirm] -DestinationNetwork <HCXNetwork> [-Server <HcxServer[]>] -SourceNetwork <HCXNetwork> [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet creates an HCX network mapping request. The cmdlet creates a list of network mapping from a source to destination site that you want to use for the new migration and replication requests.


NameTypeDescriptionRequired?Pipeline InputDefault Value
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
DestinationNetworkHCXNetworkSpecifies a network at the destination site.trueFalse
ServerHcxServer[]Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.falseFalse
SourceNetworkHCXNetworkSpecifies a network at the source site.trueTrue (ByValue)
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type




-------------------------- Example 1 --------------------------

PS C:\> $destinationSite = Get-HCXSite -Destination
$mySourceNetwork = Get-HCXNetwork -Name 'sourceNetworkName'
$myDestinationNetwork = Get-HCXNetwork -Site $destinationSite -Name 'destinationNetworkName'
New-HCXNetworkMapping -SourceNetwork $mySourceNetwork -DestinationNetwork $myDestinationNetwork

Creates a network mapping.

Copyright © VMware, Inc. All rights reserved.