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

Error on EXOHostedContentFilterRule in v1.24.228.1 - The operation couldn't be performed because object 'contos.com' couldn't be found on #4401

Closed
cdenders opened this issue Mar 1, 2024 · 2 comments · Fixed by #4405 or #4447
Assignees
Labels
Bug Something isn't working Exchange Online V1.24.228.1 Version 1.24.228.1

Comments

@cdenders
Copy link

cdenders commented Mar 1, 2024

Export-M365DSCConfiguration -Components @("EXOAntiPhishPolicy", "EXOAntiPhishRule", "EXOHostedContentFilterRule", "EXOHostedOutboundSpamFilterPolicy", "EXOHostedOutboundSpamFilterRule", "EXOTransportRule") -Credential $SourceCredential -Path C:\Dsc

System.Exception: Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'contos.com' couldn't be found on 'YT3PR01A01DC008.CANPR01A001.PROD.OUTLOOK.COM'. "Error calling {Get-HostedContentFilterRule}"

Yet if I just execute Get-HostedContentFilterRule in powershell, it shows my rule. So why does it give an error when I specify it as part of the export?

@cdenders cdenders changed the title Error on EXOHostedContentFilterRule in v1.24.228.1 Error on EXOHostedContentFilterRule in v1.24.228.1 - The operation couldn't be performed because object 'contos.com' couldn't be found on Mar 1, 2024
@cdenders
Copy link
Author

cdenders commented Mar 1, 2024

If it helps, it is seeing my rule named "xxx Spam Filter rules":

[3/6] Extracting [EXOHostedContentFilterRule] using {Credentials}...
|---[1/1] xxx Spam Filter rules Error Log created at {file://C:/dsc/37496-M365DSC-ErrorLog.log}

@malauter malauter added Bug Something isn't working Exchange Online V1.24.228.1 Version 1.24.228.1 labels Mar 4, 2024
@malauter malauter self-assigned this Mar 4, 2024
@malauter
Copy link
Member

malauter commented Mar 4, 2024

Seems to be a bug in the get method. It is using the name of the filter policy instead of the rule. I will work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Exchange Online V1.24.228.1 Version 1.24.228.1
Projects
None yet
2 participants