Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

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

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:

  • CBackupRepository (backup repository)

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 about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Example

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

You will need to perform the following steps:

  1. Get the infrastructure components to which you want to assign a location:
  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.

PS C:\PS> $rep = Get-VBRBackupRepository -Name "North Repository"

PS C:\PS> $esxi = Find-VBRViEntity -Name team.support.north

PS C:\PS> $loc = Get-VBRLocation -Name "ABC North"

PS C:\PS> Apply-VBRLocation -Objects $esxi, $rep -Location $loc

Related Commands

Get-VBRBackupRepository

Find-VBRViEntity

Get-VBRLocation

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation