Azure Functions Powershell:无法通过托管依赖项加载模块
Azure Functions Powershell: module could not be loaded via managed dependencies
我们在导入库表单时遇到问题 powershellgallery.com:IntuneWin32App。
错误消息如下:
"ERROR: The 'New-IntuneWin32AppPackage' command was found in the module 'IntuneWin32App', but the module could not be loaded."
我们是 运行 Azure Functions 3,Powershell 7.1。
IntuneWin32App 是通过托管依赖项导入的。在“requirements.psd1”中指定如下:
'IntuneWin32App' = '1.*'
我们已经针对此错误的相关问题尝试了多种解决方案,但 none 可以帮助我们。
编辑:详细输出:https://pastebin.com/t3kBF00A
我们也将该功能部署到云环境,我们正在那里检索同样的问题。
[2021-07-30T06:54:54.792Z] ERROR: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
模块是否需要身份验证?它似乎正在尝试启动 PowerShell 7 中不可用的 winforms window。
是否有其他身份验证机制可以与该模块一起使用,例如服务主体或证书,以防止 window?
我们在导入库表单时遇到问题 powershellgallery.com:IntuneWin32App。 错误消息如下:
"ERROR: The 'New-IntuneWin32AppPackage' command was found in the module 'IntuneWin32App', but the module could not be loaded."
我们是 运行 Azure Functions 3,Powershell 7.1。 IntuneWin32App 是通过托管依赖项导入的。在“requirements.psd1”中指定如下:
'IntuneWin32App' = '1.*'
我们已经针对此错误的相关问题尝试了多种解决方案,但 none 可以帮助我们。
编辑:详细输出:https://pastebin.com/t3kBF00A
我们也将该功能部署到云环境,我们正在那里检索同样的问题。
[2021-07-30T06:54:54.792Z] ERROR: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
模块是否需要身份验证?它似乎正在尝试启动 PowerShell 7 中不可用的 winforms window。
是否有其他身份验证机制可以与该模块一起使用,例如服务主体或证书,以防止 window?