Answers: <p>Check if this helps : <a href="https://learn.microsoft.com/en-us/azure/devops/pipelines/release/approvals/approvals?view=azure-devops#post-deployment-approvals" rel="nofollow noreferrer">https://learn.microsoft.com/en-us/azure/devops/pipelines/release/approvals/approvals?view=azure-devops#post-deployment-approvals</a></p>
  <p>Add a post deployment approval.</p>
  <p><a href="https://i.sstatic.net/zy3nK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zy3nK.png" alt="enter image description here" /></a></p>
  
Answers: CC BY-SA 4.0
Answers: 2023-10-25T18:58:16.503Z
Answers: 2023-10-25T18:58:16.503Z
Answers: geeky_girl
Body: <p>In a release pipeline, we have a post deployment approval in a stage 1 task which triggers the  stage 2 task. In the Approval Policies, we have checked the box: &quot;The user requesting a release or deployment should not approve it&quot;. Once the stage 1 task has been approved by someone other than the user requesting the release, the stage 2 task is deployed and executes. However, if the stage 2 task fails, how can we prevent the user requesting a release or deployment from clicking the redeploy button? Currently, the redeploy button can be clicked by anyone.</p>
  
Comments: CC BY-SA 4.0
Comments: 2022-05-12T08:30:23.243Z
Comments: Hi greenjackal - good question!
Comments: Vince Bowdren
Tags: <azure-devops><azure-pipelines>
Title: How to prevent user who does not have approval rights to click redeploy if approved task fail in release?
UserDisplayName: greenjackal
ThreadText: # How to prevent user who does not have approval rights to click redeploy if approved task fail in release?
  
  (Asked by: username_0 on 2022-05-11)
  
  In a release pipeline, we have a post deployment approval in a stage 1 task which triggers the stage 2 task. In the Approval Policies, we have checked the box: "The user requesting a release or deployment should not approve it". Once the stage 1 task has been approved by someone other than the user requesting the release, the stage 2 task is deployed and executes. However, if the stage 2 task fails, how can we prevent the user requesting a release or deployment from clicking the redeploy button? Currently, the redeploy button can be clicked by anyone.
  
  **Tags:** azure-devops, azure-pipelines
  
  > **Comments:**
  > **username_1**: Hi username_0 - good question!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-10-25. Score: 0
  
  Check if this helps : <https://learn.microsoft.com/en-us/azure/devops/pipelines/release/approvals/approvals?view=azure-devops#post-deployment-approvals>
  
  Add a post deployment approval.
  
  [![enter image description here](https://i.sstatic.net/zy3nK.png)](https://i.sstatic.net/zy3nK.png)
  
  
  ---
  
  