< Back

Get-AzureStorageAccount

Wed Jan 30, 2019 5:45 pm

NAME Get-AzureStorageAccount



SYNOPSIS

Gets the storage accounts for the current Azure subscription.





SYNTAX

Get-AzureStorageAccount [[-StorageAccountName] <String>] [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable

<String>] [<CommonParameters>]





DESCRIPTION

The Get-AzureStorageAccount cmdlet returns an object containing information about the storage accounts for the current subscription. If the

StorageAccountName parameter is specified, then only information about the specified storage account is returned.





PARAMETERS

-StorageAccountName <String>

Specifies the name of a storage account. If specified, this cmdlet returns only the specified storage account object.



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

ManagementOperationContext







NOTES





Type help node-dev to get help on Node.js development-related cmdlets. Type help php-dev to get help on PHP development-related cmdlets.



-------------------------- Example 1: Return all storage accounts --------------------------



PS C:\\>Get-AzureStorageAccount



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

-------------------------- Example 2: Return account information for a specified account --------------------------



PS C:\\>Get-AzureStorageAccount -StorageAccountName "ContosoStore01"



This command returns an object with only the ContosoStore01 account information.

-------------------------- Example 3: Display a table of storage accounts --------------------------



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



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.



RELATED LINKS

New-AzureStorageAccountSASToken

Set-AzureStorageAccount