Set-AzureRmContext error when executed within an Azure Automation Runbook
问题 Update: Seems like someone else had the same issue and reported it. I am facing an issue with a simple PowerShell script when invoking it from an Azure Automation Runbook. The same piece of code works flawless when running it locally . I have added a Service Principal in an Azure Active Directory (hosted in Azure German Cloud) with password credential and grant it contributor access to a subscription (also hosted in Azure German Cloud). The Azure Automation service is hosted in North Europe