【发布时间】:2021-01-30 06:46:06
【问题描述】:
最近我们的 ARM 模板部署失败了,因为输出得到了百分比转义。
我们需要 Logic App url 作为其 ARM 模板的输出,并将其输出为:
"outputs": {
"url": {
"type": "object",
"value": {
"key": "[concat(variables('LogicAppShortName'),'-url')]",
"value": "[listCallbackUrl(concat(resourceId('Microsoft.Logic/workflows/', variables('LogicAppName')), '/triggers/manual'), '2016-06-01').value]"
}
}
}
ARM 模板输出在几天/几周前正常工作并导致
...?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=...
但现在结果是
...?api-version=2016-06-01&sp=%252Ftriggers%252Fmanual%252Frun&sv=1.0&sig=...
因此 %2F 再次转义并变为 %252F,使 URL 无效。
此外,ARM 部署显示更多日志行,以前只是
Updated output variable 'ArmOutputs', which contains the outputs
section of the current deployment object in string format.
现在是 4 行,表明发生了一些变化:
Updated output variable 'ArmOutputs.url.type', which contains the outputs section of the current deployment object in string format.
Updated output variable 'ArmOutputs.url.value.key', which contains he outputs section of the current deployment object in string format.
Updated output variable 'ArmOutputs.url.value.value', which contains the outputs section of the current deployment object in string format.
Updated output variable 'ArmOutputs', which contains the outputs section of the current deployment object in string format.
有人知道如何修复这个错误/“功能”吗?
【问题讨论】: