< Back

Get-AzureRmStorageAccount

Tue Jan 29, 2019 10:11 pm

NAME Get-AzureRmStorageAccount



SYNOPSIS

Gets a Storage account.





SYNTAX

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



Get-AzureRmStorageAccount [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with Azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the Storage account to get.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ageaccount

New-AzureRmStorageAccount

Remove-AzureRmStorageAccount

Set-AzureRmStorageAccount