WindowsAzure/azure-sdk-tools — Issue #50: Get-AzureStorageAccounts does not read the default subscription for a service
Author: yavorg
Created: 2011-12-17 00:13:55+00:00
State: open

markcowl:

If run from a service directory and no parameters are provided, Get-AzureStorageAccounts should use the default setting for service subscription from deploymentSettings.json. Should also read from global settings (when avaialble)

That is, the subscription used should be:

(1) The one provided on the command line
(2) If no paramater, the default subscription for the current service
(3) If no default subscription or no current service, the global default subscription
(4) If no global subscription, then the first subscription in the publishsettings file

Note that the command should also print the subscription it is using to the console