Skip to content

AADAuthenticationFlowPolicy - Cannot set SelfServiceSignUpEnabled to $False #6023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Kierow opened this issue Apr 16, 2025 · 0 comments · Fixed by #6051
Closed

AADAuthenticationFlowPolicy - Cannot set SelfServiceSignUpEnabled to $False #6023

Kierow opened this issue Apr 16, 2025 · 0 comments · Fixed by #6051

Comments

@Kierow
Copy link

Kierow commented Apr 16, 2025

Description of the issue

Hello,

For the resource "AADAuthenticationFlowPolicy", the Set-TargetResource method does not work.
If I set SelfServiceSignUpEnabled = $False, I got the following error message;

Image

Could you please fix it?

Sorry, I didn't get the time to test it on the last version, but I didn't see any update for this resource since the version 1.25.129.3.

Microsoft 365 DSC Version

1.25.129.3

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

# Generated with Microsoft365DSC version 1.25.129.3
# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param (
)

Configuration DEV-M365Tenant-AAD-AADAuthenticationFlowPolicy
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.25.129.3'

    Node localhost
    {

        # For information on how to use this resource, please refer to:
        # https://github.com/microsoft/Microsoft365DSC/wiki/AADAuthenticationFlowPolicy
        AADAuthenticationFlowPolicy "AADAuthenticationFlowPolicy"
        {
            ApplicationId            = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint    = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Description              = "Authentication flows policy allows modification of settings related to authentication flows in AAD tenant, such as self-service sign up configuration.";
            DisplayName              = "Authentication flows policy";
            Id                       = "authenticationFlowsPolicy";
            IsSingleInstance         = "Yes";
            SelfServiceSignUpEnabled = $False;
            TenantId                 = $OrganizationName;
        }
    }
}

DEV-M365Tenant-AAD-AADAuthenticationFlowPolicy -ConfigurationData .\ConfigurationData.psd1

Verbose logs showing the problem

Environment Information + PowerShell Version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant