Skip to content

AzDoOrganizationSettings

github-actions[bot] edited this page Aug 19, 2026 · 4 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
OrganizationName Key System.String
AllowExternalGuestAccess Write System.Boolean
AllowPublicProjects Write System.Boolean
DisallowAadGuestUserPolicy Write System.Boolean
EnableOAuthAuthentication Write System.Boolean
EnableSSHAuthentication Write System.Boolean
Ensure Write Ensure Present, Absent
LookupResult Read System.Collections.Hashtable

Description

Examples

Example 1

This example shows how to configure organization-level settings in Azure DevOps.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoOrganizationSettings 'AddAzDoOrganizationSettings'
        {
            Ensure                     = 'Present'
            OrganizationName           = 'test-organization'
            AllowPublicProjects        = $false
            AllowExternalGuestAccess   = $false
            EnableOAuthAuthentication  = $true
            EnableSSHAuthentication    = $true
            DisallowAadGuestUserPolicy = $false
        }
    }
}

Example 2

This example shows how to update organization-level settings in Azure DevOps.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoOrganizationSettings 'UpdateAzDoOrganizationSettings'
        {
            Ensure                     = 'Present'
            OrganizationName           = 'test-organization'
            AllowPublicProjects        = $false
            AllowExternalGuestAccess   = $true
            EnableOAuthAuthentication  = $true
            EnableSSHAuthentication    = $false
            DisallowAadGuestUserPolicy = $true
        }
    }
}

Example 3

This example shows how to reset organization-level settings to their defaults in Azure DevOps.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoOrganizationSettings 'RemoveAzDoOrganizationSettings'
        {
            Ensure           = 'Absent'
            OrganizationName = 'test-organization'
        }
    }
}

Commands

Resources

Clone this wiki locally