逻辑应用:在 ARM 模板中设置 "OptimizedForHighThroughput"
Logic App: Set "OptimizedForHighThroughput" in an ARM template
有一个逻辑应用程序功能可以启用高吞吐量的工作流(目前处于预览状态)。
通过门户,这可以在您的逻辑应用程序的 "Workflow settings" 中启用,方法是启用运行时选项下的 "High throughput" 开关。
有没有办法使用 ARM 模板设置此选项?
Microsoft 文档说:
To configure high throughput mode, under the runtimeConfiguration of the workflow resource, set the operationOptions property to 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.'.
非常感谢任何关于在我的模板中在哪里配置它的帮助!
经过反复试验,我发现 runtimeConfiguration 必须位于 Logic App ARM 模板的 "properties" 下。像这样:
{
"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 后面额外 space)
有一个逻辑应用程序功能可以启用高吞吐量的工作流(目前处于预览状态)。
通过门户,这可以在您的逻辑应用程序的 "Workflow settings" 中启用,方法是启用运行时选项下的 "High throughput" 开关。
有没有办法使用 ARM 模板设置此选项? Microsoft 文档说:
To configure high throughput mode, under the runtimeConfiguration of the workflow resource, set the operationOptions property to 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.'.
非常感谢任何关于在我的模板中在哪里配置它的帮助!
经过反复试验,我发现 runtimeConfiguration 必须位于 Logic App ARM 模板的 "properties" 下。像这样:
{
"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 后面额外 space)