找不到 AzureRunAsConnection

AzureRunAsConnection not found

我在那里创建了一个带有 AzureRunAsConnection 的 AutomationAccount。我可以在门户中看到它,也可以使用 Get-AzureRmAutomationConnection 在 powershell 中获取它,我可以看到结果。

但是当我从 Runbook 连接时,它抛出异常 请帮忙。谢谢

为什么不参考官方文档呢?我猜你会找到你的解决方案 here.

我在这里 Azure Automation Docs 找到了解决方案。我使用了 Login-AzureRmAccountAdd-AzureRmAccount 。现在我发现我们应该在创建自动化帐户后手动更新模块,然后将 Connect-AzureRmAccount 与凭据一起使用。有效