Skip to content

Commit c28cc61

Browse files
Merge pull request #229255 from timwarner-msft/timwarner-polpipeline
Update reference to Azure Pipelines
2 parents 71906ca + f587ccc commit c28cc61

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

articles/governance/policy/tutorials/policy-devops-pipelines.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Tutorial: Implement Azure Policy with Azure DevOps"
33
description: In this tutorial, you implement an Azure Policy with an Azure DevOps release pipeline.
4-
ms.date: 04/27/2022
4+
ms.date: 03/02/2023
55
ms.topic: tutorial
66
ms.author: jukullam
77
ms.custom: devops-pipelines-deploy
@@ -11,12 +11,12 @@ ms.custom: devops-pipelines-deploy
1111

1212
**Azure DevOps Services**
1313

14-
Learn how to enforce compliance policies on your Azure resources before and after deployment with Azure Pipelines. Azure Pipelines lets you build, test, and deploy with continuous integration (CI) and continuous delivery (CD) using [Azure DevOps](/azure/devops/). One scenario for adding Azure Policy to a pipeline is when you want to ensure that resources are deployed only to authorized regions and are configured to send diagnostics logs to Azure Log Analytics.
14+
Learn how to enforce compliance policies on your Azure resources before and after deployment with Azure Pipelines. Azure Pipelines lets you build, test, and deploy with continuous integration (CI) and continuous delivery (CD) using [Azure DevOps](/azure/devops/). One scenario for adding Azure Policy to a pipeline is when you want to ensure that resources are deployed only to authorized regions and are configured to send diagnostics logs to Azure Log Analytics.
1515

16-
You'll need a [classic pipeline](/azure/devops/pipelines/release/define-multistage-release-process) to take advantage of Azure Policy.
16+
You can use either the [classic pipeline](/azure/devops/pipelines/release/define-multistage-release-process) or [YAML pipeline](/azure/devops/pipelines/get-started/yaml-pipeline-editor?view=azure-devops) processes to implement Azure Policy in your CI/CD pipelines.
1717

1818
For more information, see [What is Azure Pipelines?](/azure/devops/pipelines/get-started/what-is-azure-pipelines)
19-
and [Create your first pipeline](/azure/devops/pipelines/create-first-pipeline).
19+
and [Create your first pipeline](/azure/devops/pipelines/create-first-pipeline).
2020
## Prepare
2121

2222
1. Create an [Azure Policy](./create-and-manage.md) in the Azure portal.
@@ -30,10 +30,12 @@ and [Create your first pipeline](/azure/devops/pipelines/create-first-pipeline).
3030

3131
![Screenshot of Azure Policy Gate.](../media/devops-policy/azure-policy-gate.png)
3232

33+
If you're using a YAML pipeline definition, then use the [AzurePolicyCheckGate@0](/azure/devops/pipelines/tasks/reference/azure-policy-check-gate-v0) Azure Pipelines task.
34+
3335
## Validate for any violation(s) during a release
3436

3537
> [!NOTE]
36-
> Use the [AzurePolicyCheckGate](/azure/devops/pipelines/tasks/deploy/azure-policy) task to check for policy compliance in YAML. This task can only be used as a gate and not in a build or a release pipeline.
38+
> Use the [AzurePolicyCheckGate](/azure/devops/pipelines/tasks/deploy/azure-policy) task to check for policy compliance in YAML. This task can only be used as a gate and not in a build or a release pipeline.
3739
3840
1. Navigate to your team project in Azure DevOps.
3941

0 commit comments

Comments
 (0)