I\'ve just installed the latest powershell 1.1 and am following this blog entry to add reverse DNS to an existing Linux VM that I am running
https://azure.microsoft.
If you are using Resource Manager, the correct cmdlet is:
Get-AzureRmSubscription –SubscriptionName "<name>" | Select-AzureRmSubscription
or just use -SubscriptionId instead of -SubscriptionName.
Select-AzureSubscription is to be used to manage classic resources. To make it work you also have to add classic credentials using:
Add-AzureAccount
Connect-AzureRmAccount
then login to Azure as normalGet-AzureRmSubscription –SubscriptionName "<name>" | Select-AzureRmSubscription
(see answer by @Bruno Faria)The problem you're having is that the 'default' parameter is depreciated.
if you run
Select-AzureSubscription -SubscriptionName "Visual Studio Premium with MSDN" `
-Default "Visual Studio Premium with MSDN"
You get -
WARNING: Current and Default parameters have been deprecated. Select-AzureSubscription will always update the Default Subscription
If you just run
Select-AzureSubscription -SubscriptionName "Visual Studio Premium with MSDN"
You should get the result you're looking for.