Microsoft Teams and on-premises mailboxes: Part 2 - Teams Calendar App Troubleshooting

Published Mar 24 2021 08:00 AM 3,526 Views

This blog post is part 2 of the three-part series on Microsoft Teams and on-premises Exchange mailboxes.

 

Microsoft Teams and on-premises mailboxes: Part 1 – How do Teams and Exchange Server interact?


Teams Backend AutoDiscover
The Teams Backend Services use AutoDiscover Version 2 to find a user's Exchange mailbox on behalf of a Teams client. This AutoDiscover V2 call is an anonymous call for performance reasons to determine the Exchange target URL for the mailbox sought as quickly as possible. As already mentioned in the previous blog post, the Teams Backend Services query the AutoDiscover endpoint of Exchange Online first. If Exchange Online does not host the mailbox, the services receive an HTTP redirect to search for the local Exchange organization's endpoint.


The detailed steps are:

1. The Teams Backend Services query the Exchange Online AutoDiscover endpoint for the URL for the EWS protocol using an AutoDiscover V2 JSON query
https://outlook.office365.com/autodiscover/autodiscover.json?Email=John.Doe@varunagroup.de&Protocol=...

2. Exchange Online verifies the recipient type for the email address contained in the JSON query and replies with one of the following options:

a. RecipientType: Mailbox
https://outlook.office365.com/EWS/Exchange.asmx

The mailbox is an Exchange Online mailbox. No further steps are necessary. The Teams Services have the information they need to access the users' calendar.

 

b. RecipientType: MailUser
Exchange Online determines the AutoDiscover endpoint based on the ExternalEmailAddress attribute; in this example autodiscover.varunagroup.de

 

3. Exchange Online replies with an HTTP 302 redirect to autodiscover.varunagroup.de


4. The Teams Backend Services send an AutoDiscover V2 JSON query for the URL for the EWS protocol
https://autodiscover.varunagroup.de/autodiscover/autodiscover.json?Email=John.Doe@varunagroup.de&Pro...


5. On-premises Exchange Server replies with an external EWS URL of a virtual Exchange Web Services virtual directory
Example: {"Protocol":"EWS","Url":"https://mail.varunagroup.de/EWS/Exchange.asmx"}


6. The Teams Backend Services use the received URL to establish a connection to the on-premises Exchange organization

 

But what do the Teams Backend Services exactly, after receiving the EWS URL? The services perform the following steps:

  • Open an HTTPS connection to the on-premises EWS URL and perform an OAuth authentication using the registered services principal
  • Send an EWS calendar query
  • Receive the Exchange Web Services response
  • Send the parsed calendar data to the Teams clients' calendar app for further use

As you can see, accessing the calendar of a user mailbox hosted in an on-premises Exchange organization is complex. This complexity can lead to errors.


How can you now perform an error analysis for the AutoDiscover process and the subsequent calendar access? Let's start with AutoDiscover.

 

Troubleshooting AutoDiscover
Since Microsoft Teams Backend Services perform all AutoDiscover and other client accesses, there are no viable troubleshooting steps on the local Teams client. The client itself must have access to the internet and proper DNS name resolution working.


Because AutoDiscover V2 uses anonymous access, you can test it for any email address. This self-test helps you as an IT administrator check AutoDiscover for a users' email address that might not work correctly. You can check the AutoDiscover response using PowerShell or with the help of a browser.

 

PowerShell
Run the Invoke-RestMethod cmdlet with the following Uri-Strings for EWS and REST protocol


Invoke-RestMethod -Uri 'https://outlook.office365.com/autodiscover/autodiscover.json?Email=John.Doe@varunagroup.de&Protocol=...'


Invoke-RestMethod -Uri 'https://outlook.office365.com/autodiscover/autodiscover.json?Email=John.Doe@varunagroup.de&Protocol=...'


Out-of-Office information and calendar-based presence status requests use the on-premises REST-endpoint.


