【问题标题】:Error message that says "Command was found in the module, but the module could not be loaded."显示“在模块中找到命令,但无法加载模块”的错误消息。
【发布时间】:2021-05-19 16:11:55
【问题描述】:

https://github.com/javiersoriano/sentinel-all-in-one#getting-started

大家好,我正在尝试使用 Powershell 来自动化在环境中部署 Azure Sentinel 的过程。我有 .ps1 文件和 .json 文件。当我运行脚本时,我收到一条错误消息:

"在模块 'AzSentinel' 中找到命令,但无法找到该模块 已加载。” Error message 有谁知道这里可能是什么问题?

【问题讨论】:

  • AzSentinel 仅适用于 PowerShell Core/PowerShell 7

标签: azure powershell azure-sentinel


【解决方案1】:

确保您使用的是 powershell core,打开一个新的 powershell 会话,然后在运行命令之前导入模块。

Import-Module -Name AzSentinel -Force

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-07
    • 2019-08-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多