自动化站点配置 [英] Automated site provisioning
问题描述
I've used the following way to created subsites from pnp template on demand (details):
- Azure功能将监视Azure存储队列并使用PowerShell基于SharePoint列表中输入的值创建子网站.
- The user creates an item in a SharePoint list.
- Microsoft Flow will be triggered on item creation.
- Microsoft Flow will add a message on the Azure Storage Queue.
- The Azure Function will monitor the Azure Storage Queue and create the subsite based on the values entered in the SharePoint list using PowerShell.
但是现在当我创建一个功能应用程序时,我不再能够创建可以运行Powershell的功能.我已经阅读了一个不支持Powershell的功能应用程序的新版本(v2).
But now when I create a function app I'm no longer able to create a function that can run powershell. I've read there's a new version(v2) of function apps that doesn't support powershell.
1.我可以创建一个v2函数应用程序并运行powershell吗?
1. can I create a v2 function app and run powershell?
2.我可以创建一个v1函数吗?
2. can I create a v1 function
3.还有其他想法吗?
3. any other ideas?
推荐答案
从门户创建Azure函数仅支持运行时2.x,而python在2.x中不可用运行时.
The version 2.x runtime doesn't support experimental languages. Support for new languages is added only when the language can be supported in production.
此处 .
Azure自动化.
Experimental support for PowerShell in 1.x is limited to version 5.1, because that is what's installed by default on the VMs on which function apps run. If you want to run PowerShell scripts, consider Azure Automation.
How
to target Azure Functions runtime versions
注意: 启用
实验语言支持 按钮,如下所示跨度>
Note: Enable
Experimental Language Support Button as shown below
这篇关于自动化站点配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!