(0) exportieren Drucken
Alle erweitern

Get-AzureStorageAccounts

Returns a list of storage accounts and storage access keys for your Windows Azure subscription.

Syntax

Get-AzureStorageAccounts [[-Subscription] <string>]

Detailed Description

Run Get-AzureStorageAccounts to get a list of available storage accounts and access keys for your Windows Azure subscription. Use this cmdlet to find out which storage accounts are available for service deployments.

When you run this cmdlet from within a service directory, it checks the service's DeploymentSettings.json file for the deployment storage account for the service. If no deployment storage account has been set for the service, it selects the first subscription in your publishing profile.

If you are an administrator for more than one subscription, use the -Subscription parameter to specify which subscription to retrieve. If you do not specify a subscription, Get-AzureStorageAccounts retrieves storage account information for the first subscription in your publishing profile.

ImportantWichtig
Before you can retrieve storage account information, you must download a publishing profile for your Windows Azure account (using Get-AzurePublishSettings) and then import the profile settings (using Import-AzurePublishSettings). You can only use subscriptions that have been imported. If you are added to other subscriptions as a co-administrator after you import the settings, you will need to download and import your publish profile again.

Parameters

 

Parameter Description

[[-Subscription] <string>]

Specifies the subscription to use. Only subscriptions that have been imported are available. The subscription name is case-sensitive.

If you are an administrator for multiple subscriptions, you should include this parameter to ensure that you use the intended subscription.

To review your subscriptions, log onto the Windows Azure Platform Management Portal. In the navigation pane, click Hosted Services, Storage Accounts & CDN, and then click User Management. The items list displays your subscriptions.

Examples

Example 1: Get storage accounts and access keys for your subscription:

PS C:\> Get-AzureStorageAccounts

Account Name:   ContosoUS
Primary Key:    YSAwVSjixHpcsK/IX7cRcqzVVa19YCUEhzndhZMZL9aMmNT2Du1DPiufPDBiJUO7FW4Dcb7tkzw14VoK0EppnA==
Secondary Key:  OBlsaR6A4untNNwuhHDkWkcI7pKwTEPA9JYO/Jv2m/zERqrtMjUGVpz8xRZ2mTPp5qksu9K2JawAo5rEKDaL+w==

Account Name:   ContosoAsia
Primary Key:    OzAqwcrrtHa4/5qUyekSRK1F257PrzQHE+i4TJc38MHDBDNjZesbbftfm5tta2rsNH0SM7DEnlqt9PW70AB1VA==
Secondary Key:  xjCQHNwgedo/RXMOk1PKqRHiEpox001/H+qgl/OphoKzOoQTzR/FAGGobsf5HgjE35lfPAD0KeApGFv4ga0hhw==

Example 2: Get storage account information for the ContosoFinance subscription, for which you are a co-administrator:

PS C:\> Get-AzureStorageAccounts -Subscription ContosoFinance

If you are an administrator for multiple subscriptions, you should include this parameter to ensure that you use the intended subscription.

noteHinweis
You can also find out about storage accounts in the Windows Azure Platform Management Portal. Log in using your Windows Azure account. In the Management Portal, click Hosted Services, Storage Accounts & CDN in the navigation pane. Then click Storage Accounts at the top of the navigation pane. The items list shows storage account information for each of your subscriptions. For more information, see How to: Manage Storage Accounts for a Windows Azure Subscription.

Siehe auch


Builddatum:

2013-01-07

Community-Beiträge

Anzeigen:
© 2014 Microsoft