SOLVED

MS Teams with Exchange On-Premises

%3CLINGO-SUB%20id%3D%22lingo-sub-1325028%22%20slang%3D%22en-US%22%3EMS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1325028%22%20slang%3D%22en-US%22%3E%3CP%3EMS%20Teams%20is%20unable%20to%20connect%20to%20Exchange%20calendar%20on%20Premises.%20The%20calendar%20icon%20is%20unavailable%20in%20Teams.%3CBR%20%2F%3EThe%20mailbox%20is%20in%20Exchange%20on%20prem%2C%20there%20is%20a%20Hybrid%20configuration%20and%20Oauth%20is%20working.%3CBR%20%2F%3EThe%20Calendar%20Sharing%20between%20On%20Premises%20and%20Cloud%20Users%20work.%3CBR%20%2F%3EThe%20calendar%20is%20available%20in%20OWA.%3CBR%20%2F%3EAll%20on%20prem%20users%20are%20affected.%3C%2FP%3E%3CP%3EError%20message%3A%20%22Your%20exchange%20calendar%20isn't%20set%20up.%20Talk%20to%20your%20admin%20to%20set%20up%20you%20calendar%22.%3C%2FP%3E%3CP%3EExchange%20Server%202016%20CU12%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1325028%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20On-Premises%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1325680%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1325680%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3BDid%20you%20check%20the%20external%20authentication%20methods%20on%20the%20AutoDiscover%20virtual%20directory%3F%3C%2FP%3E%0A%3CP%3EIt%20seems%20that%20Microsoft%20Teams%20cannot%20fetch%20AutoD%20version%202%20data%20from%20your%20on-premises%20Exchange%20Servers.%20Are%20all%20Exchange%20virtual%20directories%20published%20to%20the%20Internet%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1325757%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1325757%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3842%22%20target%3D%22_blank%22%3E%40Thomas%20Stensitzki%3C%2FA%3E%26nbsp%3Bhow%20to%20check%26nbsp%3Bthe%20external%20authentication%20methods%20on%20the%20AutoDiscover%20virtual%20directory%3F%20Could%20you%20send%20me%20a%20guideline%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1326119%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1326119%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ETried%20enabling%20Group-Writeback%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%20make%20sure%20that%20OAuth%20is%20set%20up%20correct%26nbsp%3B%3CBR%20%2F%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%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fconfigure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKR%3CBR%20%2F%3EOliwer%20Sj%C3%B6berg%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329173%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329173%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20checked%20many%20times%20and%20Oauth%20is%20set%20up%20correctly.%3C%2FP%3E%3CP%3EAre%20you%20sure%2C%20that%26nbsp%3B%3CSPAN%3Eenabling%20Group-Writeback%20can%20solve%20the%20issue%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20in%20advance.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329218%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329218%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3BHow%20is%20the%20on-premises%20Exchange%20Server%20published%20to%20the%20Internet%3F%20Is%20Windows%20Server%202016%2B%20Application%20Proxy%20used%2C%20or%20another%20reverse%20proxy%20component%3F%3C%2FP%3E%0A%3CP%3EIn%20regard%20to%20the%20Exchange%20hybrid%20configuration%2C%20is%20AutoDiscover%20DNS%20used%20or%20does%20the%20Exchange%20hybrid%20configuration%20use%20a%20static%20TargetAutodiscoverEpr%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1331222%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1331222%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20OAuth%20is%20set%20up%20correctly%20and%20your%20on-prem%20Exchange%20server(s)%20are%20published%20correctly%20towards%20the%20internet%20without%20special%20proxies%20or%20smarthosts.%20then%20Group%20writeback%20could%20be%20the%20issue%20here.%20It's%20worth%20a%20try%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20previously%20enabled%20Group-Writeback%20and%20got%20this%20to%20work.%26nbsp%3B%3CBR%20%2F%3ESince%20you're%20in%20a%20hybrid%2C%20the%20local%20Exchange%20resources%20usualy%20needs%20a%20reference%20object%20in%20Active%20directory%20to%20route%20mail%20and%20work%20correctly.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ERead%20this%20Docs%20article%20for%20reference%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fset-up-office-365-groups%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fset-up-office-365-groups%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3CBR%20%2F%3EOliwer%20sj%C3%B6berg%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332293%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332293%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20groups%20write%20back%20is%20already%20activated.%3CBR%20%2F%3EHowever%2C%20this%20has%20no%20influence%20on%20the%20access%20to%20the%20calendar%20from%20Teams%20and%20it%20is%20still%20not%20visible.%3CBR%20%2F%3EThe%20Teams%20client%20tries%20to%20connect%20to%20the%20local%20Exchange%20but%20gets%20a%20response%20error%20400.%3CBR%20%2F%3EThis%20happens%20both%20in%20the%20WebClient%20and%20via%20the%20installed%20Teams%20client%20(verified%20with%20Fiddler).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EErrorCode%3A%20ErrorNonExistentMailbox%2C%20ErrorMessage%3A%20Mailbox%20doesn't%20exist%3B%20StatusCode%20400%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20check%20the%20attachment.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332431%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332431%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20see%2C%20the%20error%20message%20is%26nbsp%3Bstrengthening%20the%20theory%20that%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3842%22%20target%3D%22_blank%22%3E%40Thomas%20Stensitzki%3C%2FA%3E%26nbsp%3B%20Had%20regarding%20Autodiscover.%26nbsp%3B%3CBR%20%2F%3EThe%20error%20message%20says%20that%20%22Error%20while%20fetching%20apointments%20from%20EWS%22%20And%20that%20the%20mailbox%20was%20not%20found.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20there%20seems%20more%20likely%20that%20Autodiscover%20is%20the%20issue%20here.%26nbsp%3B%3CBR%20%2F%3EIs%20it%20possible%20for%20you%20to%20share%20your%20Autodiscover%20and%20EWS%20Virtual%20Directories%20configurations%20with%20us%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EKind%20Regards%3CBR%20%2F%3EOliwer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332483%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3842%22%20target%3D%22_blank%22%3E%40Thomas%20Stensitzki%3C%2FA%3E%26nbsp%3BThe%20local%20exchange%20is%20addressed%20via%20a%20load%20balancer%20(KEMP%20Loadmaster).%20Inquiries%20to%20EWS%20etc.%20are%20passed%20on.%3C%2FP%3E%3CP%3EThe%20HCW%20has%20filled%20out%20the%20TargetAutodiscoverEpr%20automatically.%3C%2FP%3E%3CP%3Efrom%20EXO%20to%20on%20premises%20and%20from%20on%20premises%20to%20EXO.%3C%2FP%3E%3CP%3EHowever%2C%20I%20have%20only%20tried%20it%20with%20registered%20target%20sharing%20EPR%2C%20but%20this%20did%20not%20lead%20to%20success.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332696%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332696%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3BI'd%20recommend%20the%20following%20steps%20for%20troubleshooting%20this%20further%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUse%20Exchange%20RCA%20to%20verify%20that%20free%2Fbusy%20is%20working%20fine%20(%3CA%20href%3D%22https%3A%2F%2Ftestconnectivity.microsoft.com%2FDefault.aspx%3FtestId%3DfreeBusy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftestconnectivity.microsoft.com%2FDefault.aspx%3FtestId%3DfreeBusy%3C%2FA%3E)%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E(Re-)Check%20the%20OAuth%20configuration%20of%20Exchange%20Server%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%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fconfigure-oauth-authentication-between-exchange-and-exchange-online-organizations-exchange-2013-help%3C%2FA%3E)%26nbsp%3B%3CBR%20%2F%3EIf%20there%20are%20multiple%20Exchange%20Server%20in%20the%20DAG%2C%20ensure%20that%20the%20AutoD-%20and%20EWS-vDir%20configuration%20is%20consistent%20across%20all%20servers%3C%2FLI%3E%0A%3CLI%3EAre%20there%20any%20authentication%20error%20(401)%20entries%20in%20the%20IIS%20front-end%20logs%2C%20as%20shown%20in%20this%20post%20(%3CA%20href%3D%22https%3A%2F%2Fc7solutions.com%2F2014%2F08%2Fexchange-online-freebusy-issues-with-oauth-authentication%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fc7solutions.com%2F2014%2F08%2Fexchange-online-freebusy-issues-with-oauth-authentication%3C%2FA%3E)%3CBR%20%2F%3EThis%20is%20an%20older%20post%2C%20but%20still%20helpful%3C%2FLI%3E%0A%3CLI%3EDid%20you%20check%20the%20Exchange%20Server's%20EWS%20and%20Availability%20Service%20(AS)%20logs%3F%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1335691%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1335691%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3BI%20could%20share%20them%20in%20a%20private%20message.%20Is%20this%20possible%20for%20you%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1339943%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1339943%22%20slang%3D%22en-US%22%3E%3CP%3EYes%20works%20for%20me%20%3A)%3C%2Fimg%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331904%22%20target%3D%22_blank%22%3E%40AtanasM%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1348859%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20with%20Exchange%20On-Premises%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1348859%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3842%22%20target%3D%22_blank%22%3E%40Thomas%20Stensitzki%3C%2FA%3E%26nbsp%3BI%20added%20the%20local%20web%20service%20URLs%20as%20SPN%20in%20Azure%20AD%20and%20this%20solved%20the%20issue.%20For%20instructions%2C%20see%20the%20following%20link%20and%20section%3A%20%E2%80%9CAdd%20local%20web%20service%20URLs%20as%20SPNs%20in%20Azure%20AD%E2%80%9D%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fenterprise%2Fconfigure-exchange-server-for-hybrid-modern-authentication%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fenterprise%2Fconfigure-exchange-server-for-hybrid-modern-authentication%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

