Get-VBRAzureResourceGroup

Short Description

Returns Microsoft Azure resource groups available for a subscription.

Platform: VMware, Hyper-V

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

Syntax

Get-VBRAzureResourceGroup -Subscription <VBRAzureSubscription> [-Name <String[]>]

[-Location <VBRAzureLocation>] [<CommonParameters>]

Detailed Description

This cmdlet returns resource groups available for a selected subscription.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Location

Specifies geographic locations of Microsoft Azure datacenters available for a resource group.

Accepts the VBRAzureLocation object. To get this object, run the Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet.

VBRAzureLocation

False

Named

False

Name

Specifies the array of names. The cmdlet will return resource groups that match the specified names.

String[]

False

Named

False

Subscription

Specifies the subscription. The cmdlet will return resource groups 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

VBRAzureResourceGroup

Examples

Get-VBRAzureResourceGroupExample 1. Getting All Resource Groups Available for Subscription

This example shows how to get all resource groups associated with a subscription.

$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"

$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

Get-VBRAzureResourceGroup -Subscription $subscription

Perform the following steps:

  1. Run the Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save it to the $account variable.
  2. 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.
  3. Run the Get-VBRAzureResourceGroup cmdlet. Set the $subscription variable as the Subscription parameter value.

Get-VBRAzureResourceGroupExample 2. Getting Resource Group by Name

This example shows how to get a resource group by the resource group name.

$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"

$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

Get-VBRAzureResourceGroup -Subscription $subscription -Name "VeeamResourceGroup"

Perform the following steps:

  1. Run the Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save it to the $account variable.
  2. 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.
  3. Run the Get-VBRAzureResourceGroup cmdlet. Set the $subscription variable as the Subscription parameter value. Specify the Name parameter value.

Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account.

Page updated 2026-08-19

Page content applies to build 13.1.1.18