New-AzureRmSiteRecoveryNetworkMapping

Creates a mapping between virtual networks.

Syntax

New-AzureRmSiteRecoveryNetworkMapping
   [-Name <String>]
   -PrimaryNetwork <ASRNetwork>
   -RecoveryNetwork <ASRNetwork>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryNetworkMapping
   [-Name <String>]
   -PrimaryNetwork <ASRNetwork>
   -AzureVMNetworkId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<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:Microsoft.Azure.Commands.SiteRecovery.ASRNetwork
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryNetwork

Specifies the recovery network object.

Type:Microsoft.Azure.Commands.SiteRecovery.ASRNetwork
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRNetwork

Parameter 'PrimaryNetwork' accepts value of type 'ASRNetwork' from the pipeline

Outputs

Microsoft.Azure.Commands.SiteRecovery.ASRJob