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
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Location |
Specifies the location you want to assign to the infrastructure components.
Accepts the |
|
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:
|
|
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:
- Get the infrastructure components to which you want to assign a location:
- Run the
Get-VBRBackupRepositoryReturns a list of backup repositories. cmdlet. Specify theNameparameter value. Save the result to the$repvariable. - Run the
Find-VBRViEntityLooks for VMware objects. cmdlet. Specify theNameparameter value. Save the result to the$esxivariable.
- Run the
- Run the
Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication. cmdlet. Specify theNameparameter value. Save the result to the$locvariable. - Run the
Apply-VBRLocationcmdlet. Set the$esxiand the$repvariables as theObjectsparameter values. Set the$locvariable as theLocationparameter value.
Related Commands
Get-VBRBackupRepositoryReturns a list of backup repositories.Find-VBRViEntityLooks for VMware objects.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.