title: Azure Pipelines: Parallel tasks inside single job in pipeline
body: <p>Using Azure DevOps, I am creating a release pipeline in which I would like to have one stage having 1 job with 5 steps. First three steps are same task types but with different variables, and I would like to make them parallel so some flow would go like:</p>
  
  <p>Job</p>
  
  <p><em>parallel:</em> step1, step2, step3</p>
  
  <p><em>then:</em> step4 (after all 3 parallel steps succeeded/failed)</p>
  
  <p><em>then:</em> step5 (after step4 is done)</p>
  
  <p><strong>This is the current job setup</strong></p>
  
  <p><img src="https://i.ibb.co/mJwctLv/Untitled.png" alt="This is current job setup"></p>
  
  <p>I am not sure how to set up <strong>Control Options - run this task</strong> for all of these steps. I would need somehow to set the first three to run immediately (maybe Custom condition "always()") and step 4 and step 5 to run sequentially after previous steps are done. </p>
  
  <p>Step 5 can be: Even if the previous task has failed unless the deployment was cancelled, but I am not sure if I set the same setting for step 4 will it consider only step 3 as previous or all three previous (step1 - step3) tasks.</p>
  
  <p>Also for <strong>Execution plan Parallelism</strong> I guess it's ok to set multi-agent to three since I would have max 3 steps executing in parallel overall.</p>
  
  <p><img src="https://i.ibb.co/TmnG3Wx/Untitled22.png" alt="Job parallelism"></p>