title: Logic App: Pass dynamic subscription id and resource group name in an ARM template
body: <p>Hey It's been days that I am trying to deploy my first logic app with dynamic resource group name and subscription id using Azure DevOps, I looked on several links that doing something like in my template.json file:</p>
  <pre><code>{
      &quot;$schema&quot;: &quot;https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#&quot;,
      &quot;contentVersion&quot;: &quot;1.0.0.0&quot;,
      &quot;parameters&quot;: {
          &quot;workflows_app_name&quot;: {
              &quot;defaultValue&quot;: &quot;myLogicApp&quot;,
              &quot;type&quot;: &quot;String&quot;
          },
          &quot;connections_azuretables_externalid&quot;: {
              &quot;value&quot;: &quot;/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/connections/azuretables&quot;,
              &quot;type&quot;: &quot;String&quot;
          }
  ....
  </code></pre>
  <p>tried this too:</p>
  <pre><code> &quot;connections_azuretables_externalid&quot;: {
              &quot;defaultValue&quot;: &quot;[concat('/subscriptions/', subscription().id, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Web/connections/azuretables')]&quot;,
              &quot;type&quot;: &quot;String&quot;
          }
  </code></pre>
  <p>and this as well trying to pass resourcegroup name and subscription in paramters:</p>
  <pre><code>{
      &quot;$schema&quot;: &quot;https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#&quot;,
      &quot;contentVersion&quot;: &quot;1.0.0.0&quot;,
      &quot;parameters&quot;: {
          &quot;workflows_app_name&quot;: {
              &quot;defaultValue&quot;: &quot;myLogicApp&quot;,
              &quot;type&quot;: &quot;String&quot;
          },
          &quot;connections_azuretables_externalid&quot;: {
              &quot;defaultValue&quot;: &quot;[concat('/subscriptions/', parameters('subscriptionId'), '/resourceGroups/', parameters('ressourceGroupName'), '/providers/Microsoft.Web/connections/azuretables')]&quot;,
              &quot;type&quot;: &quot;String&quot;
          },
          &quot;subscriptionId&quot;: {
            &quot;type&quot;: &quot;String&quot;
          },
          &quot;ressourceGroupName&quot;: {
            &quot;type&quot;: &quot;String&quot;
          },
  .....
  }
  </code></pre>
  <p>but getting errors similar to this</p>
  <blockquote>
  <p>Property id '[concat('/subscriptions/', parameters('subscriptionId'), '/resourceGroups/', parameters('ressourceGroupName'), '/providers/Microsoft.Web/connections/azuretables')]' at path 'properties.parameters.$connections.value.azuretables.connectionId' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'</p>
  </blockquote>
  <p>I know I am missing or misunderstanding something but can't figure it out! Thanks.</p>