New-HCXNetworkMapping Command | Vmware PowerCLI Reference

New-HCXNetworkMapping

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.

Syntax

New-HCXNetworkMapping
-DestinationNetwork < HCXNetwork >
-SourceNetwork < HCXNetwork >
[-PrimaryNic < Boolean > ]
[-ProgressAction < ActionPreference > ]
[-Server < HcxServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
DestinationNetwork HCXNetwork named
Specifies a network at the destination site.
required
SourceNetwork HCXNetwork named
  • pipeline
Specifies a network at the source site.
optional PrimaryNic Boolean named
optional ProgressAction ActionPreference named
optional Server HcxServer[] named
  • wildcards
Specifies the HCX Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXNetworkMapping

Examples

Example 1

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

Related Commands

HCXNetwork

This cmdlet retrieves a list of HCX networks.

HCXNetworkBacking

This cmdlet retrieves a list of HCX Network Backings.

HCXNetworkExtension

This cmdlet retrieves a list of HCX Network Extension (HCX-NET-EXT).

This cmdlet creates an HCX Network Extension (L2 extension).

This cmdlet removes an HCX Network Extension.

HCXNetworkMapping

This cmdlet creates an HCX network mapping request.

HCXNetworkProfile

This cmdlet retrieves a list of HCX Network Profiles.

This cmdlet creates an HCX Network Profile.

This cmdlet removes an existing HCX Network Profile.

This cmdlet modifies the HCX Network Profile.