-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoEnvironmentApproval
github-actions[bot] edited this page Aug 19, 2026
·
4 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| ProjectName | Key | System.String | ||
| Approvers | Required | System.String[] | ||
| EnvironmentName | Required | System.String | ||
| AllowApproverToSelf | Write | System.Boolean | ||
| Ensure | Write | Ensure |
Present, Absent
|
|
| Instructions | Write | System.String | ||
| RequiredApproverCount | Write | System.UInt32 | ||
| TimeoutInMinutes | Write | System.UInt32 | ||
| LookupResult | Read | System.Collections.Hashtable |
This example shows how to configure approval gates on a pipeline environment in an Azure DevOps project.
Configuration Example
{
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
node localhost
{
AzDoEnvironmentApproval 'AddAzDoEnvironmentApproval'
{
Ensure = 'Present'
ProjectName = 'MyProject'
EnvironmentName = 'Production'
Approvers = @('approver@example.com')
RequiredApproverCount = 1
AllowApproverToSelf = $false
TimeoutInMinutes = 1440
Instructions = 'Please review and approve the production deployment.'
}
}
}This example shows how to update approval gates on a pipeline environment in an Azure DevOps project.
Configuration Example
{
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
node localhost
{
AzDoEnvironmentApproval 'UpdateAzDoEnvironmentApproval'
{
Ensure = 'Present'
ProjectName = 'MyProject'
EnvironmentName = 'Production'
Approvers = @('approver1@example.com', 'approver2@example.com')
RequiredApproverCount = 2
AllowApproverToSelf = $false
TimeoutInMinutes = 2880
Instructions = 'At least 2 approvals required for production deployments.'
}
}
}This example shows how to remove approval gates from a pipeline environment in an Azure DevOps project.
Configuration Example
{
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
node localhost
{
AzDoEnvironmentApproval 'RemoveAzDoEnvironmentApproval'
{
Ensure = 'Absent'
ProjectName = 'MyProject'
EnvironmentName = 'Production'
Approvers = @()
}
}
}- Assert-BoundParameter
- Assert-ElevatedUser
- Assert-IPAddress
- Assert-Module
- AzDoAPI_0_ProjectCache
- AzDoAPI_1_GroupCache
- AzDoAPI_2_UserCache
- AzDoAPI_3_GroupMemberCache
- AzDoAPI_4_GitRepositoryCache
- AzDoAPI_5_PermissionsCache
- AzDoAPI_6_ServicePrinciple
- AzDoAPI_7_IdentitySubjectDescriptors
- AzDoAPI_8_ProjectProcessTemplates
- AzDoAPI_9_DevOpsClassificationNodes
- Compare-DscParameterState
- Compare-ResourcePropertyState
- ConvertFrom-DscResourceInstance
- ConvertTo-Base64String
- ConvertTo-CimInstance
- ConvertTo-HashTable
- Find-Certificate
- Format-Path
- Get-AzDevOpsOperation
- Get-AzDevOpsServicesApiUri
- Get-AzDevOpsServicesUri
- AzDoAgentPool
- AzDoAgentPoolPermission
- AzDoAgentQueue
- AzDoAreaNodes
- AzDoAreaPermission
- AzDoArtifactFeed
- AzDoArtifactFeedPermission
- AzDoArtifactFeedSettings
- AzDoArtifactFeedView
- AzDoAuditStream
- AzDoBranchPolicy
- AzDoCheckConfiguration
- AzDoDeploymentGroup
- AzDoEnvironmentApproval
- AzDoEnvironmentPermission
- AzDoExtension
- AzDoGitPermission
- AzDoGitRepository
- AzDoGroupMember
- AzDoGroupPermission
- AzDoIterationNodes
- AzDoIterationPermission
- AzDoNotificationSubscription
- AzDoOrganizationGroup
- AzDoOrganizationSettings
- AzDoPipeline
- AzDoPipelineEnvironment
- AzDoPipelinePermission
- AzDoPipelineSettings
- AzDoProcess
- AzDoProcessPermission
- AzDoProject
- AzDoProjectGroup
- AzDoProjectPermission
- AzDoProjectServices
- AzDoRepositorySettings
- AzDoSecurityNamespacePermission
- AzDoServiceConnection
- AzDoServiceConnectionPermission
- AzDoServiceHook
- AzDoTaskGroup
- AzDoTeam
- AzDoTeamMember
- AzDoTeamSettings
- AzDoUserEntitlement
- AzDoVariableGroup
- AzDoVariableGroupPermission
- AzDoWiki
- AzDoWIPTags