Connect-PnPOnline无法识别命令 [英] Connect-PnPOnline is not recognized command

查看:422
本文介绍了Connect-PnPOnline无法识别命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我创建了一个PnP脚本来修改列表时间。它在ISE PS中运行良好但是当我尝试将其作为Azure WebJob运行时,它会抛出错误,即Connect-PnPOnline无法识别。这说得通。未安装该模块。因此,我在调试控制台下创建了一个名为Module的文件夹
,然后拖放了SharePointPnPPowerShellOnline模块。它仍然会引发同样的错误。


我缺少什么? 



谢谢


Aniruddha

解决方案

您好,


以下是供您参考的示例演示。


创建PowerShell函数后,将PnP Powershell模块上传到D:\\\\ [ site \wwwroot \\ \\ QueueTriggerPowerShell1 \Modules \SharePointPnPPowerShellOnline> in kudu








然后,当您调用PnP命令时,将加载模块。





最好的问候,



Hi,

I have created a PnP script to modify a list time. It works well in ISE PS but when I try to run it as an Azure WebJob, it throws the error that Connect-PnPOnline is not recognized. It makes sense. The Module is not installed. So, I created a folder called Module under Debug console then dragged and dropped the SharePointPnPPowerShellOnline Module. It still throws the same error.

What am I missing? 

Thanks

Aniruddha

解决方案

Hi,

Here is sample demo for your reference.

After you created a PowerShell function, upload PnP Powershell Module to D:\home\site\wwwroot\QueueTriggerPowerShell1\Modules\SharePointPnPPowerShellOnline> in kudu



Then, when you call PnP command, the module will be loaded.


Best Regards,

Lee


这篇关于Connect-PnPOnline无法识别命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