逻辑应用程序参数ARM模板-参数消失. [英] Logic Apps Parameters ARM template - parameter disappear.

查看:66
本文介绍了逻辑应用程序参数ARM模板-参数消失.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ARM模板将LogicApp部署到不同的环境.但是我面临一个令人讨厌的问题.

I'm using ARM templates to deploy my LogicApps to different environments. But I'm facing an annoying issue.

我通过示例使用了以下Dynamics 365操作,其ARM参数为"[parameters('d365fo_project_entity')]"

I'm using by example the following Dynamics 365 action with the ARM parameter "[parameters('d365fo_project_entity')]"

    " type":"ApiConnection",
              b ;  输入":{
              b ;    主机":{
              b ;     连接":{
              b ;       "名称" ;:" @parameters('$ connections')['dynamicsax_1'] ['connectionId']'
              b ;     }
              b ;    },
              b ;    方法":发布",
;    " body" ;: {
              b ;     "IntegrationSource":"CMD",
              b ;     "dataAreaId":"@ items('For_each_2')['Company']",
              b ;     " ProjContractId":"@ items('For_each')?['Asset']?['FullNumber']",
              b ;     " ProjectId" ;:" @items('For_each')?['Asset']?['FullNumber']"
              b ;     "名称" ;:" @items('For_each')?['Asset']?['Name']"
              b ;    },
              b ;    路径":"[[parameters('d365fo_project_entity')]""

                          "type": "ApiConnection",
                          "inputs": {
                            "host": {
                              "connection": {
                                "name": "@parameters('$connections')['dynamicsax_1']['connectionId']"
                              }
                            },
                            "method": "post",
                            "body": {
                              "IntegrationSource": "CMD",
                              "dataAreaId": "@items('For_each_2')['Company']",
                              "ProjContractId": "@items('For_each')?['Asset']?['FullNumber']",
                              "ProjectId": "@items('For_each')?['Asset']?['FullNumber']",
                              "Name": "@items('For_each')?['Asset']?['Name']"
                            },
                            "path": "[parameters('d365fo_project_entity')]"

但是经常会出现参数消失-它认为它是在设计视图中打开Logic App之后发生的

But it often occurs that the parameter disappear - it think it happens after opening the Logic App in the design view

然后我得到:

路径":"

我的逻辑应用程序当然坏了.

And my Logic App is ofcourse broken.

有人知道为什么要删除参数吗?

Anyone an idea why parameters gets removed?

不幸的是,我在参数化我的逻辑应用程序(ARM参数<>逻辑应用程序参数)方面很挣扎.

Unfortunately I'm struggling with parameterizing my logic apps (ARM parameters <> Logic App Parameters).

推荐答案

我假设您正在使用VS工具进行编辑.

设计人员不了解ARM参数.为了允许本地编辑,VS工具在某些字段中将ARM参数替换为其值.请在ARM模板中为此参数提供默认值,并且应保留该默认值.

I am assuming you are using VS tools for editing.

The designer does not understand ARM parameters. To allow local editing, VS tools replaces ARM parameters with their value in some fields. Please provide a default value for this parameter in the ARM template and it should be retained.


这篇关于逻辑应用程序参数ARM模板-参数消失.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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