Get-VBRAzureVM

Short Description

Returns Azure VMs.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VBRAzureVM -Subscription <VBRAzureSubscription> -Location <VBRAzureLocation>  [<CommonParameters>]

Detailed Description

This cmdlet returns Azure VMs.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Subscription

Specifies subscriptions associated with a Microsoft Azure account.

Accepts the VBRAzureSubscription object. To create this object, run the Get-VBRAzureSubscription cmdlet.

True

Named

False

Location

Specifies Microsoft Azure region.

Accepts the VBRAzureLocation object. To get this object, run the Get-VBRAzureLocation cmdlet.

True

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

VBRAzureVM

Examples

Getting Azure VMs

This example shows how to get Azure VMs.

$account = Get-VBRAzureAccount -Type ResourceManager -Name "AzureRM@tech.com"

$subscription = Get-VBRAzureSubscription -Account $account

$location = Get-VBRAzureLocation -Subscription $subscription

$VMs = Get-VBRAzureVM -Subscription $subscription -Location $location

Perform the following steps:

  1. Run the Get-VBRAzureAccount cmdlet. Specify the Type and the PerNameod parameter values. Save the result to the $account variable.
  2. Run the Get-VBRAzureSubscription cmdlet. Specify the Account parameter value. Save the result to the $subscription variable.
  3. Run the Get-VBRAzureLocation cmdlet. Specify the Subscription parameter value. Save the result to the $location variable.
  4. Run the Get-VBRAzureVM cmdlet. Set the $subscription variable as the Subscription parameter value. Set the $location variable as the Location parameter value. Save the result to the $scope variable.

Related Commands