Azure Policy Check Gate task

Azure Pipelines

Security and compliance assessment with Azure policies on resources that belong to the resource group and Azure subscription.

YAML snippet

# Check Azure Policy compliance
# Security and compliance assessment for Azure Policy
- task: AzurePolicyCheckGate@0
  inputs:
    azureSubscription: 
    #resourceGroupName: # Optional
    #resources: # Optional

Arguments

ArgumentDescription
Azure subscription(Required) Select the Azure Resource Manager subscription to enforce the policies.
Resource group(Required) Provide name of a resource group.
Resource name(Optional) Select name of Azure resources for which you want to check the policy compliance.
Control options

Q&A