azure-mcd

Set-AzureRmContext error when executed within an Azure Automation Runbook

[亡魂溺海] 提交于 2019-12-10 03:51:11
问题 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

Set-AzureRmContext error when executed within an Azure Automation Runbook

喜你入骨 提交于 2019-12-05 05:28:05
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 since it's currently not available in the Azure German Cloud. All I try to do is to login to my