title: Getting the latest image tag from ACR Repository
body: <p>I need to fetch the latest image tag from Azure Container Registry (ACR) with a bash command in my pipeline and use that tag for container deployment.
  Here is what I could find with Azure cli:</p>
  
  <pre><code>  $ az acr repository show-tags --name myacr --repository myrepo --top 1
  </code></pre>
  
  <p>However this returns me the oldest tag.</p>
  
  <p>How can I get the latest pushed tag from ACR repo?</p>