Sets the subscription to use when you deploy the current service to Windows Azur3e.
Set-AzureDeploymentStorage [-Subscription] <string>
Run Set-AzureDeploymentSubscription from a service directory to set the subscription to use when you deploy or update the current service. Use this cmdlet if you are a co-administrator for multiple Windows Azure subscriptions and need to specify which of the subscriptions to use to deploy a service. You do not need to use this cmdlet if your Windows Azure account is only associated with one subscription.
If you are an administrator for more than one subscription, Windows Azure by default uses the first subscription listed in your publishing profile. You can use the Set-AzureDeploymentSubscription cmdlet or the -Subscription parameter for Publish-AzureService to specify a different subscription.
|Before you can set the deployment subscription or deploy a hosted service, you must download a publishing profile for your Windows Azure account (using the Get-AzurePublishSettings cmdlet) and then import the profile settings (using the Import-AzurePublishSettings cmdlet). You can only use subscriptions that are listed in your .publishsettings file. 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.|
|For information about adding co-administrators to help you manage your hosted services, see Overview of Subscription Management in the Windows Azure Platform Management Portal and How to Add and Remove Co-Administrators for Your Windows Azure Subscriptions.|
Specifies the Windows Azure subscription to use for the service. Only subscriptions that have been imported are available.
The subscription name is case-sensitive. To find out how to spell the subscription name, open your .publishsettings file, located on the following path:
Set the Contoso_Finance subscription as the deployment subscription for the MyService service:
PS C:\node\MyService> Set-AzureDeploymentSubscription Contoso_Finance