< Back

New-AzureSiteRecoveryStorageMapping

Wed Jan 30, 2019 5:48 pm

NAME New-AzureSiteRecoveryStorageMapping



SYNOPSIS

Creates a mapping between two Storages





SYNTAX

New-AzureSiteRecoveryStorageMapping -PrimaryStorage <ASRStorage> -RecoveryStorage <ASRStorage> [<CommonParameters>]





DESCRIPTION

Creates a mapping between two Storages





PARAMETERS

-PrimaryStorage <ASRStorage>

Primary Storage object



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-RecoveryStorage <ASRStorage>

Recovery Storage object



Required? true

Position? named

Default value

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES







Keywords: azure, azuresm, servicemanagement, management, service, site, recovery







-------------------------- EXAMPLE 1 --------------------------



PS C:\\>storages = Get-AzureSiteRecoveryStorage -Server $servers[0]



PS C:\\> New-AzureSiteRecoveryStorageMapping -PrimaryStorage $storages[0] -RecoveryStorage $storages[1]



Name :

ID : fea46d20-6170-480f-b14b-81811d4c2a9c

ClientRequestId : 85033535-9525-4567-9132-a3518fff1d49-2015-01-30 05:28:18Z-P

State : NotStarted

StateDescription : NotStarted

StartTime :

EndTime :

AllowedActions :

Tasks : {}

Errors : {}







PS C:\\> Get-AzureSiteRecoveryJob -Id fea46d20-6170-480f-b14b-81811d4c2a9c



Name : ClassificationPairing

ID : fea46d20-6170-480f-b14b-81811d4c2a9c

ClientRequestId : 85033535-9525-4567-9132-a3518fff1d49-2015-01-30 05:28:18Z-P

State : Succeeded

StateDescription : Completed

StartTime : 1/30/2015 5:28:23 AM

EndTime : 1/30/2015 5:28:22 AM

AllowedActions :

Tasks : {Prerequisites check for mapping classifications, Mapping classifications}

Errors : {}



Description



-----------













RELATED LINKS