How to trigger VSTS build and release when pushing tags? : <p>I have rather simple scenarion, one master branch then when I want to do a production release I want to tag a commit with eg. vX.X.X.</p>

<p>The CI/CD pipeline looks like this</p>

<p>Build -> Staging Environment -> Production Environment</p>

<ol>
<li>Every commit to master is sent to staging environment</li>
<li>When I add a vX.X.X tag to a commit I want the staging and production environment to trigger.</li>
</ol>

<p>I have found this link <a href="https://visualstudio.uservoice.com/forums/330519-visual-studio-team-services/suggestions/13326927-trigger-build-when-pushing-tag-to-git?page=1&amp;per_page=20" rel="noreferrer">Trigger build when pushing tag to git</a>. I just can't figure it out how to make it work. It simply does not work for me.</p>

<p>Is it possible and how do I configure the VSTS to start a build when a tag is added to a commit? </p>
