I am creating an ARM template that deploys a web application (Mvc Api) and a Logic application.
I am trying to define HTTP actions within the framework of the application logic in such a way that it dynamically concatenates the Uri API base, as well as the property of the current element with splitOnand @triggerBody(). The base Uri itself is concatenated from the parameter set in the ARM template to a variable variables('hockeyAppAPISettings').Uri.
Here, the relevant ones break away from the definition of action:
"actionName": {
"conditions": [ ],
"inputs": {
"authentication": {
"audience": "[variables('apiSettings').Authentication.Audience]",
"clientId": "[variables('apiSettings').Authentication.ClientId]",
"secret": "[variables('apiSettings').Authentication.Secret]",
"tenant": "[variables('apiSettings').Authentication.Tenant]",
"type": "ActiveDirectoryOAuth"
},
"method": "patch",
"uri": "[concat(variables('apiSettings').Uri, '/@{triggerBody()['Id']}/ScanningInProgress')]"
//"uri": "[concat(variables('apiSettings').Uri, '//@{triggerBody()[/'Id/']}//ScanningInProgress')]"
//"uri": "[concat(variables('apiSettings').Uri, '//@@{triggerBody()[/'Id/']}//ScanningInProgress')]"
},
"type": "Http"
},
The section "uri"is what I'm struggling with. I used different escape characters ( \and @) in different patterns.
I either cannot get the deployment for success with deployment errors, for example:
'Concat ( (' apiSettings'). Uri, '//@{triggerBody() [/' Id/']}//ScanningInProgress') ': "RightParenthesis" "". , http://aka.ms/arm-template-expressions .. '.
, , , . .
, Uri ( HTML ) :. "uri" : "https://edited.azurewebsites.net/api/Packages/@{triggerBody()['Id']}/ScanningInProgress" App , HTTP
?