我是否必须在powershell Runbook(azure)中导入模块?

问题描述 投票:0回答:1

我只想在Azure Runbook中运行一个简单的Powershell脚本。完成测试窗格中的脚本后,powershell无法将“Connect-AzureRmAccount”识别为命令。这很奇怪,因为在另一本Runbook中我可以毫无问题地运行相同的命令。

通常,您必须安装并导入所需的模块,但这在Runbook中不可用。

你有什么建议吗?

最好的祝福

azure powershell module azure-resource-manager account
1个回答
0
投票

您不必安装或导入模块到Runbook。看到这个链接:https://sharepointyankee.com/2018/02/26/importing-powershell-modules-into-azure-automation/

© www.soinside.com 2019 - 2024. All rights reserved.