-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoWiki
Michael Zanatta edited this page Aug 19, 2026
·
4 revisions
AzDoWiki [string] #ResourceName
{
ProjectName = [String]$ProjectName
WikiName = [String]$WikiName
[ WikiType = [String] {'projectWiki', 'codeWiki'} ]
[ RepositoryName = [String]$RepositoryName ]
[ MappedPath = [String]$MappedPath ]
[ Version = [String]$Version ]
[ Ensure = [String] {'Present', 'Absent'} ]
}- ProjectName: The name of the Azure DevOps project. This property is mandatory and serves as a key property for the resource.
- WikiName: The name of the wiki. This is a key property.
-
WikiType: The type of wiki. Valid values are
projectWiki(a built-in project wiki) andcodeWiki(a wiki sourced from a Git repository). Defaults toprojectWiki. -
RepositoryName: For
codeWikitype, the name of the repository that contains the wiki content. Optional. -
MappedPath: For
codeWikitype, the folder path within the repository that contains the wiki content. Defaults to/. -
Version: For
codeWikitype, the branch or commit to use. Optional. -
Ensure: Specifies whether the wiki should exist. Valid values are
PresentandAbsent.
This resource manages wikis in Azure DevOps projects. Project wikis are automatically created within the project, while code wikis are sourced from content stored in a Git repository.
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoWiki AddProjectWiki {
Ensure = 'Present'
ProjectName = 'MyProject'
WikiName = 'MyProjectWiki'
WikiType = 'projectWiki'
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoWiki
$properties = @{
ProjectName = 'MyProject'
WikiName = 'MyProjectWiki'
}
Invoke-DscResource -Name 'AzDoWiki' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
ProjectName: MyProject,
RepositoryName: MyRepository
}
resources:
- name: Project Wiki
type: AzureDevOpsDscNative/AzDoWiki
dependsOn:
- AzureDevOpsDscNative/AzDoProject/MyProject
properties:
ProjectName: $ProjectName
WikiName: MyProjectWiki
WikiType: projectWiki
Ensure: Present
- name: Code Wiki
type: AzureDevOpsDscNative/AzDoWiki
dependsOn:
- AzureDevOpsDscNative/AzDoGitRepository/MyRepository
properties:
ProjectName: $ProjectName
WikiName: MyCodeWiki
WikiType: codeWiki
RepositoryName: $RepositoryName
MappedPath: /docs
Version: main
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-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