[英]Azure web Job and PnP Core CSOM Provision Template issue
I have implemented a PnP Provisioning for the SharePoint List and Libraries which generates views in a list. 我已经为SharePoint列表和库实现了PnP设置,该列表在列表中生成视图。
I have implemented console application for to achieve this. 我已经实现了控制台应用程序来实现此目的。
Everything is working in console. 一切都在控制台中进行。 Now I want to make this console as a Azure web job which runs each 5 minutes.
现在,我想将此控制台作为Azure Web作业运行,每5分钟运行一次。
I am able to configure the azure web job. 我可以配置Azure Web作业。 But when I try to run this azure job it Failed and the provision template is not fetched.
但是,当我尝试运行此天蓝色的作业时,它失败了,并且未获取配置模板。
How to fetch an xml proplerly in azure web job for the file under a folder? 如何在Azure Web作业中正确获取文件夹下文件的xml?
Plesae see the screenshot below for the azure job structure. 请参阅下面的屏幕截图,了解天蓝色的工作结构。
I want to access the files under the Template folder which are deployed as Azure web job. 我想访问“模板”文件夹下的文件,这些文件已部署为Azure Web作业。
string currentPath = System.Web.Hosting.HostingEnvironment.MapPath("~\\Template");
string listFile = "ProvisioningListViewsTemplate.xml";
var provisioningProvider = new XMLFileSystemTemplateProvider(currentPath, string.Empty);
var provisioningTemplate = provisioningProvider.GetTemplate(listFile);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.