Skip to content

AADConditionalAccessPolicy risk of tenant lock-out #6242

Open
@bartvermeersch

Description

@bartvermeersch

When creating a conditional access policy with a block action, it will typically contain exclude* clauses (eg ExcludeLocations, ExcludeUsers...).

When this policy is created using DSC and the exclude* objects are not found (because they were manually renamed/deleted, or are to be created later on in the DSC), the policy is created without these exclusions. The exclusion objects are skipped, but the policy is created/modified anyhow.

This could lead to tenant lock-out.

So my question: is it a design decision that a DSC resource is applied even if some attributes were failing or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions