You are reviewing an Azure Policy definition applied to an Azure DevOps project. The project has a build pipeline that deploys to production. What is the effect of this policy on the build pipeline?
Exhibit
Refer to the exhibit.
```json
{
"properties": {
"description": "Policy to require multiple reviewers for critical repos",
"policyType": "Build",
"mode": "Validation",
"initiative": "RequireMinimumReviewers",
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.TeamFoundation/teamProjects"
},
"then": {
"effect": "audit",
"details": {
"minimumApproverCount": 2
}
}
}
}
}
```Trap 1: The policy blocks the pipeline from running if fewer than two…
The effect is audit, not deny.
Trap 2: The policy requires two reviewers and blocks the pipeline if not…
No blocking effect.
Trap 3: The policy does not apply to build pipelines because the field type…
The policy applies but with audit effect.
- A
The policy blocks the pipeline from running if fewer than two reviewers approve.
Why it fails: The effect is audit, not deny.
- B
The policy requires two reviewers and blocks the pipeline if not met.
Why it fails: No blocking effect.
- C
The policy audits the pipeline but does not enforce any mandatory reviewers.
The audit effect logs compliance without blocking.
- D
The policy does not apply to build pipelines because the field type is teamProjects.
Why it fails: The policy applies but with audit effect.