Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

AADAuthenticationFlowPolicy - Cannot set SelfServiceSignUpEnabled to $False

Open Kierow opened this issue 1 year ago • 0 comments

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


Kierow avatar Apr 16 '25 14:04 Kierow