Logic App:在ARM模板中设置“OptimizedForHighThroughput”

时间:2018-03-21 10:54:18

标签: azure-resource-manager azure-logic-apps arm-template

有一个逻辑应用程序功能可以实现高吞吐量的工作流程(当前处于预览状态)。

通过门户网站,可以在运行时选项下启用“高吞吐量”开关,在逻辑应用程序的“工作流程设置”中启用此功能。

有没有办法使用ARM模板设置此选项? 微软的文档说:

  

要配置高吞吐量模式,请在工作流资源的runtimeConfiguration下,将operationOptions属性设置为OptimizedForHighThroughput

所以我尝试将runtimeConfiguration添加到我的ARM模板中,如下所示:

{
  "type": "Microsoft.Logic/workflows",
  "name": "[variables('workflows_integra_send_name')]",
  "apiVersion": "2017-07-01",
  "location": "[resourceGroup().location]",
  "tags": {
    "displayName": "Logic App - send"
  },
  "scale": null,
  "runtimeConfiguration": {
    "operationOptions ": "OptimizedForHighThroughput"
  },
  "properties": {...

但是这留下了以下错误消息:

请求内容无效且无法反序列化:'无法在类型为'TemplateResource'的对象上找到成员'runtimeConfiguration'。路径'properties.template.resources [6] .runtimeConfiguration',第1行,第23494位。'。

非常感谢有关在我的模板中配置此位置的任何帮助!

1 个答案:

答案 0 :(得分:4)

经过一些试验和错误后,我发现runtimeConfiguration必须在"属性" Logic App ARM模板。像这样:

{
  "type": "Microsoft.Logic/workflows",
  "name": "[variables('workflows_integra_send_name')]",
  "apiVersion": "2017-07-01",
  "location": "[resourceGroup().location]",
  "tags": {
    "displayName": "Logic App - send"
  },
  "scale": null,
  "properties": {
    "state": "Enabled",
    "runtimeConfiguration": {
      "operationOptions": "OptimizedForHighThroughput"
    },...

我的模板中也有一个拼写错误(在operationOptions后面有额外空格)