title: How to set retryPolicy as an ARM Template Variable
body: <p>i'm creating an Azure App that uses several Azure Functions. I want to have a custom retryPolicy that all those functions will use. To avoid duplicating code i wanted to define my retryPolicy as a variable or parameter. However i find it confusing to do so.</p>
  
  <p>Acording to <a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-authoring-templates" rel="nofollow noreferrer">this</a>: </p>
  
  <pre><code>Variables:      Values that are used as JSON fragments in the template to simplify template language expressions.
  </code></pre>
  
  <p>So it seems that a variable is what i'm looking for. But how do i define the type so it matches the one i need, in order to be able to do this:</p>
  
  <pre><code>"retryPolicy": "[variables('myPolicy')]"
  </code></pre>