title: Azure Resource Locks Removal Delay from CLI script
body: <p>I have a DevOps pipeline that I use to deploy my resource group (with an ARM template).</p>
  <p>I have a readonly lock on my resource group. At the beginning of my pipeline, I run a Azure CLI script task to remove the locks. It runs fine.</p>
  <p>Right after, in the same pipeline, I have an ARM template deployment task.</p>
  <p>When my ARM template deployment task runs, it fails, saying that my resource group is still locked.</p>
  <p>If I wait a certain time (a few minutes) and re-run the ARM template deployment task, it runs fine.</p>
  <p>It seems there is a delay in the lock deletion task. Is there such a thing? I can't find any mention of a lock deletion delay in the documentation.</p>
  <p>What would be the best approach to this?</p>