Returns geographical locations created in Veeam Backup & Replication.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus
This cmdlet provides 3 parameter sets.
- For getting locations by name:
Get-VBRLocation [-Name <string>] [<CommonParameters>]
- For getting locations by ID:
Get-VBRLocation [-Id <guid>] [<CommonParameters>]
- For getting locations assigned to the backup infrastructure component:
Get-VBRLocation [-Object <Object>] [<CommonParameters>]
This cmdlet returns geographical locations created in Veeam Backup & Replication. You can get the list of all locations or search for instances directly by name, ID or associated infrastructure components.
Specifies the array of location names.
The cmdlet will return locations with these names.
Specifies the array of location IDs.
The cmdlet will return locations with these IDs.
Specifies the Veeam Backup & Replication infrastructure component.
The cmdlet will return a location assigned to this component.
Accepts the following types:
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
This command returns locations by name.
Get-VBRLocation -Name "Location North", SuperLocation
This command returns locations by ID.
Get-VBRLocation -Id 97e9f314-690c-410f-a1c2-acc101faa2ce, a1218a40-e863-4d38-813f-e68974c3896
This example shows how to get the location assigned to the ESXi host.
You will need to perform the following steps:
- Run Find-VBRViEntity to get the ESXi host added to Veeam Backup & Replication. Save the result to the $esxi variable.
- Run Get-VBRLocation with the $esxi variable.
$esxi = Find-VBRViEntity -Name team.support.north
Get-VBRLocation -Object $esxi