-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoOrganizationSettings
Michael Zanatta edited this page Aug 19, 2026
·
4 revisions
AzDoOrganizationSettings [string] #ResourceName
{
OrganizationName = [String]$OrganizationName
[ AllowPublicProjects = [Boolean]$AllowPublicProjects ]
[ AllowExternalGuestAccess = [Boolean]$AllowExternalGuestAccess ]
[ EnableOAuthAuthentication = [Boolean]$EnableOAuthAuthentication ]
[ EnableSSHAuthentication = [Boolean]$EnableSSHAuthentication ]
[ DisallowAadGuestUserPolicy = [Boolean]$DisallowAadGuestUserPolicy ]
[ Ensure = [String] {'Present', 'Absent'} ]
}- OrganizationName: The name of the Azure DevOps organization. This property is mandatory and serves as the key property for the resource. It is not configurable after initial setup.
- AllowPublicProjects: Whether users can create public (anonymous-access) projects.
- AllowExternalGuestAccess: Whether external guest users (Azure AD guests) can be added to the organization.
- EnableOAuthAuthentication: Whether OAuth authentication is enabled for third-party applications.
- EnableSSHAuthentication: Whether SSH authentication is enabled for Git operations.
- DisallowAadGuestUserPolicy: Whether the Azure AD guest user policy is disallowed.
-
Ensure: Specifies whether the settings should be applied. Valid values are
PresentandAbsent.
This resource manages organization-level security and access settings in Azure DevOps. These settings affect the entire organization and should be managed carefully. Only one instance of this resource should be configured per organization.
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoOrganizationSettings ConfigureOrgSettings {
Ensure = 'Present'
OrganizationName = 'SampleAzDoOrgName'
AllowPublicProjects = $false
AllowExternalGuestAccess = $false
EnableOAuthAuthentication = $true
EnableSSHAuthentication = $true
DisallowAadGuestUserPolicy = $false
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoOrganizationSettings
$properties = @{
OrganizationName = 'SampleAzDoOrgName'
}
Invoke-DscResource -Name 'AzDoOrganizationSettings' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
OrganizationName: SampleAzDoOrgName
}
resources:
- name: Organization Security Settings
type: AzureDevOpsDscNative/AzDoOrganizationSettings
properties:
OrganizationName: $OrganizationName
AllowPublicProjects: false
AllowExternalGuestAccess: false
EnableOAuthAuthentication: true
EnableSSHAuthentication: true
DisallowAadGuestUserPolicy: false
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