3
votes

The Azure powershell command Get-AzurePublishSettingsFile is downloading only 2 of my 3 subscriptions. Why?

In powersheel, I'm running this command:

PS C:\> Get-AzurePublishSettingsFile

That command opens the following webpage: https://manage.windowsazure.com/publishsettings/index?client=powershell

The webpage creates a file *.PublishSettings. That file only contains settings for 2 of my 3 subscrptions. The subscriptions all appear to be configured in the same manner.

1
If you run: Get-AzureSubscription cmdlet, are you able to get all 3 of your subscriptions? - juvchan
Yes, I can see all 3 subscriptions. And they have the same values for properties Environment, SupportedModes, DefaultAccount, Accounts, CurrentStorageAccountName, and TenantId. - Ben Nieting

1 Answers

1
votes

Try this workaround-

Set your azure subscription to current to one which doesn't appear in your publishsetting file

select-azuresubscription -subscriptionname "Yoursubname" -current

and then run

Get-AzurePublishSettingsFile