Ensure that there are no unsupported characters in the Uri.


Browser
You can test and query the AutoDiscover endpoint using the following URLs


https://outlook.office365.com/autodiscover/autodiscover.json?Email=john.doe@varunagroup.de&Protocol=...
https://outlook.office365.com/autodiscover/autodiscover.json?Email=john.doe@varunagroup.de&Protocol=...


For an on-premises mailbox, you receive an AutoDiscover response from your on-premises Exchange Server, like the one shown in the following screenshot.

AutoDiscover response.png

 

Perform a Fiddler trace for a more detailed error analysis when executing the HTTPS queries. The trace results help you to identify other possible sources of error, i.e., a failed TLS handshake.
If an error occurs while determining the AutoDiscover information, this does not automatically imply a problem. Check the following options:

  • The AutoDiscover query terminates with a timeout
    • Is the HTTPS access to your Exchange organization restricted to the remote IP address ranges of Microsoft 365?
    • Maybe the Exchange Server systems have a performance problem and cannot respond promptly?
  • You receive a "User Not Found"-response
    • Is the user account excluded from the Azure AD Connect synchronization and does not exist as a "Mail User" object in Exchange Online?
  • The response does not contain the expected EWS or REST URL
    • The mailbox is an on-premises mailbox, but the response contains the Exchange Online endpoint

https://outlook.office365.com/EWS/Exchange.asmx

Most likely, the user has an additional mailbox in Exchange Online. Resolve the double mailbox situation.

 

    • The response contains a URL that seems to be an internal URL, i.e.,

https://exch01.varunagroup.local/EWS/Exchange.asmx 

The ExternalUrl attribute configuration is not correct for all virtual directories.

 

    • You use bound namespaces, the user mailbox location is AD site EMEA, but the response contains an URL of a different site, i.e.,

https://mail.apac.varunagroup.de/EWS/Exchange.asmx

Expected URL: https://mail.emea.varunagroup.de/EWS/Exchange.asmx

 

Until March 2021, AutoDiscover V2 is not AD site-aware. The March 2021 cumulative updates for Exchange Server 2016 and 2019 fix this issue. Read more about the updates in this blog post.

 

  • DNS Name resolution fails for the email address target domain
    • There is no DNS resource record for AutoDiscover in the internet-facing DNS zone

The next steps to identify connection problems lead us to the on-premises Exchange servers. With a local network trace, you can determine whether there are TLS handshake errors. Please note that your Exchange Server systems must be configured correctly for TLS 1.2. The TLS 1.2 configuration might require manual steps if you use Exchange Server 2016 or Exchange Server 2013.


If there are no errors in the TLS handshake, you must check the Exchange server's log files. Checking the log files on the local Exchange servers requires several steps. Depending on your local Exchange organization's size and the number of Exchange Servers, this check can be very complicated.


The following diagram shows the participating Exchange Server components of a single Exchange Server for incoming connections from the Teams Backend Services to the Exchange Web Services endpoint.

Teams Backend Services.png

 

The IIS Default website receives the incoming HTTPS connection from the Teams Services and passes it to the Frontend Proxy component, i.e., EWS or REST. You find information about those two connections in the W3SVC1 (1) and the HttpProxy logs of the targeted protocol (2). The Frontend Proxy component proxies the connection to the Exchange Backend website of the Exchange Server, where the active database copy containing the user mailbox is mounted. This is not necessarily the same Exchange Server accepting the Frontend connection. You find information about this proxied connection in the W2SVC2 IIS logs (3) and the queried Exchange service (4). Depending on the Exchange protocol you want to troubleshoot, you must check the AutoDiscover, EWS, or REST log files.

 

Troubleshooting Calendar App
Now that you know how to deal with the AutoDiscover process's errors, it's time to take a look at the Teams Calendar app.


Suppose the access to AutoDiscover works without errors. There is a high probability that the access to the Exchange Web Services will also work, and therefore the calendar app in the Teams client will show calendar information.


