Scale session hosts dynamically - Subscription error

Copper Contributor

hi

 

does anyone use this sctipt?

https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script

https://github.com/Azure/RDS-Templates/tree/master/wvd-templates/wvd-scaling-script

 

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

 

/Lars

 

1 Reply

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