New-​Azure​Rm​Recovery​Services​Asr​Network​Mapping

Creates an ASR network mapping between two networks.

Syntax

New-AzureRmRecoveryServicesAsrNetworkMapping
   -Name <String>
   -PrimaryNetwork <ASRNetwork>
   -RecoveryAzureNetworkId <String>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzureRmRecoveryServicesAsrNetworkMapping
   -Name <String>
   -PrimaryNetwork <ASRNetwork>
   -RecoveryNetwork <ASRNetwork>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmRecoveryServicesAsrNetworkMapping cmdlet starts the operation of creating an ASR network mapping between two networks and returns the ASR job object for the ASR job used to track the operation.

Examples

Example 1

PS C:\> $currentJob = New-AzureRmRecoveryServicesAsrNetworkMapping -Name $NetworkMapName -PrimaryNetwork $PrimaryNetwork -RecoveryNetwork $RecoveryNetwork

Starts the network mapping creation operation using the specified name, primary and recovery networks, and returns an ASR job to track the operation.

Required Parameters

-Name

Name of the ASR network mapping to create.

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

Specifies the primary network object for the network mapping.

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

Specifies the recovery azure network ID for the network mapping.

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

Specifies the recovery network object for the network mapping.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork

Outputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob