共用方式為


Get-AzureStorageAccount

Get-AzureStorageAccount

Gets the properties of storage accounts.

Syntax

Parameter Set: Default
Get-AzureStorageAccount [[-ResourceGroupName] <String> ] [[-Name] <String> ] [-Profile <AzureProfile> ] [ <CommonParameters>]

Detailed Description

The Get-AzureStorageAccount cmdlet gets storage accounts. You can use this cmdlet to list the properties of a specific account in a resource group. You can use this cmdlet to list all the all accounts in the resource group, or to list all the accounts in your subscription. To get a specific storage account, specify it by name.

Parameters

-Name<String>

Specifies the name of the storage account to get.

Aliases

StorageAccountName,AccountName

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

-Profile<AzureProfile>

Specifies an Azure profile.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ResourceGroupName<String>

Specifies the name of a resource group.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

true(ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get a storage account by name

This command gets the storage account named StorageAccount24 in the resource group named ResourceGroup11.

PS C:\> Get-AzureStorageAccount -ResourceGroupName "ResourceGroup11" -Name "StorageAccount24"

Example 2: Get all storage accounts in a resource group

This command gets all storage accounts in the resource group named ResourceGroup11.

PS C:\> Get-AzureStorageAccount -ResourceGroupName "ResourceGroup11"

New-AzureStorageAccount

Remove-AzureStorageAccount

Set-AzureStorageAccount