Export (0) Print
Expand All
Expand Minimize

Get-AzureStorageAccount

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Get-AzureStorageAccount

Gets the storage accounts for the current Azure subscription.

Syntax

Parameter Set: Default
Get-AzureStorageAccount [[-StorageAccountName] <String> ] [ <CommonParameters>]




Detailed Description

This topic describes the cmdlet in the 0.8.1 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

The Get-AzureStorageAccount cmdlet returns an object with the details about the storage accounts for the current subscription. If the StorageAccountName parameter is specified, then only that storage account is returned.

Parameters

-StorageAccountName<String>

If specified, the cmdlet returns only the specified storage account object.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • ManagementOperationContext

Examples

-------------- Example 1 --------------

This command returns an object with all the storage accounts associated with the current subscription.


C:\PS>Get-AzureStorageAccount

-------------- Example 2 --------------

This command returns an object with only the "mystore1" account information.


C:\PS>Get-AzureStorageAccount –StorageAccountName "mystore1" 

-------------- Example 3 --------------

This command returns an object with all the storage accounts associated with the current subscription, and outputs them as a table showing the account name, the account label, and the storage location.


C:\PS>Get-AzureStorageAccount | Format-Table -auto @{Label="Name";Expression={$_.StorageAccountName}},"Label","Location"

Related topics

Show:
© 2014 Microsoft