Azure: No current subscription has been designated
Somethings a process doesn’t go to plan, this isn’t unusual by any stretch of the imagination. However we can all feel a little lost when the instructions set out before us just don’t seem to work. That was how I was feeling today when I got the following message while trying to use the Azure Resource Manager API through PowerShell: Get-AzureLocation : No current subscription has been designated. Use Select-AzureSubscription -Current to set the current subscription. At line:1 char:1 + Get-AzureLocation + ~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureLocation], ApplicationException + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.GetAzureLocationCommand As it turns out the error message is less than helpful as there were no subscriptions defined at all, tracking this all the way back through my process I noticed this warning message: ...