Get-VBRAzureLocation
Short Description
Returns geographical locations of Microsoft Azure datacenters available for a subscription.
Applies to
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Detailed Description
This cmdlet returns geographical locations of datacenters available for a selected subscription.
Important |
This cmdlet does not support Microsoft Azure accounts with the Azure Service Manager type of a subscription (ASM, also known as a "classic" type subscription). |
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
Subscription | Specifies the subscription. The cmdlet will return locations available for this subscription. | True | Named | True (ByValue, | False |
Name | Specifies the array of names. The cmdlet will return locations that match the specified names. | False | Named | False | True |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
Example 1
This example shows how to get all locations associated with a subscription.
- Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
- Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
- Run Get-VBRAzureLocation with the $subscription variable.
$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com" $subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure" Get-VBRAzureLocation -Subscription $subscription |
Example 2
This example shows how to get a location by the location name.
- Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
- Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
- Run Get-VBRAzureLocation with the $subscription variable. Specify the name of the location you want to get.
$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com" $subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure" Get-VBRAzureLocation -Subscription $subscription -Name australiaeast |
Related Commands