title: How to use variables with Azure CLI
body: <p>I am trying to use variable in azure CLI like we used in powershell.</p>
  <p>In powershell we define variable as follows</p>
  <pre><code>$LOCATION = value
  </code></pre>
  <p>And used it in command as follows</p>
  <pre><code>az group create --name foo --location $LOCATION
  </code></pre>
  <p><strong>What I have tried :-</strong></p>
  <p>I have tried to find it out in Microsoft documentation</p>
  <p><a href="https://docs.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest" rel="noreferrer">https://docs.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest</a></p>
  <p>but I did not get any information about that.</p>
  <p><strong>Question :-</strong></p>
  <ol>
  <li>How we can define variable in azure CLI?(like powershell)</li>
  <li>How we can used it in command?(like powershell)</li>
  </ol>
  <p><strong>Note:-</strong> I have installed azure CLI at my local.</p>