-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoPipeline
github-actions[bot] edited this page Aug 19, 2026
·
4 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| ProjectName | Key | System.String | The Azure DevOps project name. | |
| PipelineName | Required | System.String | The name of the pipeline. | |
| RepositoryName | Required | System.String | The Git repository that contains the YAML file. | |
| YamlPath | Required | System.String | The path to the YAML pipeline definition file. | |
| DefaultBranch | Write | System.String | The default branch for the pipeline. Default is 'main'. | |
| Ensure | Write | Ensure |
Present, Absent
|
|
| FolderPath | Write | System.String | The folder path under which the pipeline is organised. Default is ''. | |
| LookupResult | Read | System.Collections.Hashtable |
The AzDoPipeline class manages YAML pipeline definitions within an Azure DevOps project.
This example shows how to create a pipeline in an Azure DevOps project.
Configuration Example
{
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
node localhost
{
AzDoPipeline 'AddAzDoPipeline'
{
Ensure = 'Present'
ProjectName = 'MyProject'
PipelineName = 'MyBuildPipeline'
RepositoryName = 'MyRepository'
YamlPath = '.azurepipelines/build.yml'
FolderPath = '\'
DefaultBranch = 'main'
}
}
}This example shows how to update a pipeline in an Azure DevOps project.
Configuration Example
{
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
node localhost
{
AzDoPipeline 'UpdateAzDoPipeline'
{
Ensure = 'Present'
ProjectName = 'MyProject'
PipelineName = 'MyBuildPipeline'
RepositoryName = 'MyRepository'
YamlPath = '.azurepipelines/build.yml'
FolderPath = '\Build'
DefaultBranch = 'develop'
}
}
}This example shows how to remove a pipeline from an Azure DevOps project.
Configuration Example
{
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
node localhost
{
AzDoPipeline 'RemoveAzDoPipeline'
{
Ensure = 'Absent'
ProjectName = 'MyProject'
PipelineName = 'MyBuildPipeline'
RepositoryName = 'MyRepository'
YamlPath = '.azurepipelines/build.yml'
}
}
}- 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