< Back

New-AzureRmSiteRecoveryNetworkMapping

Thu Apr 04, 2019 5:40 am

NAME New-AzureRmSiteRecoveryNetworkMapping



SYNOPSIS

Creates a mapping between virtual networks.





SYNTAX

New-AzureRmSiteRecoveryNetworkMapping -AzureVMNetworkId <String> [-DefaultProfile <IAzureContextContainer>] [-Name <String>] -PrimaryNetwork

<ASRNetwork> [<CommonParameters>]



New-AzureRmSiteRecoveryNetworkMapping [-DefaultProfile <IAzureContextContainer>] [-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.





PARAMETERS

-AzureVMNetworkId <String>

Specifies the Azure virtual network ID.



Required? true

Position? named

Default value None

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>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PrimaryNetwork <ASRNetwork>

Specifies the primary network object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-RecoveryNetwork <ASRNetwork>

Specifies the recovery network object.



Required? true

Position? named

Default value None

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

ASRNetwork

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





OUTPUTS

Microsoft.Azure.Commands.SiteRecovery.ASRJob







NOTES











RELATED LINKS

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

Get-AzureRmSiteRecoveryNetworkMapping

Remove-AzureRmSiteRecoveryNetworkMapping