Apply-VBRLocation

Short Description

Assigns geographic locations to the backup infrastructure components.

Platform: VMware, Hyper-V

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

Syntax

Apply-VBRLocation -Object <Object[]> -Location <VBRLocation> [<CommonParameters>]

Detailed Description

This cmdlet assigns geographic locations to the backup infrastructure components.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Location

Specifies the location you want to assign to the infrastructure components.

Accepts the VBRLocation object. To get this object, run the Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication. cmdlet.

VBRLocation

True

Named

True (ByPropertyName)

Object

Specifies the array of the infrastructure components. The cmdlet will assign a location to these components.

Accepts the following objects:

Object[]

True

Named

True (ByPropertyName)

<CommonParameters>

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

Examples

Assigning Location to Backup Repository and ESXI Host

This example shows how to assign a selected location to a backup repository and an ESXi host.

$rep = Get-VBRBackupRepository -Name "North Repository"

$esxi = Find-VBRViEntity -Name team.support.north

$loc = Get-VBRLocation -Name "ABC North"

Apply-VBRLocation -Objects $esxi, $rep -Location $loc

Perform the following steps:

  1. Get the infrastructure components to which you want to assign a location:
    1. Run the Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify the Name parameter value. Save the result to the $rep variable.
    2. Run the Find-VBRViEntityLooks for VMware objects. cmdlet. Specify the Name parameter value. Save the result to the $esxi variable.
  2. Run the Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save the result to the $loc variable.
  3. Run the Apply-VBRLocation cmdlet. Set the $esxi and the $rep variables as the Objects parameter values. Set the $loc variable as the Location parameter value.

Page updated 2026-08-19

Page content applies to build 13.1.1.18