This is an archive version of the document. To get the most up-to-date information, see the current version.

Get-VBRAzureVMSize

Short Description

Returns Microsoft Azure VM configuration options available for a subscription.

Applies to

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 for a Microsoft Azure subscription.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Subscription

Specifies the subscription. The cmdlet will return VM configuration options associated with this subscription.

True

Named

True (ByValue,
ByProperty
Name)

False

Location

Specifies the geographic location of the datacenter.

True

Named

True (ByProperty
Name)

False

Name

Specifies the array of names. The cmdlet will return VM configuration options 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

VBRAzureVMSize

Example 1

This example shows how to get all VM configuration options available for a subscription.

  1. Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
  2. Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
  3. Run Get-VBRAzureLocation with the $subscription variable to get the location. Save it to the $location variable.
  4. Run Get-VBRAzureVMSize with the $subscription and $location variables.

$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

Example 2

This example shows how to get a VM configuration by the VM configuration name.

  1. Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
  2. Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
  3. Run Get-VBRAzureLocation with the $subscription variable to get the location. Save it to the $location variable.
  4. Run Get-VBRAzureLocation with the $subscription and $location variables. Specify the name of the VM configuration you need.

$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

Related Commands

Get-VBRAzureSubscription

Get-VBRAzureLocation