Get-VBRAzureVMSize
Short Description
Returns Microsoft Azure VM configuration options available for a subscription.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRAzureVMSize -Subscription <VBRAzureSubscription> -Location <VBRAzureLocation> [-Name <String[]>] [<CommonParameters>] |
Detailed Description
This cmdlet returns VM configuration options available for a Microsoft Azure subscription.
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Location
|
Specifies the geographic location of the datacenter.
Accepts the VBRAzureLocation object. To get this object, run the Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet.
|
VBRAzureLocation
|
True
|
Named
|
True (ByPropertyName)
|
|
Name
|
Specifies the array of names. The cmdlet will return VM configuration options that match the specified names.
|
String[]
|
False
|
Named
|
False
|
|
Subscription
|
Specifies the subscription. The cmdlet will return VM configuration options associated with this subscription.
Accepts the VBRAzureSubscription object. To create this object, run the Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet.
|
VBRAzureSubscription
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRAzureVMSize
Examples
Example 1. Getting All VM Configuration Options Available for Subscription
|
This example shows how to get all VM configuration options available for a subscription.
|
$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"
$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"
$location = Get-VBRAzureLocation -Subscription $subscription -Name "australiaeast"
Get-VBRAzureVMSize -Subscription $subscription -Location $location |
Perform the following steps:
- Run the
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save it to the $account variable.
- Run the
Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save it to the $subscription variable.
- Run the
Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet. Set the $subscription variable as the Subscription parameter value. Specify the Name parameter value. Save it to the $location variable.
- Run the
Get-VBRAzureVMSize cmdlet. Set the $subscription variable as the Subscription parameter value. Set the $location variable as the Location parameter value.
|
Example 2. Getting VM Configuration Options by Name
|
This example shows how to get a VM configuration by the VM configuration name.
|
$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"
$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"
$location = Get-VBRAzureLocation -Subscription $subscription -Name "australiaeast"
Get-VBRAzureVMSize -Subscription $subscription -Location $location -Name "Standard_G3" |
Perform the following steps:
- Run the
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save it to the $account variable.
- Run the
Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save it to the $subscription variable.
- Run the
Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet. Set the $subscription variable as the Subscription parameter value. Specify the Name parameter value. Save it to the $location variable.
- Run the
Get-VBRAzureVMSize cmdlet. Set the $subscription variable as the Subscription parameter value. Set the $location variable as the Location parameter value. Specify the Name parameter value.
|
Related Commands