New-​Azure​Rm​Site​Recovery​Network​Mapping

Creates a mapping between virtual networks.

Syntax

New-AzureRmSiteRecoveryNetworkMapping
   [-Name <String>]
   -PrimaryNetwork <ASRNetwork>
   -AzureVMNetworkId <String>
   [<CommonParameters>]
New-AzureRmSiteRecoveryNetworkMapping
   [-Name <String>]
   -PrimaryNetwork <ASRNetwork>
   -RecoveryNetwork <ASRNetwork>
   [<CommonParameters>]

Description

The New-AzureRMSiteRecoveryNetworkMapping cmdlet creates a mapping between two virtual networks and returns an Azure Site Recovery job to track it.

Required Parameters

-AzureVMNetworkId

Specifies the Azure virtual network ID.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimaryNetwork

Specifies the primary network object.

Type:ASRNetwork
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryNetwork

Specifies the recovery network object.

Type:ASRNetwork
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Name
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False