편집

다음을 통해 공유


Add-AzRecoveryServicesAsrReplicationProtectedItemDisk

Add the disk for protection for already protected azure virtual machine.

Syntax

Add-AzRecoveryServicesAsrReplicationProtectedItemDisk
   -InputObject <ASRReplicationProtectedItem>
   -AzureToAzureDiskReplicationConfiguration <ASRAzuretoAzureDiskReplicationConfig[]>
   [-WaitForCompletion]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Add-AzRecoveryServicesAsrReplicationProtectedItemDisk cmdlet add the disk for protection for already protected azure virtual machine.

Examples

Example 1

Add-AzRecoveryServicesAsrReplicationProtectedItemDisk -ReplicationProtectedItem $rpi -AzureToAzureDiskReplicationConfiguration $disk1,$disk2

Start the operation to add specified disk configuration for protection.

Example 2

$ReplicationProtectedItem |Add-AzRecoveryServicesAsrReplicationProtectedItemDisk -AzureToAzureDiskReplicationConfiguration $disk1,$disk2

Start the operation to add specified disk configuration for protection.Piping input replication protected item.

Parameters

-AzureToAzureDiskReplicationConfiguration

Specifies the disk configuration to used for disk protection for Azure to Azure disaster recovery scenario.

Type:ASRAzuretoAzureDiskReplicationConfig[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

The input object to the cmdlet: The ASR replication protected item object corresponding to which new disk should be protected.

Type:ASRReplicationProtectedItem
Aliases:ReplicationProtectedItem
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WaitForCompletion

Wait For Completion

Type:SwitchParameter
Position:Named
Default value:None
Required:False
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:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

ASRJob