Skip to content
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

EXOAuthenticationPolicy: Cannot change resources #4819

Closed
ricmestre opened this issue Jul 1, 2024 · 3 comments · Fixed by #4820 or #5132
Closed

EXOAuthenticationPolicy: Cannot change resources #4819

ricmestre opened this issue Jul 1, 2024 · 3 comments · Fixed by #4820 or #5132

Comments

@ricmestre
Copy link
Contributor

Description of the issue

After creating the policy it's not possible to change it, this is because Set-AuthenticationPolicy doesn't work and always fails with error message Object reference not set to an instance of an object, the solution is to just remove the current policy and re-create it with the new settings.

Microsoft 365 DSC Version

1.24.626.1

Which workloads are affected

Exchange Online

The DSC configuration

EXOAuthenticationPolicy "EXOAuthenticationPolicy-EXOAuthenticationPolicy_1"
        {
            AllowBasicAuthActiveSync           = $False;
            AllowBasicAuthAutodiscover         = $False;
            AllowBasicAuthImap                 = $False;
            AllowBasicAuthMapi                 = $False;
            AllowBasicAuthOfflineAddressBook   = $False;
            AllowBasicAuthOutlookService       = $False;
            AllowBasicAuthPop                  = $False;
            AllowBasicAuthPowerShell           = $False;
            AllowBasicAuthReportingWebServices = $False;
            AllowBasicAuthRpc                  = $False;
            AllowBasicAuthSmtp                 = $False;
            AllowBasicAuthWebServices          = $False;
            Credential                         = $CredsCredential;
            Ensure                             = "Present";
            Identity                           = "EXOAuthenticationPolicy_1";
        }

Verbose logs showing the problem

Object reference not set to an instance of an object

Environment Information + PowerShell Version

Win11/PS5.1
@NikCharlebois
Copy link
Collaborator

Looping in some folks from the EXO Product Group. I would rather have us spend time fixing the Set- cmdlet than working on a workaround.

@ricmestre
Copy link
Contributor Author

Myself included, but at least there's a workaround if it's something that it's not easily fixable.

@NikCharlebois
Copy link
Collaborator

Tagging @Swatyario for visibility

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