Hello,
this is a great post and it helped me a lot with getting our Exchange on premise users' calendars into Teams. But I wonder what about room and other resources accounts. If I sync a resource AD accounts of a room to Azure AD, it gets synchronized correctly. But since it does not require a license for Exchange online (and the license for it is removed in O365 admin), the Exchange online still creates a mailbox for it. Eventhough the AD account has its MsExchMailboxGuid filled. And now two mailboxes exists in Exchange online and Exchange on premise. We would like the Teams to use the on premise calendar of the room but it keeps using the online one.
If I run
Invoke-RestMethod -Uri "https://outlook.office365.com/autodiscover/autodiscover.json?Email=email address removed for privacy reasons&Protocol=EWS&RedirectCount=5" -UserAgent Teams
it returns
https://outlook.office365.com/EWS/Exchange.asmx
Which is wrong because it should be our on premise URL.
Does anyone know how to solve this?
Regards
Petrolej