title: String concatenation issue with Azure Logic Apps
body: <p>I'm creating an ARM template that deploys an Web App (an Mvc Api) and a Logic App.</p>
  
  <p>I'm attempting to define an HTTP Action within the Logic App such that it dynamically concatenates the base Uri of the Api as well as a property of the current item using <code>splitOn</code> and <code>@triggerBody()</code>. The base Uri itself is concatenated from a set of parameters in the ARM template into a variable <code>variables('hockeyAppAPISettings').Uri</code>.</p>
  
  <p>Here's the relevant snipped of the action definition:</p>
  
  <pre><code>"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"
  },
  </code></pre>
  
  <p>The <code>"uri"</code> section is what i'm struggling with.  I've sprinkled various escape characters (<code>\</code> and <code>@</code>) in differing patterns through out this.</p>
  
  <p>I either can't get the deployment to succeed w/deployment errors like: </p>
  
  <blockquote>
    <p>Unable to parse template language expression
    'concat(variables('apiSettings').Uri,
    '//@{triggerBody()[/'Id/']}//ScanningInProgress')': expected token
    'RightParenthesis' and actual 'Identifier'. Please see
    <a href="http://aka.ms/arm-template-expressions" rel="noreferrer">http://aka.ms/arm-template-expressions</a> for usage details..'.</p>
  </blockquote>
  
  <p>Or if I get the deployment working and then look at the code in the portal after deployment, the string concatenation doesn't seem to work properly.  The variable doesn't get converted to its value.</p>
  
  <p>I have validated that if I edit the Uri directly (via the portal HTML editor) using this: <code>"uri" : "https://edited.azurewebsites.net/api/Packages/@{triggerBody()['Id']}/ScanningInProgress"</code> the Logic App will make a patch call for each item that comes from the HTTP trigger.</p>
  
  <p>What am I doing wrong?</p>