< Back

New-AzureRmRecoveryServicesAsrNetworkMapping

Tue Jan 29, 2019 10:01 pm

NAME New-AzureRmRecoveryServicesAsrNetworkMapping



SYNOPSIS

Creates an ASR network mapping between two networks.





SYNTAX

New-AzureRmRecoveryServicesAsrNetworkMapping -AzureToAzure [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String>

-PrimaryAzureNetworkId <String> -PrimaryFabric <ASRFabric> -RecoveryAzureNetworkId <String> -RecoveryFabric <ASRFabric> [-WhatIf]

[<CommonParameters>]



New-AzureRmRecoveryServicesAsrNetworkMapping [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryNetwork <ASRNetwork>

-RecoveryNetwork <ASRNetwork> [-WhatIf] [<CommonParameters>]



New-AzureRmRecoveryServicesAsrNetworkMapping [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryNetwork <ASRNetwork>

-RecoveryAzureNetworkId <String> [-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.





PARAMETERS

-AzureToAzure [<SwitchParameter>]

Switch parameter specifying that the network mapping being created will be used to replicated Azure virtual machines between two Azure regions.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Name of the ASR network mapping to create.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PrimaryAzureNetworkId <String>

Specifies the Azure virtual network ID of the primary network for the mapping.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PrimaryFabric <ASRFabric>

Specifes the ASR fabric where mapping should be created.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PrimaryNetwork <ASRNetwork>

Specifies the primary network object for the ASR network mapping.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-RecoveryAzureNetworkId <String>

Specifies the recovery azure network ID for the network mapping.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryFabric <ASRFabric>

The Azure Site Recovery fabric object corresponding to the recovery Azure region.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryNetwork <ASRNetwork>

Specifies the recovery network object for the ASR network mapping.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetwork







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









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.





Example 2



PS C:\\> $currentJob = New-AzureRmRecoveryServicesAsrNetworkMapping -AzureToAzure -Name "mappingName" -PrimaryFabric $AzureFabric `

-PrimaryAzureNetworkId $AzureNetworkId -RecoveryFabric $RecoveryAzureFabric -RecoveryAzureNetworkId $RecoveryNetworkId



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

operation(Azure to Azure scenario).







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... orkmapping

Get-AzureRmRecoveryServicesAsrNetworkMapping

Remove-AzureRmRecoveryServicesAsrNetworkMapping