Scale session hosts dynamically - Subscription error

New Contributor



does anyone use this sctipt?


I get the following error: 


Select-AzureRmSubscription : Please provide a valid tenant or a valid subscription.
At C:\RDSscaling\basicScale.ps1:170 char:1
+ Select-AzureRmSubscription -SubscriptionId $currentAzureSubscriptionI ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureRmContext], ArgumentException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.SetAzureRMContextCommand




I know the teanant and subscriptionID is correct - but can it be something with the permissions?


Hope someone can help me




1 Reply

@Thobiasen : Hmm... are you able to run the same steps manually in a local PowerShell instance?