You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention compliance for the resources deployed to Subscription1. You have a pipeline named Pipeline1 in Azure Pipelines. Pipeline1 deploys Azure Resource Manager (ARM) resources to Subscription1. You need to ensure that the resources deployed by Pipeline1 comply with Policy1. What should you add to Pipeline1?
- Aa pre-deployment task that runs a security and compliance assessment (correct answer)
- Ba post-deployment task that runs a security and compliance assessment
- Can ARM template deployment task to assign Policy1 to Subscription1
- Dan ARM template deployment task to deploy Policy1 to Subscription1
Reveal answer & explanationHide answer
The correct answer is A. Option A: a pre-deployment task that runs a security and compliance assessment.
