In Azure DevOps Services, an environment named Production has a single approval check. The check lists one user, Sam, as the approver and has a Timeout of 4 hours. No other checks are configured.
A YAML pipeline run reaches the stage that deploys to Production. Sam neither approves nor rejects the run during the next 4 hours.
What happens to the stage when the 4 hours have passed?
The approval check has a Timeout setting that limits how long the stage waits for a decision. If the approver does not complete the approval within that time, Azure Pipelines marks the stage as skipped.
- Correct: The stage is marked as skipped. When an approval is not completed within the configured Timeout, the stage is marked as skipped.
- Not correct: The stage starts without the approval. A stage can begin only when all checks on its resources are satisfied. An approval that was never given does not satisfy the check.
- Not correct: The stage keeps waiting until Sam responds. The Timeout limits how long the approval can stay pending. When it expires without an approval, the stage is marked as skipped.
- Not correct: The stage is marked as failed. The approval remained pending until the Timeout expired, so the stage is marked as skipped.
- Pipeline deployment approvals - Azure PipelinesMicrosoft Learn