In Microsoft Exchange Server 2019 or Exchange Server 2016, assume that you set a web proxy server that the Exchange Server uses to reach the Internet by using the InternetWebProxy parameter and there's no direct access to the Internet. You may experience that the OAuth connectivity always fails if you test it by using the Test-OAuthConnectivity cmdlet even if the connectivity is working fine.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.