Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureStorageAccount

Get-AzureStorageAccount

microsoft.windowsazure.commands.servicemanagement.dll, microsoft.azure.commands.management.storage.dll, microsoft.azure.commands.compute.dll

Synopsis

Gets the storage accounts for the current Microsoft Azure subscription.

Syntax

Get-AzureStorageAccount [-StorageAccountName] [<CommonParameters>]

Detailed Description

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

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type

ManagementOperationContext

Notes

node-dev, php-dev

Examples

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

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

PS C:\> C:\PS>Get-AzureStorageAccount

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

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

PS C:\> 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.

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

New-AzureStorageAccount
Set-AzureStorageAccount
Get-AzureStorageAccount