ARM 模板输出得到百分比转义
ARM template output gets percent-escaped
最近我们的 ARM 模板部署失败,因为输出被百分比转义。
我们需要逻辑应用程序 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 模板输出在 days/weeks 前正确工作并导致
...?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.
有人知道如何修复此错误/“功能”吗?
我 运行 遇到了同样的问题,并通过将新的管道变量 DECODE_PERCENTS
设置为 true
来修复它。
最近我们的 ARM 模板部署失败,因为输出被百分比转义。
我们需要逻辑应用程序 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 模板输出在 days/weeks 前正确工作并导致
...?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.
有人知道如何修复此错误/“功能”吗?
我 运行 遇到了同样的问题,并通过将新的管道变量 DECODE_PERCENTS
设置为 true
来修复它。