自动化站点配置 [英] Automated site provisioning

查看:87
本文介绍了自动化站点配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下方法根据需要从pnp模板创建子网站(

I've used the following way to created subsites from pnp template on demand (details):

  1. Azure功能将监视Azure存储队列并使用PowerShell基于SharePoint列表中输入的值创建子网站.
  1. The user creates an item in a SharePoint list.
  2. Microsoft Flow will be triggered on item creation.
  3. Microsoft Flow will add a message on the Azure Storage Queue.
  4. 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.

  • 从选择.NET作为运行时堆栈的门户创建Azure函数应用. (它将在运行时2.x​​中创建函数)
  • 一旦创建功能应用程序.转到 应用程序设置 设置设置
    1. Create a Azure Function App from portal selecting .NET as a Runtime Stack. (it will create function in runtime 2.x)
    2. Once Function App is created. Go to Application Setting of your Function App.
    3. Set the Setting FUNCTIONS_EXTENSION_VERSION to ~1

    How to target Azure Functions runtime versions


    1. 删除 设置

                 

                 

      1. 保存  &  刷新门户.

                  

                  

      1. 现在您可以创造 Powershell 功能,方法是单击创建自己的自定义功能,如下所示:
      1. Now you can create Powershell Function by clicking Create your own custom function as shown below:

                 

                 

      1. 选择 Powershell (在语言下拉列表中).
      1. Select Powershell in Language drop-down list.

      注意: 启用 实验语言支持  按钮,如下所示

      Note: Enable Experimental Language Support Button as shown below

               

               



      这篇关于自动化站点配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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