MS Teams is unable to connect to Exchange calendar on Premises. The calendar icon is unavailable in Teams.
The mailbox is in Exchange on prem, there is a Hybrid configuration and Oauth is working.
The Calendar Sharing between On Premises and Cloud Users work.
The calendar is available in OWA.
All on prem users are affected.

Error message: "Your exchange calendar isn't set up. Talk to your admin to set up you calendar".

Exchange Server 2016 CU12

13 Replies
Highlighted

@AtanasM Did you check the external authentication methods on the AutoDiscover virtual directory?

It seems that Microsoft Teams cannot fetch AutoD version 2 data from your on-premises Exchange Servers. Are all Exchange virtual directories published to the Internet?  

Highlighted

@Thomas Stensitzki how to check the external authentication methods on the AutoDiscover virtual directory? Could you send me a guideline?

Highlighted

Hello@AtanasM ! 

Tried enabling Group-Writeback? 

Also make sure that OAuth is set up correct 
https://docs.microsoft.com/en-us/exchange/configure-oauth-authentication-between-exchange-and-exchan...

 

KR
Oliwer Sjöberg

Highlighted

Hello @oliwer_sjoberg 

I checked many times and Oauth is set up correctly.

Are you sure, that enabling Group-Writeback can solve the issue?

Thanks in advance.