However, if the Teams client does not display the calendar, check the following:

  • Can the EWS URL determined by AutoDiscover, is the hostname resolvable in the domain's external DNS zone, and can it be reached from the Internet via HTTPS?
    • Use a browser to connect to the EWS URL and use Fiddler to identify any connection-based issues
      The EWS endpoint must reply with am HTTP 401 status code
  • Use the Remote Connectivity Analyzer to perform a Teams Calendar Access Tab Test

calendar test.png

http://bit.ly/TeamsCalTest

 

In the next blog post, we will take a closer look at calendar delegate situations.

 

Links

Thomas Stensitzki is a leading technology consultant focusing on Microsoft messaging and collaboration technologies and the owner of Granikos GmbH & Co. KG. He is an MVP for Office Apps & Services and an MCT Regional Lead. As a user group organizer, he hosts the Microsoft Teams User Group Berlin and the Exchange User Group DACH.

Twitter: https://twitter.com/stensitzki
Blog: https://JustCantGetEnough.Granikos.eu
Teams User Group: https://TeamsUserGroup.berlin
Exchange User Group: https://exusg.de


To write your own blog on a topic of interest as a guest blogger in the Microsoft Teams Community, please submit your idea here: https://aka.ms/TeamsCommunityBlogger

%3CLINGO-SUB%20id%3D%22lingo-sub-2232602%22%20slang%3D%22en-US%22%3EMicrosoft%20Teams%20and%20on-premises%20mailboxes%3A%20Part%202%20-%20Teams%20Calendar%20App%20Troubleshooting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2232602%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20blog%20post%20is%20part%202%20of%20the%20three-part%20series%20on%20Microsoft%20Teams%20and%20on-premises%20Exchange%20mailboxes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams-community-blog%2Fmicrosoft-teams-and-on-premises-mailboxes-part-1-how-do-teams%2Fba-p%2F2229851%22%20target%3D%22_blank%22%3EMicrosoft%20Teams%20and%20on-premises%20mailboxes%3A%20Part%201%20%E2%80%93%20How%20do%20Teams%20and%20Exchange%20Server%20interact%3F%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3ETeams%20Backend%20AutoDiscover%3C%2FFONT%3E%3C%2FSTRONG%3E%3CBR%20%2F%3EThe%20Teams%20Backend%20Services%20use%20AutoDiscover%20Version%202%20to%20find%20a%20user's%20Exchange%20mailbox%20on%20behalf%20of%20a%20Teams%20client.%20This%20AutoDiscover%20V2%20call%20is%20an%20anonymous%20call%20for%20performance%20reasons%20to%20determine%20the%20Exchange%20target%20URL%20for%20the%20mailbox%20sought%20as%20quickly%20as%20possible.%20As%20already%20mentioned%20in%20the%20previous%20blog%20post%2C%20the%20Teams%20Backend%20Services%20query%20the%20AutoDiscover%20endpoint%20of%20Exchange%20Online%20first.%20If%20Exchange%20Online%20does%20not%20host%20the%20mailbox%2C%20the%20services%20receive%20an%20HTTP%20redirect%20to%20search%20for%20the%20local%20Exchange%20organization's%20endpoint.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThe%20detailed%20steps%20are%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E1.%20The%20Teams%20Backend%20Services%20query%20the%20Exchange%20Online%20AutoDiscover%20endpoint%20for%20the%20URL%20for%20the%20EWS%20protocol%20using%20an%20AutoDiscover%20V2%20JSON%20query%20%3CBR%20%2F%3E%3CEM%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DEWS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DEWS%3C%2FA%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E2.%20Exchange%20Online%20verifies%20the%20recipient%20type%20for%20the%20email%20address%20contained%20in%20the%20JSON%20query%20and%20replies%20with%20one%20of%20the%20following%20options%3A%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Ea.%20RecipientType%3A%20%3CSTRONG%3EMailbox%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2FEWS%2FExchange.asmx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2FEWS%2FExchange.asmx%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3EThe%20mailbox%20is%20an%20Exchange%20Online%20mailbox.%20No%20further%20steps%20are%20necessary.%20The%20Teams%20Services%20have%20the%20information%20they%20need%20to%20access%20the%20users'%20calendar.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Eb.%20RecipientType%3A%20%3CSTRONG%3EMailUser%3C%2FSTRONG%3E%3CBR%20%2F%3EExchange%20Online%20determines%20the%20AutoDiscover%20endpoint%20based%20on%20the%20%3CEM%3EExternalEmailAddress%3C%2FEM%3E%20attribute%3B%20in%20this%20example%20%3CEM%3Eautodiscover.varunagroup.de%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E3.%20Exchange%20Online%20replies%20with%20an%20HTTP%20302%20redirect%20to%20autodiscover.varunagroup.de%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CBR%20%2F%3E4.%20The%20Teams%20Backend%20Services%20send%20an%20AutoDiscover%20V2%20JSON%20query%20for%20the%20URL%20for%20the%20EWS%20protocol%3CBR%20%2F%3E%3CEM%3E%3CA%20href%3D%22https%3A%2F%2Fautodiscover.varunagroup.de%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DEWS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fautodiscover.varunagroup.de%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DEWS%3C%2FA%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CBR%20%2F%3E5.%20On-premises%20Exchange%20Server%20replies%20with%20an%20external%20EWS%20URL%20of%20a%20virtual%20Exchange%20Web%20Services%20virtual%20directory%20%3CBR%20%2F%3EExample%3A%20%7B%22Protocol%22%3A%22EWS%22%2C%22Url%22%3A%22%3CA%20href%3D%22https%3A%2F%2Fmail.varunagroup.de%2FEWS%2FExchange.asmx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmail.varunagroup.de%2FEWS%2FExchange.asmx%3C%2FA%3E%22%7D%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CBR%20%2F%3E6.%20The%20Teams%20Backend%20Services%20use%20the%20received%20URL%20to%20establish%20a%20connection%20to%20the%20on-premises%20Exchange%20organization%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20what%20do%20the%20Teams%20Backend%20Services%20exactly%2C%20after%20receiving%20the%20EWS%20URL%3F%20The%20services%20perform%20the%20following%20steps%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOpen%20an%20HTTPS%20connection%20to%20the%20on-premises%20EWS%20URL%20and%20perform%20an%20OAuth%20authentication%20using%20the%20registered%20services%20principal%3C%2FLI%3E%0A%3CLI%3ESend%20an%20EWS%20calendar%20query%3C%2FLI%3E%0A%3CLI%3EReceive%20the%20Exchange%20Web%20Services%20response%3C%2FLI%3E%0A%3CLI%3ESend%20the%20parsed%20calendar%20data%20to%20the%20Teams%20clients'%20calendar%20app%20for%20further%20use%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EAs%20you%20can%20see%2C%20accessing%20the%20calendar%20of%20a%20user%20mailbox%20hosted%20in%20an%20on-premises%20Exchange%20organization%20is%20complex.%20This%20complexity%20can%20lead%20to%20errors.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EHow%20can%20you%20now%20perform%20an%20error%20analysis%20for%20the%20AutoDiscover%20process%20and%20the%20subsequent%20calendar%20access%3F%20Let's%20start%20with%20AutoDiscover.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3ETroubleshooting%20AutoDiscover%3C%2FSTRONG%3E%3C%2FFONT%3E%3CBR%20%2F%3ESince%20Microsoft%20Teams%20Backend%20Services%20perform%20all%20AutoDiscover%20and%20other%20client%20accesses%2C%20there%20are%20no%20viable%20troubleshooting%20steps%20on%20the%20local%20Teams%20client.%20The%20client%20itself%20must%20have%20access%20to%20the%20internet%20and%20proper%20DNS%20name%20resolution%20working.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBecause%20AutoDiscover%20V2%20uses%20anonymous%20access%2C%20you%20can%20test%20it%20for%20any%20email%20address.%20This%20self-test%20helps%20you%20as%20an%20IT%20administrator%20check%20AutoDiscover%20for%20a%20users'%20email%20address%20that%20might%20not%20work%20correctly.%20You%20can%20check%20the%20AutoDiscover%20response%20using%20PowerShell%20or%20with%20the%20help%20of%20a%20browser.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPowerShell%3C%2FSTRONG%3E%3CBR%20%2F%3ERun%20the%20Invoke-RestMethod%20cmdlet%20with%20the%20following%20Uri-Strings%20for%20EWS%20and%20REST%20protocol%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EInvoke-RestMethod%20-Uri%20'%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DEWS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DEWS%3C%2FA%3E'%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EInvoke-RestMethod%20-Uri%20'%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DREST%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3DJohn.Doe%40varunagroup.de%26amp%3BProtocol%3DREST%3C%2FA%3E'%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EOut-of-Office%20information%20and%20calendar-based%20presence%20status%20requests%20use%20the%20on-premises%20REST-endpoint.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EEnsure%20that%20there%20are%20no%20unsupported%20characters%20in%20the%20Uri.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EBrowser%3C%2FSTRONG%3E%3CBR%20%2F%3EYou%20can%20test%20and%20query%20the%20AutoDiscover%20endpoint%20using%20the%20following%20URLs%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3Djohn.doe%40varunagroup.de%26amp%3BProtocol%3DEWS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3Djohn.doe%40varunagroup.de%26amp%3BProtocol%3DEWS%3C%2FA%3E%20%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3Djohn.doe%40varunagroup.de%26amp%3BProtocol%3DREST%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2Fautodiscover%2Fautodiscover.json%3FEmail%3Djohn.doe%40varunagroup.de%26amp%3BProtocol%3DREST%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EFor%20an%20on-premises%20mailbox%2C%20you%20receive%20an%20AutoDiscover%20response%20from%20your%20on-premises%20Exchange%20Server%2C%20like%20the%20one%20shown%20in%20the%20following%20screenshot.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22AutoDiscover%20response.png%22%20style%3D%22width%3A%20605px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F266674i6E5EADB4A3CCF1E1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22AutoDiscover%20response.png%22%20alt%3D%22AutoDiscover%20response.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerform%20a%20Fiddler%20trace%20for%20a%20more%20detailed%20error%20analysis%20when%20executing%20the%20HTTPS%20queries.%20The%20trace%20results%20help%20you%20to%20identify%20other%20possible%20sources%20of%20error%2C%20i.e.%2C%20a%20failed%20TLS%20handshake.%3CBR%20%2F%3EIf%20an%20error%20occurs%20while%20determining%20the%20AutoDiscover%20information%2C%20this%20does%20not%20automatically%20imply%20a%20problem.%20Check%20the%20following%20options%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20AutoDiscover%20query%20terminates%20with%20a%20timeout%3CUL%3E%0A%3CLI%3EIs%20the%20HTTPS%20access%20to%20your%20Exchange%20organization%20restricted%20to%20the%20remote%20IP%20address%20ranges%20of%20Microsoft%20365%3F%3C%2FLI%3E%0A%3CLI%3EMaybe%20the%20Exchange%20Server%20systems%20have%20a%20performance%20problem%20and%20cannot%20respond%20promptly%3F%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EYou%20receive%20a%20%22User%20Not%20Found%22-response%3CUL%3E%0A%3CLI%3EIs%20the%20user%20account%20excluded%20from%20the%20Azure%20AD%20Connect%20synchronization%20and%20does%20not%20exist%20as%20a%20%22Mail%20User%22%20object%20in%20Exchange%20Online%3F%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EThe%20response%20does%20not%20contain%20the%20expected%20EWS%20or%20REST%20URL%3CUL%3E%0A%3CLI%3EThe%20mailbox%20is%20an%20on-premises%20mailbox%2C%20but%20the%20response%20contains%20the%20Exchange%20Online%20endpoint%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Foutlook.office365.com%2FEWS%2FExchange.asmx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2FEWS%2FExchange.asmx%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EMost%20likely%2C%20the%20user%20has%20an%20additional%20mailbox%20in%20Exchange%20Online.%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fmy-user-has-a-mailbox-both-on-premises-and-in-exchange-online%2Fba-p%2F846809%3FWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%3EResolve%20the%20double%20mailbox%20situation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20style%3D%22list-style-type%3A%20none%3B%22%3E%3CUL%3E%0A%3CLI%3EThe%20response%20contains%20a%20URL%20that%20seems%20to%20be%20an%20internal%20URL%2C%20i.e.%2C%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fexch01.varunagroup.local%2FEWS%2FExchange.asmx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fexch01.varunagroup.local%2FEWS%2FExchange.asmx%3C%2FA%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EThe%20ExternalUrl%20attribute%20configuration%20is%20not%20correct%20for%20all%20virtual%20directories.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20style%3D%22list-style-type%3A%20none%3B%22%3E%3CUL%3E%0A%3CLI%3EYou%20use%20bound%20namespaces%2C%20the%20user%20mailbox%20location%20is%20AD%20site%20EMEA%2C%20but%20the%20response%20contains%20an%20URL%20of%20a%20different%20site%2C%20i.e.%2C%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%3CA%20href%3D%22https%3A%2F%2Fmail.apac.varunagroup.de%2FEWS%2FExchange.asmx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmail.apac.varunagroup.de%2FEWS%2FExchange.asmx%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EExpected%20URL%3A%20%3CA%20href%3D%22https%3A%2F%2Fmail.emea.varunagroup.de%2FEWS%2FExchange.asmx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fmail.emea.varunagroup.de%2FEWS%2FExchange.asmx%3C%2FA%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-90px%22%3EUntil%20March%202021%2C%20AutoDiscover%20V2%20is%20not%20AD%20site-aware.%20The%20March%202021%20cumulative%20updates%20for%20Exchange%20Server%202016%20and%202019%20fix%20this%20issue.%20Read%20more%20about%20the%20updates%20in%20this%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Freleased-march-2021-quarterly-exchange-updates%2Fba-p%2F2205283%22%20target%3D%22_blank%22%3Eblog%20post%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDNS%20Name%20resolution%20fails%20for%20the%20email%20address%20target%20domain%3CUL%3E%0A%3CLI%3EThere%20is%20no%20DNS%20resource%20record%20for%20AutoDiscover%20in%20the%20internet-facing%20DNS%20zone%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20next%20steps%20to%20identify%20connection%20problems%20lead%20us%20to%20the%20on-premises%20Exchange%20servers.%20With%20a%20local%20network%20trace%2C%20you%20can%20determine%20whether%20there%20are%20TLS%20handshake%20errors.%20Please%20note%20that%20your%20Exchange%20Server%20systems%20must%20be%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fexchange-server-tls-guidance-part-2-enabling-tls-1-2-and%2Fba-p%2F607761%3FWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%3Econfigured%20correctly%20for%20TLS%201.2%3C%2FA%3E.%20The%20TLS%201.2%20configuration%20might%20require%20manual%20steps%20if%20you%20use%20Exchange%20Server%202016%20or%20Exchange%20Server%202013.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EIf%20there%20are%20no%20errors%20in%20the%20TLS%20handshake%2C%20you%20must%20check%20the%20Exchange%20server's%20log%20files.%20Checking%20the%20log%20files%20on%20the%20local%20Exchange%20servers%20requires%20several%20steps.%20Depending%20on%20your%20local%20Exchange%20organization's%20size%20and%20the%20number%20of%20Exchange%20Servers%2C%20this%20check%20can%20be%20very%20complicated.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThe%20following%20diagram%20shows%20the%20participating%20Exchange%20Server%20components%20of%20a%20single%20Exchange%20Server%20for%20incoming%20connections%20from%20the%20Teams%20Backend%20Services%20to%20the%20Exchange%20Web%20Services%20endpoint.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Teams%20Backend%20Services.png%22%20style%3D%22width%3A%20605px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F266681iE9CA8D3B4F99B9CF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Teams%20Backend%20Services.png%22%20alt%3D%22Teams%20Backend%20Services.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20IIS%20Default%20website%20receives%20the%20incoming%20HTTPS%20connection%20from%20the%20Teams%20Services%20and%20passes%20it%20to%20the%20Frontend%20Proxy%20component%2C%20i.e.%2C%20EWS%20or%20REST.%20You%20find%20information%20about%20those%20two%20connections%20in%20the%20W3SVC1%20(1)%20and%20the%20HttpProxy%20logs%20of%20the%20targeted%20protocol%20(2).%20The%20Frontend%20Proxy%20component%20proxies%20the%20connection%20to%20the%20Exchange%20Backend%20website%20of%20the%20Exchange%20Server%2C%20where%20the%20active%20database%20copy%20containing%20the%20user%20mailbox%20is%20mounted.%20This%20is%20not%20necessarily%20the%20same%20Exchange%20Server%20accepting%20the%20Frontend%20connection.%20You%20find%20information%20about%20this%20proxied%20connection%20in%20the%20W2SVC2%20IIS%20logs%20(3)%20and%20the%20queried%20Exchange%20service%20(4).%20Depending%20on%20the%20Exchange%20protocol%20you%20want%20to%20troubleshoot%2C%20you%20must%20check%20the%20AutoDiscover%2C%20EWS%2C%20or%20REST%20log%20files.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3ETroubleshooting%20Calendar%20App%3C%2FFONT%3E%3C%2FSTRONG%3E%3CBR%20%2F%3ENow%20that%20you%20know%20how%20to%20deal%20with%20the%20AutoDiscover%20process's%20errors%2C%20it's%20time%20to%20take%20a%20look%20at%20the%20Teams%20Calendar%20app.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3ESuppose%20the%20access%20to%20AutoDiscover%20works%20without%20errors.%20There%20is%20a%20high%20probability%20that%20the%20access%20to%20the%20Exchange%20Web%20Services%20will%20also%20work%2C%20and%20therefore%20the%20calendar%20app%20in%20the%20Teams%20client%20will%20show%20calendar%20information.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EHowever%2C%20if%20the%20Teams%20client%20does%20not%20display%20the%20calendar%2C%20check%20the%20following%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECan%20the%20EWS%20URL%20determined%20by%20AutoDiscover%2C%20is%20the%20hostname%20resolvable%20in%20the%20domain's%20external%20DNS%20zone%2C%20and%20can%20it%20be%20reached%20from%20the%20Internet%20via%20HTTPS%3F%3CUL%3E%0A%3CLI%3EUse%20a%20browser%20to%20connect%20to%20the%20EWS%20URL%20and%20use%20Fiddler%20to%20identify%20any%20connection-based%20issues%3CBR%20%2F%3EThe%20EWS%20endpoint%20must%20reply%20with%20am%20HTTP%20401%20status%20code%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EUse%20the%20Remote%20Connectivity%20Analyzer%20to%20perform%20a%20Teams%20Calendar%20Access%20Tab%20Test%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22calendar%20test.png%22%20style%3D%22width%3A%20753px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F266682i9DCAEBCF621D6FD1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22calendar%20test.png%22%20alt%3D%22calendar%20test.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CA%20href%3D%22http%3A%2F%2Fbit.ly%2FTeamsCalTest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Fbit.ly%2FTeamsCalTest%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EVerify%20the%20OAuth%20Authentication%20configuration%3CUL%3E%0A%3CLI%3EUse%20the%20PowerShell%20Cmdlet%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fexchange%2Ftest-oauthconnectivity%3Fview%3Dexchange-ps%26amp%3BWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETest-OAuthConnectivity%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EVerify%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fconfigure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help%3FWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EServicePrincipalNames%2C%20IntraOrganization-%20and%20AuthServer-configuration%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIn%20the%20next%20blog%20post%2C%20we%20will%20take%20a%20closer%20look%20at%20calendar%20delegate%20situations.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ELinks%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fexchange-server-tls-guidance-part-2-enabling-tls-1-2-and%2Fba-p%2F607761%3FWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%3EExchange%20Server%20TLS%20guidance%20Part%202%3A%20Enabling%20TLS%201.2%20and%20Identifying%20Clients%20Not%20Using%20It%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fmy-user-has-a-mailbox-both-on-premises-and-in-exchange-online%2Fba-p%2F846809%3FWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%3EMy%20user%20has%20a%20mailbox%20both%20on-premises%20and%20in%20Exchange%20Online.%20Help!%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fconfigure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help%3FWT.mc_id%3DM365-MVP-5003086%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EConfigure%20OAuth%20authentication%20between%20Exchange%20and%20Exchange%20Online%20organizations%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Ftroubleshoot%2Fknown-issues%2Fteams-exchange-interaction-issue%3FWT.mc_id%3DTM-MVP-5003086%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETroubleshoot%20Microsoft%20Teams%20and%20Exchange%20Server%20interaction%20issues%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Freleased-march-2021-quarterly-exchange-updates%2Fba-p%2F2205283%22%20target%3D%22_blank%22%3EReleased%3A%20March%202021%20Quarterly%20Exchange%20Updates%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThomas%20Stensitzki%20is%20a%20leading%20technology%20consultant%20focusing%20on%20Microsoft%20messaging%20and%20collaboration%20technologies%20and%20the%20owner%20of%20Granikos%20GmbH%20%26amp%3B%20Co.%20KG.%20He%20is%20an%20MVP%20for%20Office%20Apps%20%26amp%3B%20Services%20and%20an%20MCT%20Regional%20Lead.%20As%20a%20user%20group%20organizer%2C%20he%20hosts%20the%20Microsoft%20Teams%20User%20Group%20Berlin%20and%20the%20Exchange%20User%20Group%20DACH.%3C%2FP%3E%0A%3CP%3ETwitter%3A%20%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fstensitzki%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Ftwitter.com%2Fstensitzki%3C%2FA%3E%3CBR%20%2F%3EBlog%3A%20%3CA%20href%3D%22https%3A%2F%2Fjustcantgetenough.granikos.eu%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2FJustCantGetEnough.Granikos.eu%3C%2FA%3E%20%3CBR%20%2F%3ETeams%20User%20Group%3A%20%3CA%20href%3D%22https%3A%2F%2Fteamsusergroup.berlin%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2FTeamsUserGroup.berlin%3C%2FA%3E%20%3CBR%20%2F%3EExchange%20User%20Group%3A%20%3CA%20href%3D%22https%3A%2F%2Fexusg.de%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fexusg.de%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3ETo%20write%20your%20own%20blog%20on%20a%20topic%20of%20interest%20as%20a%20guest%20blogger%20in%20the%20Microsoft%20Teams%20Community%2C%20please%20submit%20your%20idea%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FTeamsCommunityBlogger%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FTeamsCommunityBlogger%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2232602%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20blog%20post%20is%20part%202%20of%20the%20three-part%20series%20on%20Microsoft%20Teams%20and%20on-premises%20Exchange%20mailboxes.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Teams%20Backend%20Services.png%22%20style%3D%22width%3A%20605px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F266684iD728AEEE942B900C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Teams%20Backend%20Services.png%22%20alt%3D%22Teams%20Backend%20Services.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Mar 24 2021 09:13 AM
Updated by: