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

埃菲尔铁塔

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

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

你有什么建议吗?

此致

解毒

您不必在 Runbook 中安装或导入模块。请参阅此链接:https : //sharepointyankee.com/2018/02/26/importing-powershell-modules-into-azure-automation/

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Runbook - 用于修改 Azure AD 组的 PowerShell

Runbook 作为 azure 帐户运行 Powershell

在PowerShell Runbook中使用Azure文件共享

Azure Runbook - 在远程 VM 上运行 Powershell

Azure Powershell:无法在同一会话中导入 Az 和 AzureRM 模块

在 Azure PowerShell Runbook 中更改 Azure Blob 存储层

Azure Runbook-缺少PowerShell Cmdlet或未针对VM执行

Azure Runbook-使用Powershell脚本从图库创建

Azure 自动化 Powershell Runbook 静默无法 LoadAssembly

Azure PowerShell Runbook动态获取设置Az磁盘

如何在Azure PowerShell Runbook上应用SharePoint网站模板?

使用Azure Powershell Runbook自动创建数据库

更新后,Azure Powershell模块无法再导入我的模块并出现奇怪的错误

Redux,如果我想访问数据,是否必须在所有容器中导入存储?

在Powershell中导入模块,例如将<import <module> as as <alias>导入

用于修改/更新Azure VM标签值的代码在Azure PowerShell Runbook中不起作用

Azure Runbook-GetAzurermlog

Azure Runbook命令

是否可以在Azure中导入python脚本?

是否可以从文件中导入 pip 模块

是否可以使用Azure Automation Runbook删除另一个Runbook输出(Azure文件共享快照)?

无法在我的virtualenv中导入模块

无法在Python中导入我自己的模块

Azure 自动化帐户 PowerShell Runbook 中的绑定重定向

可以在Azure(PowerShell)Runbook中执行自定义控制台应用程序吗?

PnP Powershell Add-PnPOffice365GroupToSite Authorization_RequestDenied Azure Runbook

如何从PowerShell创建Azure Automation Runbook的自动化计划以在Hybrid Worker上运行?

如何使用自动化帐户 PowerShell Runbook 重置 Azure 服务主体的凭据?

在Azure python函数中导入自定义模块