Redaguoti

Bendrinti naudojant


AzurePolicyCheckGate@0 - Check Azure Policy compliance v0 task

Use this task to check the security and compliance assessment for Azure Policy.

Syntax

# Check Azure Policy compliance v0
# Security and compliance assessment for Azure Policy.
- task: AzurePolicyCheckGate@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription. 
    #ResourceGroupName: # string. Resource group. 
    #Resources: # string. Resource name. 
  # Advanced
    #RetryDuration: '00:02:00' # string. Retry duration. Default: 00:02:00.
# Check Azure Policy compliance v0
# Security and compliance assessment for Azure Policy.
- task: AzurePolicyCheckGate@0
  inputs:
    azureSubscription: # string. Alias: ConnectedServiceName. Required. Azure subscription. 
    #ResourceGroupName: # string. Resource group. 
    #Resources: # string. Resource name.

Inputs

azureSubscription - Azure subscription
Input alias: ConnectedServiceName. string. Required.

Selects the Azure Resource Manager subscription you want to use to enforce the policies.


ResourceGroupName - Resource group
string.

Provides the resource group name.


Resources - Resource name
string.

Selects the name of Azure resources for which you want to check the policy compliance.


RetryDuration - Retry duration
string. Default value: 00:02:00.

The Check Azure Policy compliance task performs an asynchronous On-demand evaluation scan of your compliance data of Azure resources. The call returns a 202 Accepted status while the evaluation is ongoing. The RetryDuration input configures the intervals in which the task retries the REST API call to check for the completion of the policy evaluation. The format is hours:minutes:seconds in the following format: hh:mm:ss.

The default is 00:02:00 (two minutes), which is the minumum interval that may be configured.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

Azure Policy allows you to assess and enforce resource compliance against defined IT policies. Use this task in a gate to identify, analyze and evaluate the security risks, and determine the mitigation measures required to reduce the risks.

Note

Can be used only as a gate. This task is not supported in a build or release pipeline.

Screenshot that shows using the task as a gate in a release pipeline.

Requirements

Requirement Description
Pipeline types Classic release
Runs on ServerGate
Demands None
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Deploy