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

EXOHostedOutboundSpamFilterPolicy NOT FOUND in target #2492

Closed
upaneshpatel opened this issue Nov 4, 2022 · 5 comments · Fixed by #2497 or #2515
Closed

EXOHostedOutboundSpamFilterPolicy NOT FOUND in target #2492

upaneshpatel opened this issue Nov 4, 2022 · 5 comments · Fixed by #2497 or #2515
Assignees
Labels
Bug Something isn't working Exchange Online

Comments

@upaneshpatel
Copy link

I'm trying to replicate policies to test tenant with EXOHostedOutboundSpamFilterPolicy. There are 2 additional policies besides "Default" which I want to replicate. Though when DSC tries to create the new policy in the target it give below error.

If the policy doesn't exists, shouldn't DSC try to create it? Obviously it doesn't exists in the target so I'm not sure why its trying to look for it instead of creating it?

Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object 'Outbound SPAM max' couldn't be found on 'DM5PR04A09DC003.NAMPR04A009.PROD.OUTLOOK.COM'.

@andikrueger
Copy link
Collaborator

Please provide the following information so that we can have a closer look:

  • Verbose logs showing the problem
  • Suggested solution to the issue
  • The DSC configuration that is used to reproduce the issue (as detailed as possible)
    • insert configuration here
  • The operating system the target node is running
  • Version of the DSC module that was used ('dev' if using current dev branch)

@upaneshpatel
Copy link
Author

Hi Andi - I'm replicate my production o365 tenant to a personal o365 tenant for testing before we deploy it to other production o365 tenant.

So some exchange policies get created fine as expected but others don't with these errors.

Please let me know if there are other details I can provide.

image

image

@malauter malauter added Bug Something isn't working and removed Pending Information labels Nov 4, 2022
@malauter malauter self-assigned this Nov 4, 2022
@malauter
Copy link
Member

malauter commented Nov 4, 2022

Root-cause identified. I will work on a fix next week.

@upaneshpatel
Copy link
Author

Thank you.

I had the same error for "EXOAcceptedDomain" - The operation couldn't be performed because object 'mibioresearch.com' couldn't be found on

So the fix can be applied to both resources.

@malauter
Copy link
Member

malauter commented Nov 7, 2022

@upaneshpatel I fixed this for EXOHostedOutboundSpamFilterPolicy in the linked PR. It now supports also New- and Remove- operations.
For EXOAcceptedDomains, it is a little bit different. Since there is no New-/Remove-AcceptedDomain cmdlet in Exchange Online, we cannot add this to the DSC resource.

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
Projects
None yet
3 participants