【问题标题】:Azure integration account arm template: how to include a liquid template inlineAzure 集成帐户手臂模板:如何内联包含流动模板
【发布时间】:2020-10-22 14:28:39
【问题描述】:

我为我的集成帐户创建了一个 azure arm 模板,其中包含一个内联 Liquid 模板。

如果我从 Visual Studio 部署,它可以工作,但从 devOps 部署会出现错误:

##[error]Error: Ensure the Template file ( 'D:\a\r1\a\projName\drop\IntegrationAccName\ARM\IntegrationAcc.template.json' ) is valid. Task failed while parsing with     following error: Unexpected token 
 in JSON at position 1420

位置 1420 是液体内容的确切开始。示例内容如下所示。 转义的双引号在液体的输出中是必要的,以环绕值。

我尝试了几种内容类型,text、json、liquid,但都以同样的错误告终。 感谢这方面的任何专业知识。

请注意,在 content 和 contentType 键之间有一个逗号,它只是在该屏幕截图中不可见。

【问题讨论】:

  • 我不能保证它可以解决您的问题,但是在使用 Liquid 和 Logic 应用程序时,我发现在 Liquid 模板中使用单引号更好。你能检查它是否解决了你的问题吗?

标签: azure-devops liquid azure-logic-apps


【解决方案1】:

设法通过二进制将问题分解为一个微小的液体文件来解决此问题。 解析器不喜欢 cr 或 lf。将液体缩小为一条线使其可以展开!

【讨论】:

  • 你修好了真是太好了!您可以接受您的上述回答。
猜你喜欢
  • 2023-03-04
  • 2022-01-23
  • 2012-08-15
  • 2015-01-23
  • 1970-01-01
  • 2020-11-12
  • 1970-01-01
  • 1970-01-01
  • 2015-09-13
相关资源
最近更新 更多