< Back

New-AzureRmSiteRecoveryReplicationProtectedItem

Thu Apr 04, 2019 5:40 am

NAME New-AzureRmSiteRecoveryReplicationProtectedItem



SYNOPSIS

Enables replication for a protectable item by creating a protected item





SYNTAX

New-AzureRmSiteRecoveryReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -Name <String> -ProtectableItem <ASRProtectableItem>

-ProtectionContainerMapping <ASRProtectionContainerMapping> [-WaitForCompletion] [-Confirm] [-WhatIf] [<CommonParameters>]



New-AzureRmSiteRecoveryReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -Name <String> -ProtectableItem <ASRProtectableItem>

-ProtectionContainerMapping <ASRProtectionContainerMapping> -RecoveryAzureStorageAccountId <String> [-WaitForCompletion] [-Confirm] [-WhatIf]

[<CommonParameters>]



New-AzureRmSiteRecoveryReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -Name <String> -OS {Windows | Linux} -OSDiskName

<String> -ProtectableItem <ASRProtectableItem> -ProtectionContainerMapping <ASRProtectionContainerMapping> -RecoveryAzureStorageAccountId <String>

[-WaitForCompletion] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The New-AzureRmSiteRecoveryReplicationProtectedItem cmdlet creates a new Replication Protected item. Use this cmdlet to enable replication for a

protectable item.





PARAMETERS

-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>

Specifies the name of the Azure Site Recovery Replication Protected Item.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OS <String>

Specifies the operating system family. The acceptable values for this parameter are: Windows or Linux.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OSDiskName <String>

Specifies the name of the operating system disk.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProtectableItem <ASRProtectableItem>

Specifies the Azure Site Recovery Protectable Item.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ProtectionContainerMapping <ASRProtectionContainerMapping>

Specifies the Azure Site Recovery Protection Container mapping object to use for replication.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryAzureStorageAccountId <String>

Specifies the ID of the Azure storage account that this cmdlet replicates to.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WaitForCompletion [<SwitchParameter>]

Indicates that the cmdlet waits for completion.



Required? false

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



-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

ASRProtectableItem

Parameter 'ProtectableItem' accepts value of type 'ASRProtectableItem' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.SiteRecovery.ASRJob







NOTES











RELATED LINKS

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

Get-AzureRmSiteRecoveryReplicationProtectedItem

Remove-AzureRmSiteRecoveryReplicationProtectedItem

Set-AzureRmSiteRecoveryReplicationProtectedItem