title: Azure Pipelines: Bulk approve of deployments to environments
body: <p>Is there any way to approve runs via the CLI or the API (or anything else)? I'm looking for a way to bulk approve multiple runs from different pipelines but it's not available in the UI.</p>
  
  <p>Let's say I have 100 pipelines that have a deployment job to a production environment. I would like to approve all awaiting for approval runs.</p>
  
  <p>Currently, I cannot find something like it in the docs of the Azure DevOps REST API or the CLI.</p>
  
  <p>The feature docs:
  <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/environments" rel="noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/process/environments</a>
  <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/approvals" rel="noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/process/approvals</a></p>
  
  <p>The following question is related but I'm looking for any way of solving it but not just via API:
  <a href="https://stackoverflow.com/questions/59171325/approve-a-yaml-pipeline-deployment-in-azure-devops-using-rest-api">Approve a yaml pipeline deployment in Azure DevOps using REST api</a></p>