Get-​Azs​Storage​Account

Gets a list of all storage accounts and their properties in a region.

Syntax

Get-AzsStorageAccount
   -AccountId <String>
   [-Detail]
   [-SkipCertificateValidation]
   [<CommonParameters>]
Get-AzsStorageAccount
   [-Detail]
   [-PartialAccountName <String>]
   [-SkipCertificateValidation]
   [-StorageAccountStatus <StorageAccountStatus>]
   [-TenantSubscriptionId <String>]
   [<CommonParameters>]

Description

The Get-AzsStorageAccount cmdlet gets a list of all storage accounts and their properties in a region.

Examples

Example 1

Get-AzsStorageAccount -TenantSubscriptionId 0a2d6a84-d4d3-4b48-9c93-5ce0113cf115

This command gets storage accounts and their properties for the specified tenant Id.

Required Parameters

-AccountId

Specifies the Account ID that the cmdlet uses to get the storage account.

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

Optional Parameters

-Detail

Specifies the Account ID that the cmdlet uses to get the storage account.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PartialAccountName

Specifies a partial account name that the cmdlet uses to search for storage accounts.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipCertificateValidation

Indicates that the cmdlet does not validate the certificate.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageAccountStatus

Specifies the status of the storage account that this cmdlet gets.

Type:StorageAccountStatus
Parameter Sets:Active, Deleted, OutOfRetentionPeriod, Recycled
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TenantSubscriptionId

Specifies the tenant subscription ID that this cmdlet uses to get the storage account.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False