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

Get-VBRAzureStorageAccount

Short Description

Returns Microsoft Azure storage accounts available for a subscription.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Get-VBRAzureStorageAccount -Subscription <VBRAzureSubscription> [-Name <string[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns storage accounts available for a Microsoft Azure subscription.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Subscription

Specifies the subscription. The cmdlet will return storage accounts associated with this subscription.

True

Named

True (ByValue,
ByProperty
Name)

False

Name

Specifies the array of names. The cmdlet will return storage accounts that match the specified names.

False

Named

False

True

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

VBRAzureStorageAccount

Example 1

This example shows how to get all storage accounts associated with 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-VBRAzureStorageAccount with the $subscription variable.

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

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

Get-VBRAzureStorageAccount -Subscription $subscription

Example 2

This example shows how to get a storage account by the storage account 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-VBRAzureStorageAccount with the $subscription variable. Specify the name of the storage account you want to get.

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

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

Get-VBRAzureStorageAccount -Subscription $subscription -Name "VeeamDirectRestore2AzureStorage"

Related Commands

Get-VBRAzureSubscription