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

EXOHostedOutboundSpamFilterRule: Cannot update resource #4838

Closed
ricmestre opened this issue Jul 3, 2024 · 0 comments · Fixed by #4839 or #4842
Closed

EXOHostedOutboundSpamFilterRule: Cannot update resource #4838

ricmestre opened this issue Jul 3, 2024 · 0 comments · Fixed by #4839 or #4842

Comments

@ricmestre
Copy link
Contributor

Description of the issue

After creating the rule it's not possible to update it, this is because the Enabled property is included during the update which causes an error although it's not visible without the verbose parameter. I'll raise a PR to fix this.

Note that there are other resources with exactly the same issue, I'll raise separate issues for each one.

Microsoft 365 DSC Version

1.24.626.1

Which workloads are affected

Exchange Online

The DSC configuration

EXOHostedOutboundSpamFilterRule "EXOHostedOutboundSpamFilterRule-EXOHostedOutboundSpamFilterRule_1"
        {
            Comments                       = "Does not apply to Executives. Updated";
            Credential                     = $Credscredential;
            Enabled                        = $True;
            Ensure                         = "Present";
            ExceptIfFrom                   = @("AdeleV@$OrganizationName");
            FromMemberOf                   = @("executives@$OrganizationName");
            HostedOutboundSpamFilterPolicy = "EXOHostedOutboundSpamFilterPolicy_1";
            Identity                       = "EXOHostedOutboundSpamFilterRule_1";
            Priority                       = 0;
        }

Verbose logs showing the problem

None, resource just isn't updated

Environment Information + PowerShell Version

Win11/PS5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant