Get-VBRAzureSubscription

Short Description

Returns subscriptions associated with a Microsoft Azure account.

Applies to

Platform: VMware, Hyper-V

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

Syntax

This cmdlet provides parameter sets that allow you to:

  • Get subscriptions by the subscriptions name.

Get-VBRAzureSubscription -Account <VBRAzureAccount> [-Name <string[]>]  [<CommonParameters>]

  • Get subscriptions by the subscriptions ID.

Get-VBRAzureSubscription -Account <VBRAzureAccount> [-Id <guid[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns subscriptions associated with a selected Microsoft Azure account.

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

Type

Required

Position

Accept
Pipeline
Input

Account

Specifies the account. The cmdlet will return subscriptions associated with this account.

Accepts the VBRAzureAccount object. Run the Get-VBRAzureAccount cmdlet to get this object.

True

Named

True (ByValue,
ByProperty
Name)

Name

Specifies the array of names of the subscriptions you want to get.

String[]

False

Named

False

Id

Specifies the array of IDs of the subscriptions you want to get.

Guid[]

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRAzureSubscription

Examples

Get-VBRAzureSubscriptionExample 1. Getting All Subscriptions for Microsoft Azure Account

Get-VBRAzureSubscriptionExample 2. Getting Subscription by Name

Get-VBRAzureSubscriptionExample 3. Getting Subscription by ID

Related Commands

Get-VBRAzureAccount

Page updated 12/13/2023

Page content applies to build 12.3.1.1139