title: Difference between concat function and resource id function in Azure ARM Template
body: <p>Can anyone tell me what is the difference between these two and which one should be used in the resource section in an Azure ARM JSON template</p>
  <pre class="lang-json prettyprint-override"><code>&quot;dependsOn&quot;: [
        [concat('Microsoft.Compute/availabilitySets/', variables('availabilitySetName'))]&quot;
  </code></pre>
  <pre class="lang-json prettyprint-override"><code>&quot;dependsOn&quot;: [
        [resourceid('Microsoft.Compute/availabilitySets/', variables('availabilitySetName'))]&quot;
  </code></pre>