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 |
---|---|---|---|---|---|
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, |
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
Examples
Example 1. Getting All Subscriptions for Microsoft Azure Account
This example shows how to get all subscriptions associated with an account.
Perform the following steps:
|
Example 2. Getting Subscription by Name
This example shows how to get a subscription by the subscription name.
Perform the following steps:
|
Example 3. Getting Subscription by ID
This example shows how to get a subscription by the subscription ID.
Perform the following steps:
|
Related Commands