Get-​Azure​Rm​Storage​Account

Gets a Storage account.

Syntax

Get-AzureRmStorageAccount
   [-ResourceGroupName] <String>
   [-Name] <String>
   [<CommonParameters>]
Get-AzureRmStorageAccount
   [[-ResourceGroupName] <String>]
   [<CommonParameters>]

Description

The Get-AzureRmStorageAccount cmdlet gets a specified Storage account or all of the Storage accounts in a resource group or the subscription.

Examples

Example 1: Get a specified storage account

PS C:\>Get-AzureRmStorageAccount -ResourceGroupName "RG01" -AccountName "MyStorageAccount"

This command gets the specified Storage account.

Example 2: Get all Storage accounts in a resource group

PS C:\>Get-AzureRmStorageAccount -ResourceGroupName "RG01"

This command gets all of the Storage accounts in a resource group.

Example 3: Get all Storage accounts in the subscription

PS C:\>Get-AzureRmStorageAccount

This command gets all of the Storage accounts in the subscription.

Required Parameters

-Name

Specifies the name of the Storage account to get.

Type:String
Aliases:StorageAccountName, AccountName
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-ResourceGroupName

Specifies the name of the resource group that contains the Storage account to get.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False