You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention...


Microsoft AZ-400 Exam

Questions Number: 383 out of 535 Questions
71.59%

Question 383
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?



Check policy compliance with gates.
Prepare -
1. Create an Azure Policy in the Azure portal. There are several predefined sample policies that can be applied to a management group, subscription, and resource group.
2. In Azure DevOps create a release pipeline that contains at least one stage, or open an existing release pipeline.
3. Add a pre- or post-deployment condition that includes the Security and compliance assessment task as a gate.
AZ-400_383E.jpg related to the Microsoft AZ-400 Exam
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/policies/azure-policy





Previous Questions Next Questions