I have the following PS script, that I want schedule using Azure Automation, is failing saying that "Set-AzureRmAppServicePlan" is not correct. That I dont understand as it works geat when running it in Azure Cloud Shell
Set-AzureRmAppServicePlan -Name "Solution-EUWE" -ResourceGroupName "Shared" -Tier PremiumV2 -NumberofWorkers 1 -WorkerSize "Small"
Set-AzureRmAppServicePlan : The term 'Set-AzureRmAppServicePlan' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Set-AzureRmAppServicePlan -Name "Solution-EUWE" -ResourceGroupName " ... + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Set-AzureRmAppServicePlan:String) , CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException