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

EXOHostedContentFilterRule: Cannot update resource #4836

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

EXOHostedContentFilterRule: Cannot update resource #4836

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

Comments

@ricmestre
Copy link
Contributor

Description of the issue

After creating the policy it cannot be updated, this is because the identity on set is being assigned to the same identity of the EXOHostedContentFilterPolicy which is not correct, I'll raise a PR to fix this.

Microsoft 365 DSC Version

1.24.626.1

Which workloads are affected

Exchange Online

The DSC configuration

EXOHostedContentFilterRule "EXOHostedContentFilterRule-EXOHostedContentFilterRule_1"
        {
            ApplicationId             = $EXOApplicationId;
            CertificateThumbprint     = $EXOCertThumbprint;
            Comments                  = "Applies to all users, except when member of HR group";
            Enabled                   = $True;
            Ensure                    = "Present";
            ExceptIfSentToMemberOf    = @("LegalTeam@$OrganizationName");
            HostedContentFilterPolicy = "EXOHostedContentFilterPolicy_1";
            Identity                  = "EXOHostedContentFilterRule_1";
            RecipientDomainIs         = @("contoso.com");
            TenantId                  = $OrganizationName;
        }

Verbose logs showing the problem

Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'EXOHostedContentFilterPolicy_1' couldn't be found on 'REDACTED.PROD.OUTLOOK.COM'.

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