Highlighted
Best Response confirmed by AtanasM (Contributor)
Solution

@AtanasM How is the on-premises Exchange Server published to the Internet? Is Windows Server 2016+ Application Proxy used, or another reverse proxy component?

In regard to the Exchange hybrid configuration, is AutoDiscover DNS used or does the Exchange hybrid configuration use a static TargetAutodiscoverEpr?

Highlighted

Hello@AtanasM ! 

 

If OAuth is set up correctly and your on-prem Exchange server(s) are published correctly towards the internet without special proxies or smarthosts. then Group writeback could be the issue here. It's worth a try :) 

 

I've previously enabled Group-Writeback and got this to work. 
Since you're in a hybrid, the local Exchange resources usualy needs a reference object in Active directory to route mail and work correctly. 

Read this Docs article for reference 

https://docs.microsoft.com/en-us/exchange/hybrid-deployment/set-up-office-365-groups

 

Kind Regards
Oliwer sjöberg

Highlighted

Hello @oliwer_sjoberg 

The groups write back is already activated.
However, this has no influence on the access to the calendar from Teams and it is still not visible.
The Teams client tries to connect to the local Exchange but gets a response error 400.
This happens both in the WebClient and via the installed Teams client (verified with Fiddler).

 

ErrorCode: ErrorNonExistentMailbox, ErrorMessage: Mailbox doesn't exist; StatusCode 400

 

Please check the attachment.

Highlighted

Hello @AtanasM ! 

I see, the error message is strengthening the theory that @Thomas Stensitzki  Had regarding Autodiscover. 
The error message says that "Error while fetching apointments from EWS" And that the mailbox was not found. 

So there seems more likely that Autodiscover is the issue here. 
Is it possible for you to share your Autodiscover and EWS Virtual Directories configurations with us? 

Kind Regards
Oliwer

Highlighted

@Thomas Stensitzki The local exchange is addressed via a load balancer (KEMP Loadmaster). Inquiries to EWS etc. are passed on.

The HCW has filled out the TargetAutodiscoverEpr automatically.

from EXO to on premises and from on premises to EXO.

However, I have only tried it with registered target sharing EPR, but this did not lead to success.

Highlighted

@AtanasM I'd recommend the following steps for troubleshooting this further:

 

 

Highlighted

@oliwer_sjoberg I could share them in a private message. Is this possible for you?

Highlighted

Yes works for me :) @AtanasM 

Highlighted

@Thomas Stensitzki I added the local web service URLs as SPN in Azure AD and this solved the issue. For instructions, see the following link and section: “Add local web service URLs as SPNs in Azure AD”:

https://docs.microsoft.com/en-us/office365/enterprise/configure-exchange-server-for-hybrid-modern-au...