AZDO.1005 - IP Conditional Access policy validation.
Overview
Conditional Access Policies should be configured for Microsoft Entra ID-backed organizations.
Rationale: When you sign in to the web portal of a Microsoft Entra ID-backed organization, Microsoft Entra ID always performs validation for any Conditional Access Policies (CAPs) set by tenant administrators.
Remediation action
Enable or configure the appropriate Conditional Access policy in Microsoft Entra to enforce sign-in requirements for your Azure DevOps organization.
- Sign in to your organization.
- Choose Organization settings.
- Select Policies, and then toggle your policy to on or off as needed.
- If the “Enable IP Conditional Access policy Validation” organization policy is enabled, we check IP fencing policies on both web and non-interactive flows, such as non-Microsoft client flows (e.g., using a PAT with git operations).
- Sign-in policies might be enforced for PATs as well. Using PATs to make Microsoft Entra ID calls requires adherence to any sign-in policies that are set. For example, if a sign-in policy requires that a user sign in every seven days, you must also sign in every seven days to continue using PATs for Microsoft Entra ID requests.
We support MFA policies on web flows only. For non-interactive flows, if they don't satisfy the Conditional Access policy, the user isn't prompted for MFA and gets blocked instead. We support IP-fencing Conditional Access policies (CAPs) for both IPv4 and IPv6 addresses. If your IPv6 address is being blocked, ensure that the tenant administrator configured CAPs to allow your IPv6 address. Additionally, consider including the IPv4-mapped address for any default IPv6 address in all CAP conditions.
Results: When you sign in to the web portal of a Microsoft Entra ID-backed organization, Microsoft Entra ID always performs validation for any Conditional Access Policies (CAPs) set by tenant administrators.
Related links
Test Metadata
| Field | Value |
|---|---|
| Test ID | AZDO.1005 |
| Severity | High |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoEnforceAADConditionalAccess |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/organizations/accounts/change-application-access-policies?view=azure-devops#cap-support-on-azure-devops |
| Tags | AZDO, AZDO.1005 |
Source
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1005.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1005.md
