SYNOPSIS
Gets storage accounts under the current subscription.
DESCRIPTION
The Get-AzStorageAccount cmdlet gets storage accounts that are created under the current subscription.
You can use the parameter to filter the results based on resource group name, storage account name, and other properties.
SYNTAX
Get-AzStorageAccount
   [-ResourceGroupName <String>]
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [MassUpdate]
   [<CommonParameters>]
                EXAMPLES
 Example 1: Get all storage accounts in the current subscription
            
PS C:\> Get-AzStorageAccount
StorageAccountName        : mystorageaccount1
ResourceGroupName         : mystorage-rg
Location                  : eastus
AccountType               : Standard_LRS
CreationTime              : 1/1/2023 12:00:00 AM
...
                 Example 2: Get a specific storage account by name
            
PS C:\> Get-AzStorageAccount -Name "mystorageaccount2"
StorageAccountName        : mystorageaccount2
ResourceGroupName         : another-rg
Location                  : westus
AccountType               : Standard_GRS
CreationTime              : 1/15/2023 3:00:00 PM
...
                 Example 3: Get all storage accounts in a specific resource group
            
PS C:\> Get-AzStorageAccount -ResourceGroupName "my-resource-group"
StorageAccountName        : storageacc-rg1
ResourceGroupName         : my-resource-group
Location                  : centralus
AccountType               : Premium_LRS
CreationTime              : 2/10/2023 9:00:00 AM
...
                PARAMETERS
| Name | Description | Required? | Position | Default value | Accept pipeline input | 
|---|---|---|---|---|---|
| -ResourceGroupName | Specifies the name of the resource group to which the storage account belongs. | False | Named | None | True (ByPropertyName) | 
| -Name | Specifies the name of the storage account. | False | Named | None | True (ByPropertyName) | 
| -DefaultProfile | The credentials, account, tenant, and subscription that are used for communication with Azure. | False | Named | None | False | 
INPUT TYPES
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSStorageAccount
OUTPUT TYPES
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSStorageAccount[]
                Note
                
            
        This cmdlet retrieves information about storage accounts. To modify storage accounts, use cmdlets like Set-AzStorageAccount or New-AzStorageAccountKey.