如何导出包含关联 ISE 的逻辑应用的 ARM 模板?

How can you export the ARM template of a logic app which includes its associated ISE?

如何导出包含关联 ISE 的逻辑应用的 ARM 模板?

每次尝试时,模板都缺少 "Microsoft.Logic/workflows" 的 "properties" 集合中的 "integrationServiceEnvironment" ...

"integrationServiceEnvironment": {
    "id": "[parameters('integrationServiceEnvironments_ise_eun_logicapps_0_externalid')]"
}

...我必须使用门户,因为 Visual Studio 逻辑应用程序扩展还不支持 ISE 的

据我所知,实际上有些关系无法通过"export template"导出。我测试了一下,在arm模板中也找不到"integrationServiceEnvironment",不过我们可以手动添加。当我们从逻辑应用导出模板并希望在下次部署它时。我们可以在部署之前添加 "integrationServiceEnvironment" 如下:

"integrationServiceEnvironment": {
    "name": "the name of your ISE",
    "id": "the resource id of your ISE",
    "type": "Microsoft.Logic/integrationServiceEnvironments"
},

上面的代码应该添加到模板中的"properties"下。除此之外,我将模板中的位置更改为与我们添加的 ISE 相同,并将模板中的名称更改为我要创建的逻辑应用程序的新名称。