EXOAuthenticationPolicy: Cannot change resources
ricmestre opened this issue · 3 comments
ricmestre commented
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 commented
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 commented
Myself included, but at least there's a workaround if it's something that it's not easily fixable.
NikCharlebois commented
Tagging @Swatyario for visibility