Remove-VBRReplica

Short Description

Removes replicated VMs.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Remove-VBRReplica [-Backup] <CBackup[]> [-FromDisk] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Confirm]  [<CommonParameters>]

Detailed Description

This cmdlet removes replicated VMs.

You can use the following options:

  • Remove from console. When you remove replica from the Veeam console, you will not delete the VM but only stop managing it with Veeam Backup & Replication. When replica is created, Veeam Backup & Replication maintains it in sync with the original VM by running the replication job. When you delete a replica from your managing console, it is no longer synchronized. The replica VM stays on target host.
  • Remove from disk. With this option, the replica is removed from database and from target host. This removal is complete and non-reversible.

To stop synchronizing a replica without deleting it from the console, you need to disable or delete the corresponding replication job. Run the Disable-VBRJob or Remove-VBRJob cmdlet.

This cmdlet removes all VMs in the replication job. To remove individual VMs, run the Remove-VBRRestorePoint cmdlet.

Remove-VBRReplica Note:

When you remove a replica from Veeam Backup & Replication console, you can not bring it back by means of PowerShell. Use replica seeding option in UI to restore a removed replica.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Backup

Specifies the array of replicas you want to remove.

Accepts the CBackup[] object. To create this object, run the Get-VBRBackup cmdlet.

True

1

True (ByValue,
ByProperty
Name)

FromDisk

Defines that the replicated VM will be permanently removed from disk. Otherwise, you only exclude the replica from processing with Veeam Backup & Replication.

SwitchParameter

False

Named

False

WhatIf

Defines that the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

SwitchParameter

False

Named

False

Confirm

Defines that the cmdlet displays a prompt that asks if the user is sure that they want to continue.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

None.

Examples

Remove-VBRReplicaExample 1. Removing Replicas from Console

This example shows how to remove replicas from Veeam Backup & Replication.

$replica = Get-VBRReplica -Name "DC_replica01", "DC_replica02"

Remove-VBRReplica -Backup $replica

Perform the following steps:

  1. Run the Get-VBRReplica cmdlet. Specify the Name parameter value. Save the result to the $replica variable.
  2. Run the Remove-VBRReplica cmdlet. Set the $replica variable as the Backup parameter value.

Remove-VBRReplicaExample 2. Removing Replicas from Disk

This example shows how to remove replicas from disk.

$replica = Get-VBRReplica -Name "DC_replica01", "DC_replica02"

Remove-VBRReplica -Backup $replica -FromDisk

Perform the following steps:

  1. Run the Get-VBRReplica cmdlet. Specify the Name parameter value. Save the result to the $replica variable.
  2. Run the Remove-VBRReplica cmdlet. Set the $replica variable as the Backup parameter value. Provide the FromDisk parameter.

Related Commands

Get-VBRReplica