-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoProjectServices
Michael Zanatta edited this page Aug 19, 2026
·
4 revisions
AzDoProjectServices [string] #ResourceName
{
ProjectName = [String]$ProjectName
[ GitRepositories = [String]$GitRepositories { 'Enabled' | 'Disabled' } ]
[ WorkBoards = [String]$WorkBoards { 'Enabled' | 'Disabled' } ]
[ BuildPipelines = [String]$BuildPipelines { 'Enabled' | 'Disabled' } ]
[ TestPlans = [String]$TestPlans { 'Enabled' | 'Disabled' } ]
[ AzureArtifact = [String]$AzureArtifact { 'Enabled' | 'Disabled' } ]
[ Ensure = [String] {'Present', 'Absent'} ]
}- ProjectName: The name of the Azure DevOps project. This property is mandatory and serves as the key property for the resource.
-
GitRepositories: Specifies whether Git repositories are enabled or disabled. Valid values are
EnabledorDisabled. Default isEnabled. -
WorkBoards: Specifies whether work boards are enabled or disabled. Valid values are
EnabledorDisabled. Default isEnabled. -
BuildPipelines: Specifies whether build pipelines are enabled or disabled. Valid values are
EnabledorDisabled. Default isEnabled. -
TestPlans: Specifies whether test plans are enabled or disabled. Valid values are
EnabledorDisabled. Default isEnabled. -
AzureArtifact: Specifies whether Azure artifacts are enabled or disabled. Valid values are
EnabledorDisabled. Default isEnabled. - Ensure: Specifies whether the project services configuration should be applied. Defaults to 'Present'.
This resource is used to manage Azure DevOps project services using Desired State Configuration (DSC). It allows you to define the properties of an Azure DevOps project and ensures that the services are configured according to those properties.
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzDevOpsDsc'
Node localhost {
AzDoProjectServices ProjectServices {
Ensure = 'Present'
ProjectName = 'SampleProject'
GitRepositories = 'Enabled'
WorkBoards = 'Enabled'
BuildPipelines = 'Enabled'
TestPlans = 'Enabled'
AzureArtifact = 'Enabled'
}
}
}
ExampleConfig
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoProjectServices
# Ensure is not required
$properties = @{
ProjectName = 'SampleProject'
GitRepositories = 'Enabled'
WorkBoards = 'Enabled'
BuildPipelines = 'Enabled'
TestPlans = 'Enabled'
AzureArtifact = 'Enabled'
}
Invoke-DSCResource -Name 'AzDoProjectServices' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
"PlaceHolder2": "PlaceHolder"
}
resources:
- name: Sample Project Services
type: AzureDevOpsDscNative/AzDoProjectServices
properties:
ProjectName: SampleProject
GitRepositories: Enabled
WorkBoards: Enabled
BuildPipelines: Enabled
TestPlans: Enabled
AzureArtifact: EnabledLCM Initialization:
$params = @{
AzureDevopsOrganizationName = "SampleAzDoOrgName"
ConfigurationDirectory = "C:\Datum\DSCOutput\"
ConfigurationUrl = 'https://configuration-path'
JITToken = 'SampleJITToken'
Mode = 'Set'
AuthenticationType = 'ManagedIdentity'
ReportPath = 'C:\Datum\DSCOutput\Reports'
}
Invoke-DscPipelineRunner @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