New-​Azure​Rm​Site​Recovery​Replication​Protected​Item

Enables replication for a protectable item by creating a protected item

Syntax

New-AzureRmSiteRecoveryReplicationProtectedItem
   [-WaitForCompletion]
   [-WhatIf]
   [-Confirm]
   -ProtectableItem <ASRProtectableItem>
   -Name <String>
   -ProtectionContainerMapping <ASRProtectionContainerMapping>
   -RecoveryAzureStorageAccountId <String>
   [<CommonParameters>]
New-AzureRmSiteRecoveryReplicationProtectedItem
   [-WaitForCompletion]
   [-WhatIf]
   [-Confirm]
   -ProtectableItem <ASRProtectableItem>
   -Name <String>
   -ProtectionContainerMapping <ASRProtectionContainerMapping>
   [<CommonParameters>]
New-AzureRmSiteRecoveryReplicationProtectedItem
   [-WaitForCompletion]
   [-WhatIf]
   [-Confirm]
   -ProtectableItem <ASRProtectableItem>
   -Name <String>
   -ProtectionContainerMapping <ASRProtectionContainerMapping>
   -RecoveryAzureStorageAccountId <String>
   -OSDiskName <String>
   -OS <String>
   [<CommonParameters>]

Description

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

Required Parameters

-Name

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

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

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

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

Specifies the name of the operating system disk.

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

Specifies the Azure Site Recovery Protectable Item.

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

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

Type:ASRProtectionContainerMapping
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryAzureStorageAccountId

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

Type:String
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:False
Accept pipeline input:False
Accept wildcard characters:False
-WaitForCompletion

Indicates that the cmdlet waits for completion.

Type:SwitchParameter
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:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.SiteRecovery.ASRJob