I am trying to install a custom VM into Azure using the manufacturer's instructions. I have imported the AzurePublishSettingsFile and logged onto Azure. When I follow the next set of instructions I get errors:
PS C:\WINDOWS\system32> $sub = get-azuresubscription
PS C:\WINDOWS\system32> $sub = get-azuresubscription -extendeddetails
PS C:\WINDOWS\system32> select-azuresubscription -subscriptionid $sub.subscriptionid -current
Select-AzureSubscription : Cannot convert 'System.Object' to the type 'System.String' required by parameter
'SubscriptionId'. Specified method is not supported.
At line:1 char:42
+ select-azuresubscription -subscriptionid $sub.subscriptionid -current
+ CategoryInfo : InvalidArgument: (:) [Select-AzureSubscription], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.WindowsAzure.Commands.Profile.SelectAzureSubscriptionCom
I know very little about PowerShell, I only follow the directions when they are called for. I know enough to know that an object and a string are different things but I don't know how to approach fixing it. Any help would be appreciated.