# (Tenant) Restrict creation of new Azure DevOps organizations

Restrict creation of new Azure DevOps organizations should be enabled.

Source: https://maester.dev/docs/tests/AZDO.1034

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/sebastianclaesson" title="Sebastian Claesson · Original author"><img src="https://github.com/SebastianClaesson.png" alt="Sebastian Claesson" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/sebastianclaesson">Sebastian Claesson</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Azure DevOps · Organization policies · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AZDO.1034
```

## Overview

Restrict creation of new Azure DevOps organizations **should be** enabled.

#### Prerequisites

- You must have the Azure DevOps Administrator role in your Microsoft Entra tenant.

#### Rationale

Limiting who can create organizations helps maintain governance, control, and compliance across an enterprise Azure DevOps environment.

#### Remediation action

Enable the tenant policy to restrict organization creation.

1. Sign in to your organization (`https://dev.azure.com/{Your_Organization}`).
2. Select Organization settings (gear icon).
3. Select Microsoft Entra ID, and move the toggle to On to restrict organization creation.

#### Allowlist and exceptions

- After enabling the policy, add Microsoft Entra users or groups to the allowlist to permit them to create organizations.
- Use groups for allowlists to avoid identity residency concerns.

**Results:**

When enabled, only users on the allowlist (or Azure DevOps Administrators as permitted) can create new organizations.

#### Related links

* [Learn - Restrict organization creation](https://learn.microsoft.com/azure/devops/organizations/accounts/azure-ad-tenant-policy-restrict-org-creation?view=azure-devops#turn-on-the-policy)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AZDO.1034 |
| Severity | Medium |
| Suite | Maester |
| Product | Azure DevOps |
| Feature | Organization policies |
| Area | Access control |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | None |
| PowerShell test | [Test-AzdoOrganizationCreationRestriction](https://github.com/maester365/maester/blob/main/tests/maester/azure-devops/Test.AZDO.1034.ps1) |
| Services | AzureDevOps |
| Learn more | [https://learn.microsoft.com/azure/devops/organizations/accounts/azure-ad-tenant-policy-restrict-org-creation?view=azure-devops#turn-on-the-policy](https://learn.microsoft.com/azure/devops/organizations/accounts/azure-ad-tenant-policy-restrict-org-creation?view=azure-devops#turn-on-the-policy) |

</details>

## Source

- Test: [`tests/maester/azure-devops/Test.AZDO.1034.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/azure-devops/Test.AZDO.1034.ps1)
- Documentation: [`tests/maester/azure-devops/Test.AZDO.1034.md`](https://github.com/maester365/maester/blob/main/tests/maester/azure-devops/Test.AZDO.1034.md)
