-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoProject
Michael Zanatta edited this page Aug 18, 2026
·
4 revisions
AzDoProject [string] #ResourceName
{
ProjectName = [String]$ProjectName
[ Ensure = [String] {'Present', 'Absent'} ]
[ ProjectDescription = [String]$ProjectDescription ]
[ SourceControlType = [String] {'Git', 'Tfvc'} ]
[ ProcessTemplate = [String] {'Agile', 'Scrum', 'CMMI', 'Basic'} ]
[ Visibility = [String] {'Public', 'Private'} ]
}- ProjectName: The name of the Azure DevOps project. This property is mandatory and serves as a key property for the resource.
- ProjectDescription: A description for the Azure DevOps project.
-
SourceControlType: The type of source control (
GitorTfvc). Defaults toGit. -
ProcessTemplate: The process template to use (
Agile,Scrum,CMMI,Basic). Defaults toAgile. -
Visibility: The visibility of the project (
PublicorPrivate). Defaults toPrivate. -
Ensure: Specifies whether the project should exist. Valid values are
PresentandAbsent.
This resource manages Azure DevOps projects using Desired State Configuration (DSC). It allows you to define project properties such as source control type, process template, and visibility, ensuring the project is configured to the desired state.
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoProject AddProject {
Ensure = 'Present'
ProjectName = 'MySampleProject'
ProjectDescription = 'This is a sample Azure DevOps project.'
SourceControlType = 'Git'
ProcessTemplate = 'Agile'
Visibility = 'Private'
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoProject
# Ensure is not required
$properties = @{
ProjectName = 'MySampleProject'
ProjectDescription = 'This is a sample Azure DevOps project'
SourceControlType = 'Git'
ProcessTemplate = 'Agile'
Visibility = 'Private'
}
Invoke-DSCResource -Name 'AzDoProject' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'# Remove the Azure Devops Project and ensure that it is not recreated.
$properties = @{
ProjectName = 'MySampleProject'
Ensure = 'Absent'
}
Invoke-DscResource -Name 'AzDoProject' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
ProjectName: MySampleProject,
ProjectDescription: This is a sample Azure DevOps project
}
resources:
- name: My Sample Project
type: AzureDevOpsDscNative/AzDoProject
properties:
ProjectName: $ProjectName
ProjectDescription: $ProjectDescription
SourceControlType: Git
ProcessTemplate: Agile
Visibility: Private
Ensure: PresentLCM Initialization:
$params = @{
AzureDevopsOrganizationName = "SampleAzDoOrgName"
ConfigurationDirectory = "C:\Datum\DSCOutput\"
ConfigurationUrl = 'https://configuration-path'
JITToken = 'SampleJITToken'
Mode = 'Set'
AuthenticationType = 'ManagedIdentity'
ReportPath = 'C:\Datum\DSCOutput\Reports'
}
Invoke-AzDoLCM @params- 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