title: Azure Devops YAML Pipeline - Clean up dynamic deployments
body: <p>Our current pipeline deploys a new instance of our app for every new branch created on azure repos, just like review apps on Heroku or Gitlab.
  The creation part went smooth, but I'm not sure what to do with the orphaned resources and deployment once the branch is deleted (hopefully by an accepted pr).</p>
  
  <p>Deleting them manually is not an option and there I can't find a trigger in the documentation for branch deletes.</p>
  
  <p>The only option I can see right now is to create a scheduled job for the master branch(since it always exists) with a bash script that compares the list of deployed apps and existing branches and cleans up the resources.</p>
  
  <p>Is it my only option, or is there another way without a fairly complex, all-access, destroy machine?</p>