Apply-VBRLocation

Short Description

Assigns geographical locations to Veeam Backup & Replication infrastructure components.

Applies to

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 geographical locations to Veeam Backup & Replication infrastructure components.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Object

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

Accepts the following types:

True

Named

True (ByProperty
Name)

False

Location

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

True

Named

True (ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Example

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 Get-VBRBackupRepository to get the backup repository. Save the result to the $rep variable.
  2. Run Find-VBRViEntity to get the ESXi host. Save the result to the $esxi variable
  1. Get the location you want to assign to the infrastructure components. To do this, run Get-VBRLocation and save the result to the $loc variable.
  2. Run Apply-VBRLocation to assign the location.

Related Commands

Get-VBRBackupRepository

Find-VBRViEntity

Get-VBRLocation