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

EXOCASMailboxSettings fails if there are mailboxes with the same name #2117

Closed
ajkenah opened this issue Jul 20, 2022 · 0 comments · Fixed by #2118 or #2123
Closed

EXOCASMailboxSettings fails if there are mailboxes with the same name #2117

ajkenah opened this issue Jul 20, 2022 · 0 comments · Fixed by #2118 or #2123
Assignees
Labels
Bug Something isn't working Exchange Online

Comments

@ajkenah
Copy link

ajkenah commented Jul 20, 2022

Details of the scenario you tried and the problem that is occurring

I have multiple email accounts with the same mailbox "name", but in different domains. The Export-TargetResource function in 'MSFT_EXOCASMailboxSettings.psm1' file fails when it tries to export one of these mailboxes. The resulting $result (from Get-TargetResource) contains multiple values instead of a single value per parameter. I suspect this issue could also impact updating or adding new resources with the same name but in different domains but I'm not sure.

Verbose logs showing the problem

Suggested solution to the issue

Can you please change the value for the $mailboxName variable (under the Export-TargetResource function) from "$mailbox.Name" to "$mailbox.UserPrincipalName". The Name value is not a unique identifier for a mailbox in EXO and shouldn't be used.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

N/A

The operating system the target node is running

N/A

Version of the DSC module that was used ('dev' if using current dev branch)

'1.22.713.1'

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
2 participants