--- title: "Apply-VBRLocation" description: "This cmdlet assigns geographic locations to the backup infrastructure components." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/apply-vbrlocation.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > Locations > Apply-VBRLocation" dateModified: "2026-08-19" --- # 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 -Location [] ``` ## Detailed Description This cmdlet assigns geographic locations to the backup infrastructure components. ## 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-VBRLocation 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)

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: 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 the [`Get-VBRBackupRepository`](get-vbrbackuprepository.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$rep` variable. 2. Run the [`Find-VBRViEntity`](find-vbrvientity.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$esxi` variable. 2. Run the [`Get-VBRLocation`](get-vbrlocation.md) 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. ::: ## Related Commands - [`Get-VBRBackupRepository`](get-vbrbackuprepository.md) - [`Find-VBRViEntity`](find-vbrvientity.md) - [`Get-VBRLocation`](get-vbrlocation.md)