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 remove policy if associated HostedOutboundSpamFilterPolicy is not present #4847

Closed
ricmestre opened this issue Jul 8, 2024 · 0 comments · Fixed by #4849

Comments

@ricmestre
Copy link
Contributor

Description of the issue

This is similar to the issue as reported on #4846, the rule cannot be removed if the associated policy is not present anymore and the fix will be similar as well.

Microsoft 365 DSC Version

1.24.703.1

Which workloads are affected

Exchange Online

The DSC configuration

EXOHostedOutboundSpamFilterRule "EXOHostedOutboundSpamFilterRule-EXOHostedOutboundSpamFilterRule_1"
        {
            ApplicationId         = $EXOApplicationId;
            CertificateThumbprint = $EXOCertThumbprint;
            Ensure                = "Absent";
            Identity              = "EXOHostedOutboundSpamFilterRule_1";
            TenantId              = $OrganizationName;
        }

Verbose logs showing the problem

PowerShell DSC resource MSFT_EXOHostedOutboundSpamFilterRule  failed to execute Set-TargetResource functionality with error message: Error attempting to create EXOHostedOutboundSpamFilterRule {EXOHostedOutboundSpamFilterRule_1}. The specified HostedOutboundSpamFilterPolicy {EXOHostedOutboundSpamFilterPolicy_1} doesn't exist. Make sure you either create it first or specify a valid policy.

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