%3CLINGO-SUB%20id%3D%22lingo-sub-1559130%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20HCW%20(Hybrid%20Agent)%3A%20troubleshooting%20like%20a%20pro%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1559130%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%0A%3CP%3EMy%20name%20is%20Mirela%20and%20I%20am%20the%20main%20author%20of%20this%20blog.%20Please%20reply%20to%20this%20comment%20if%20you%20want%20me%20to%20get%20notified%20about%20your%20comment%20%2F%20query.%3CBR%20%2F%3EHappy%20troubleshooting!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1558725%22%20slang%3D%22en-US%22%3EModern%20HCW%20(Hybrid%20Agent)%3A%20troubleshooting%20like%20a%20pro%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1558725%22%20slang%3D%22en-US%22%3E%3CP%3EMost%20of%20you%20are%20probably%20familiar%20with%20Classic%20Hybrid%20Deployments%20that%20are%20automatically%20configured%20through%20classic%20option%20in%20the%20Hybrid%20Configuration%20Wizard%20(HCW).%26nbsp%3B%20In%20this%20blog%20post%20we%20will%20focus%20on%20Modern%20Hybrid%20Configuration%20(aka%20Modern%20Hybrid%20Agent)%20and%20specifically%2C%20Agent%20troubleshooting.%3C%2FP%3E%0A%3CP%3EThe%202%20mentioned%20flavors%20of%20hybrid%20deployments%20are%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt01.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209319iD16556817500ACFF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt01.jpg%22%20alt%3D%22hybagnt01.jpg%22%20%2F%3E%3C%2FSPAN%3EA%20comparison%20of%20the%20hybrid%20functionalities%20configured%20with%20these%20two%20options%20can%20be%20found%20in%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-configuration-wizard-options%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHybrid%20Configuration%20Wizard%20options%3C%2FA%3E%20article.%3C%2FP%3E%0A%3CP%3EBefore%20getting%20more%20specific%20on%20how%20to%20troubleshoot%20the%20Modern%20HCW%20option%2C%20let%20me%20give%20you%20some%20information%20and%20troubleshooting%20hints%20for%20HCW%20application%20in%20general.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1297086930%22%20id%3D%22toc-hId--1297086930%22%20id%3D%22toc-hId--1297086930%22%20id%3D%22toc-hId--1297086930%22%20id%3D%22toc-hId--1297086930%22%20id%3D%22toc-hId--1297086930%22%20id%3D%22toc-hId--1297086930%22%3E%3CFONT%20size%3D%225%22%3ERun%20the%20latest%20version%20of%20the%20HCW%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EAlways%20make%20sure%20you%20are%20running%20the%20latest%20HCW%20version%20by%20downloading%20it%20from%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fhybridwizard%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fhybridwizard%3C%2FA%3E%20or%20opening%20it%20from%20the%20Exchange%20Admin%20Center.%26nbsp%3B%20Why%20run%20the%20latest%20version%3F%20Because%20many%20things%20get%20fixed%20in%20newer%20builds.%3CBR%20%2F%3EThe%20version%20of%20the%20app%20can%20be%20found%20in%20multiple%20places%20such%20as%20in%20the%20HCW%20Graphical%20User%20Interface%20(GUI)%20in%20the%20top%20right%20corner%20in%20control%20panel%2C%20under%20Programs%20and%20Features%2C%20and%20in%20HCW%20log.%20Currently%2C%20the%20HCW%20build%20numbers%20are%2017.x%20and%20if%20you%20have%20the%20build%2016.x%2C%20the%20application%20will%20not%20auto-update%20to%2017.x.%20Ideally%2C%20if%20you%20need%20to%20re-run%20HCW%20you%20should%20update%20to%20latest%2017.x%20build%20first.%20Both%20versions%20can%20coexist%20on%20the%20same%20machine%20(not%20really%20recommended%20because%20you%20might%20be%20confused%20as%20to%20which%20is%20which)%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fmarch-2020-significant-update-to-hybrid-configuration-wizard%2Fba-p%2F1238753%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Emore%20info%20here%3C%2FA%3E%3A%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt02.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209320iE3E75B555DFE20DC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt02.jpg%22%20alt%3D%22hybagnt02.jpg%22%20%2F%3E%3C%2FSPAN%3EHybrid%20Prerequisites%20and%20HCW%20FAQ%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EMany%20issues%20can%20be%20prevented%20if%20we%20read%20thoroughly%20the%20prerequisites%20of%20HCW%20modes%20and%20frequently%20asked%20questions.%20Here%20are%20they%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment-prerequisites%23prerequisites-for-hybrid-deployment%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EClassic%20HCW%20Prerequisites%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EModern%20HCW%20Prerequisites%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-configuration-wizard-faqs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHCW%20FAQ%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1190425903%22%20id%3D%22toc-hId-1190425903%22%20id%3D%22toc-hId-1190425903%22%20id%3D%22toc-hId-1190425903%22%20id%3D%22toc-hId-1190425903%22%20id%3D%22toc-hId-1190425903%22%20id%3D%22toc-hId-1190425903%22%3EAdmin%20accounts%20running%20HCW%3C%2FH2%3E%0A%3CP%3EThere%20are%202%20types%20of%20Admin%20accounts%20needed%20to%20run%20HCW%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt03.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209321i8C97D88D53B7CDA3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt03.jpg%22%20alt%3D%22hybagnt03.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CSTRONG%3EOn-premises%20Exchange%20Account%3C%2FSTRONG%3E%20%3CBR%20%2F%3EThis%20account%20needs%20to%20be%20member%20of%20Organization%20Management.%20If%20you%20change%20the%20account%20and%20insert%20credentials%2C%20these%20credentials%20will%20be%20automatically%20used%20for%20Test-MigrationServerAvailability%20in%20case%20HCW%20will%20need%20to%20create%20a%20Hybrid%20Migration%20Endpoint.%3C%2FP%3E%0A%3CP%3EFor%20Modern%20HCW%2C%20you%20would%20see%20the%20Migration%20Admin%20here%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt04.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209322i8CE09C2A23447CF9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt04.jpg%22%20alt%3D%22hybagnt04.jpg%22%20%2F%3E%3C%2FSPAN%3EIf%20you%20get%20an%20%E2%80%9Cinvalid%20username%20or%20password%E2%80%9D%20error%20in%20this%20step%20of%20the%20HCW%2C%20check%20if%20you%20have%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FExchange%2Fpermissions%2Ffeature-permissions%2Frecipient-permissions%3Fview%3Dexchserver-2019%23mailbox-move-and-migration-permissions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erequired%20permissions%20for%20a%20Remote%20Mailbox%20Migration%3C%2FA%3E%20and%26nbsp%3B%20that%20credentials%20are%20correct%20(use%20domain%5Caccount%20format).%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EOffice%20365%20Exchange%20Online%20Account%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3EThis%20needs%20to%20be%20either%20a%20Global%20Admin%20(Exchange%20Admin%20included)%20or%20simply%20an%20Exchange%20Admin%20in%20O365.%3C%2FP%3E%0A%3CP%3EKnow%20that%20you%20can%20select%202%20types%20of%20login%20to%20your%20O365%20tenant%3A%20Modern%20Authentication%20and%20Basic%20Authentication%20(Legacy%20Login).%20Note%20that%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fbasic-authentication-and-exchange-online-april-2020-update%2Fba-p%2F1275508%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EBasic%20authentication%20is%20being%20deprecated%3C%2FA%3E%2C%20but%20sometimes%20it%E2%80%99s%20useful%20to%20test%20it%20when%20you%20have%20login%20issues.%20That%20option%20can%20be%20found%20under%20%E2%80%9CLegacy%20Login%E2%80%9D%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt05.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209323i8936CE3DB82C8BD3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt05.jpg%22%20alt%3D%22hybagnt05.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CFONT%20size%3D%226%22%3EHCW%20F12%20Diagnostic%20tools%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EPressing%20F12%20when%20in%20HCW%20will%20give%20you%20an%20additional%20Diagnostic%20Tools%20section%20in%20HCW%20UI%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt06.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209324i8208426257B15026%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt06.jpg%22%20alt%3D%22hybagnt06.jpg%22%20%2F%3E%3C%2FSPAN%3EThis%20is%20awesome%20and%20very%20useful%20when%20troubleshooting.%20Let%E2%80%99s%20mention%20each%20of%20them%3A%3C%2FP%3E%0A%3CP%3E%3CU%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3EOpen%20Exchange%20Management%20Shell%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EThis%20shortcut%20opens%20a%20PowerShell%20window%20and%20connects%20to%20your%20on-premises%20Exchange%20environment.%3C%2FP%3E%0A%3CP%3EIf%2C%20for%20example%2C%20you%20get%20HCW%20failing%20to%20run%20a%20command%20in%20on-premises%20shell%2C%20you%20can%20quickly%20copy%20the%20failing%20command%20from%20the%20HCW%20log%2C%20open%20this%20shell%20and%20then%20paste%20the%20same%20command%20to%20see%20if%20the%20problem%20is%20in%20the%20on-premises%20environment%20%2F%20shell%20or%20it%E2%80%99s%20an%20issue%20with%20HCW%20itself%20(very%20rarely%20the%20case).%3C%2FP%3E%0A%3CP%3EAnother%20example%20is%20if%20you%20have%20issues%20with%20connecting%20to%20on-premises%20PowerShell%20in%20HCW%20GUI%2C%20you%20can%20quickly%20use%20this%20and%20see%20if%20the%20error%20is%20the%20same.%3C%2FP%3E%0A%3CP%3E%3CU%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3EOpen%20Exchange%20Online%20PowerShell%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EThis%20shortcut%20opens%20a%20PowerShell%20window%20and%20connects%20to%20your%20Exchange%20Online%20environment.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt07.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209325i366911A7EA5F30EC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt07.jpg%22%20alt%3D%22hybagnt07.jpg%22%20%2F%3E%3C%2FSPAN%3EYou%20would%20open%20this%20up%20when%20you%20see%20a%20command%20failing%20in%20Exchange%20Online%20PowerShell%20and%20use%20it%20to%20run%20the%20failing%20command%20to%20see%20if%20you%20get%20the%20same%20outcome.%3C%2FP%3E%0A%3CP%3EYou%20would%20also%20use%20it%20when%20you%20get%20the%20following%20error%20in%20HCW%20GUI%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt08.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209326i20FA6C7A304045D6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt08.jpg%22%20alt%3D%22hybagnt08.jpg%22%20%2F%3E%3C%2FSPAN%3EIn%20HCW%20log%2C%20you%20would%20look%20for%20the%20entry%20%3CEM%3EActivity%3DTenant%20Connection%20Validation%20%3C%2FEM%3Efor%20more%20details%20on%20the%20issue.%20This%20entry%20below%20suggests%20that%20I%20don%E2%80%99t%20use%20a%20proxy%20on%20the%20machine%20running%20HCW%20to%20connect%20to%20Office%20365%20Exchange%20Online%20PowerShell%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E2020.05.29%2020%3A37%3A37.469%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2010179%20%5BClient%3DUX%2C%20HTTP%20GET%3D%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2F%3C%2FA%3E%2C%20Thread%3D7%5D%20Request%20for%20%3CA%20href%3D%22https%3A%2F%2Foutlook.office365.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foutlook.office365.com%2F%3C%2FA%3E%20does%20NOT%20go%20thru%20proxy%3C%2FP%3E%0A%3CP%3E%3CU%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3EOpen%20Log%20File%20%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EThis%20opens%20the%20current%20HCW%20log%20file.%20In%20Notepad%2C%20I%20normally%20don%E2%80%99t%20use%20word%20wrap%20when%20I%20first%20open%20it%20so%20that%20I%20can%20have%20a%20quick%20and%20clear%20table%20format%20view.%3CBR%20%2F%3EThis%20is%20the%20main%20HCW%20log%2C%20date_time.log%2C%20where%20we%20get%20information%20about%20what%20HCW%20version%20we%20are%20using%2C%20machine%20from%20where%20we%20ran%20HCW%2C%20OS%20and%20.NET%20version%2C%20on-premises%20organization%20current%20configuration%20etc.%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3Emailbox%20databases%3C%2FLI%3E%0A%3CLI%3Eaccepted%20domains%3C%2FLI%3E%0A%3CLI%3Eremote%20domains%3C%2FLI%3E%0A%3CLI%3Eif%20a%20hybrid%20configuration%20is%20already%20in%20place%3C%2FLI%3E%0A%3CLI%3Eif%20federation%20trust%20is%20in%20place%20-%20in%20case%20HCW%20needs%20to%20create%20it%3C%2FLI%3E%0A%3CLI%3Esend%20and%20receive%20connectors%2C%3C%2FLI%3E%0A%3CLI%3Evirtual%20directories%2C%20etc%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWe%20can%20also%20see%20EXO%20organization%20current%20configuration%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EEXO%20organization%20config%20itself%3C%2FLI%3E%0A%3CLI%3Emigration%20endpoints%3C%2FLI%3E%0A%3CLI%3EEOP%20connectors%3C%2FLI%3E%0A%3CLI%3Eaccepted%20domains%3C%2FLI%3E%0A%3CLI%3Eremote%20domains%3C%2FLI%3E%0A%3CLI%3Eif%20there%20is%20an%20on-premises%20organization%20object%2C%20etc.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CU%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3ECreate%20Support%20Package%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EThis%20is%20very%20useful%20for%20us%20(people%20in%20support).%20This%20will%20make%20a%20zip%20of%20your%20HCW%20log%20files%20so%20that%20you%20can%20send%20it%20to%20Microsoft%20Support.%20There%20is%20a%20second%20screen%20once%20you%20click%20on%20the%20link%2C%20where%20you%20can%20specify%20to%20ZIP%20logs%20from%20the%20last%2024%20hours%2C%20or%20within%20a%20date%20range.%20You%20then%20have%20the%20option%20to%20copy%20the%20file%20to%20the%20clipboard%20so%20it%20can%20be%20easily%20attached%20to%20an%20email.%3C%2FP%3E%0A%3CP%3E%3CU%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%3EOpen%20Logging%20Folder%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3EThis%20shortcut%20opens%20the%20folder%20where%20HCW%20logs%20are%20located%20on%20the%20machine%20where%20you%20ran%20HCW.%20%26nbsp%3B%3CEM%3EC%3A%5CUsers%5C%3CADMIN%3E%5CAppData%5CRoaming%5CMicrosoft%5CExchange%20Hybrid%20Configuration%3C%2FADMIN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt09.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209328i13ED23F2A3DDC3A0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt09.jpg%22%20alt%3D%22hybagnt09.jpg%22%20%2F%3E%3C%2FSPAN%3ENotable%20files%20in%20this%20folder%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDate_time.log%3C%2FSTRONG%3E%20file%20was%20mentioned%20above%20during%20Open%20Log%20File.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDate_time%20.xhcw%20%3C%2FSTRONG%3E%3CBR%20%2F%3EThe%20second%20important%20log%20is%20the%20.xhcw%20log.%20This%20is%20an%20XML%20log%20which%20lists%20all%20the%20cmdlets%20done%20by%20HCW%20(like%20Get-*%2C%20Set-*%2C%20Update-*%2CRemove-*%2CNew-*)%20in%20both%20EXO%20and%20Exchange%20OnPrem%20PowerShell%20sessions.%3CBR%20%2F%3EYou%20would%20open%20this%20file%20in%20Notepad%2C%20add%20a%20starting%20xml%20tag%20like%20%3CROOT%3E%20at%20the%20beginning%20and%20then%20at%20the%20end%20add%20%3C%2FROOT%3E%20as%20the%20ending%20tag%20and%20then%20save%20the%20xhcw%20log%20as%20.xml.%20Then%2C%20you%20can%20open%20it%20in%20the%20browser%20and%20check%20%2Fexpand%20the%20cmdlets.%20Example%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt10.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209330iFDEA2F72B1F804F7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt10.jpg%22%20alt%3D%22hybagnt10.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDate_time.boot%20log%3C%2FSTRONG%3E%20is%20the%20log%20showing%20the%20startup%20of%20HCW%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt11.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209331iF0549DBE031208E1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt11.jpg%22%20alt%3D%22hybagnt11.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EThe%20.cc%20log%3C%2FSTRONG%3E%20is%20a%20small%20log%20with%20extra%20info%20regarding%20your%20Hybrid%20Configuration%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt12.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209333i6C901750737A36D4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt12.jpg%22%20alt%3D%22hybagnt12.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDate_time.hybridconnector.log%3C%2FSTRONG%3E%20%3CBR%20%2F%3EThis%20is%20the%20setup%20log%20for%20Hybrid%20Connector%20(when%20you%20install%20the%20Hybrid%20Agent).%20This%20log%20is%20therefore%20not%20present%20in%20Classic%20Hybrid%20Configs.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt13.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209334iAFC1FFCA2FDF35F6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt13.jpg%22%20alt%3D%22hybagnt13.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CU%3E%3CFONT%20size%3D%224%22%3EOpen%20Process%20Folder%3C%2FFONT%3E%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20link%20opens%20a%20Command%20Prompt%20with%20directory%20set%20to%20the%20HCW%20process.%20This%20can%20be%20helpful%20when%20we%20get%20HCW%20crashes%20or%20some%20generic%20errors%20like%20%E2%80%9CObject%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%E2%80%9D%20and%20we%20can%20combine%20it%20with%20ProcDump%20tracing%20of%20the%20process.%20See%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsysinternals%2Fdownloads%2Fprocdump%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%20for%20more%20info%20on%20ProcDump%20download%20and%20syntax%2C%20we%20would%20normally%20use%20a%20quick%20command%20like%20shown%20below%20to%20get%20the%20stack%20exception%20but%20if%20you%20have%20to%20get%20here%20with%20troubleshooting%2C%20we%20advise%20you%20open%20a%20support%20case%20with%20us%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3Eprocdump.exe%20-e%201%20-f%20%22%22%20Microsoft.Online.CSE.Hybrid.App.exe%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%226%22%3EHybrid%20Agent%20in%20Modern%20HCW%3C%2FFONT%3E%3CBR%20%2F%3EYou%20can%20learn%20more%20about%20Hybrid%20Agent%20architecture%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexchange-team-blog%2Fthe-microsoft-hybrid-agent-public-preview%2Fba-p%2F608939%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Ehere%3C%2FA%3E.%3CBR%20%2F%3EThis%20feature%20will%20install%20an%20agent%2C%20built%20on%20the%20same%20technology%20as%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-gb%2Fazure%2Factive-directory%2Fmanage-apps%2Fapplication-proxy-add-on-premises-application%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Application%20Proxy%3C%2FA%3E%2C%20which%20will%20publish%20the%20Exchange%20on-premises%20environment%20to%20Exchange%20Online%20to%20support%20free%2Fbusy%20and%20mailbox%20migrations%20without%20many%20of%20the%20challenges%20customers%20previously%20faced%20with%20external%20DNS%2C%20publishing%20of%20EWS%20and%20inbound%20connections%20ports%20having%20to%20be%20opened.%20The%20secret%20sauce%20here%20is%20that%20the%20Hybrid%20Agent%20registers%20a%20custom%20URL%20for%20only%20your%20tenant%20in%20the%20following%20format%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E%3CGUID%3E.resource.mailboxmigration.his.msappproxy.net%3C%2FGUID%3E%3C%2FP%3E%0A%3CP%3EThis%20URL%20is%20then%20used%20by%20the%20Organization%20Relationship%20or%20the%20Intra%20Organization%20Connector%20and%20the%20Mailbox%20Replication%20Service%20to%20route%20requests%20from%20your%20tenant%20to%20on-premises.%20This%20URL%20is%26nbsp%3Bonly%20accessible%20from%20Exchange%20Online.%20Free%2Fbusy%20requests%20from%20cloud%20users%20to%20on-premises%20and%20mailbox%20migrations%20to%2Ffrom%20the%20cloud%20are%20the%20two%20flows%20currently%20supported%20through%20the%20Hybrid%20Agent.%3C%2FP%3E%0A%3CP%3EWhere%20exactly%20in%20the%20hybrid%20configuration%20can%20we%20see%20this%20URL%20ending%20in%20%E2%80%9Chis.msapproxy.net%E2%80%9D%3F%20Here%20are%20some%20of%20the%20cmdlets%20that%20will%20show%20you%20were%20the%20URL%20is%20used%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGet-MigrationEndpoint%20(RemoteServer%20value)%3C%2FLI%3E%0A%3CLI%3EGet-IntraOrganizationConnector%20(TargetSharingEpr%20value)%3C%2FLI%3E%0A%3CLI%3EGet-OrganizationRelationship%20(TargetSharingEpr%20value)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3E%3CSPAN%3EDetermine%20the%20Hybrid%20Agent%20route%3C%2FSPAN%3E%3C%2FFONT%3E%20%3CBR%20%2F%3ESimply%20put%2C%20the%20Hybrid%20Agent%20is%20the%20middle%20man%20between%20the%20Exchange%20Online%20servers%20and%20the%20on-premises%20Exchange%20Server(s)%20and%20you%20can%20think%20of%20it%20as%20an%20Inbound%20Connector%20for%20HTTPS%20traffic%20from%20EXO%20to%20on-premises%20Exchange.%20The%20Hybrid%20Agent%20accepts%20traffic%20only%20from%20Exchange%20Online%20Servers.%20%3CBR%20%2F%3EA%20simple%20schema%20of%20the%20inbound%20route%20to%20Exchange%20on-premises%20Modern%20Hybrid%20would%20be%20the%20following%3A%20%3CBR%20%2F%3EEXO%20%26gt%3B%20Hybrid%20Agent%20(External%20URL)%20%26gt%3B%20Load%20Balancer%20or%20Exchange%20On%20Prem%20Server%20(Internal%20URL).%3CBR%20%2F%3EYou%20can%20check%20the%20Connector%20route%20with%20the%20Get-HybridApplication%20cmdlet%20available%20with%20the%20Hybrid%20Management%20PowerShell%20Module%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt14_2.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209354i53D07068E5FFAB08%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt14_2.jpg%22%20alt%3D%22hybagnt14_2.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EFrom%20this%20screenshot%2C%20we%20can%20tell%20that%20the%20external%20URI%20is%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ehttps%3A%2F%2F%3CGUID%3E.resource.mailboxmigration.his.msappproxy.net%3C%2FGUID%3E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E(externalUrl%20parameter)%20and%20that%20connections%20to%20this%20published%20namespace%20will%20be%20relayed%20to%20your%20Exchange%20Server%20or%20Load%20Balancer%3A%20https%3A%2F%2FinternalFQDN%2F%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E(my%20lab%20machine%20in%20this%20example%20being%20mirebm340vm.domain.lab%20which%20is%20internalUrl)%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20external%20URI%20should%20be%20resolvable%20in%20public%20DNS%2C%20You%20can%20use%20nslookup%20and%20resolve-dnsname%20to%20check%20if%20the%20Hybrid%20Agent%20is%20correctly%20published%20for%20my%20Office%20365%20tenant.%3CBR%20%2F%3EYou%20can%20also%20check%20the%20Hybrid%20Connector%20Route%20in%20HCW%20log%20(ConnectorRoute%20value)%20and%20by%20looking%20at%20the%20output%20of%20the%20following%20Graph%20query%3A%20-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fedu%2F%24metadata%23applications%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fedu%2F%24metadata%23applications%3C%2FA%3E%20%3CBR%20%2F%3E%3CSTRONG%3EConnectorRoute%20in%20HCW%20log%20showing%20externalUrl%20and%20internalUrl%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt15.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209338i2E5E433F25345F86%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt15.jpg%22%20alt%3D%22hybagnt15.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EGraph%20Query%20in%20HCW%20log%20which%20shows%20the%20Hybrid%20Application%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt16.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209339iE84769B3BEF81080%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt16.jpg%22%20alt%3D%22hybagnt16.jpg%22%20%2F%3E%3C%2FSPAN%3EIf%20there%20is%20no%20application%20returned%20in%20Get-HybridApplication%2C%20re-run%20the%20HCW%20with%20Modern%20Hybrid%20Topology%20option.%20It%20will%20restore%20the%20application.%3C%2FP%3E%0A%3CP%3EIf%20an%20application%20is%20returned%2C%20but%20the%20Exchange%20CAS%20server%20machine%20pointed%20to%20is%20not%20available%2C%20Update-HybridApplication%20allows%20you%20to%20reset%20the%20target%20URI%20to%20another%20CAS%20server%20or%20load%20balancer%20(supported%20only%20for%20Exchange%202013%20MRSproxy%20servers%20and%20above).%20See%20more%20on%20this%20step%20-ERR%3AREF-NOT-FOUND-here.%3C%2FP%3E%0A%3CP%3ESetting%20up%20the%20Hybrid%20Agent%20in%20Modern%20HCW%3C%2FP%3E%0A%3CP%3EThere%20are%204%20phases%20when%20setting%20up%20the%20Hybrid%20Agent%20via%20HCW%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDownload%20the%20agent%20install%20package.%3C%2FLI%3E%0A%3CLI%3EInstallation%20of%20the%20agent%20on%20the%20local%20computer%20(this%20prompts%20for%20your%20Office%20365%20Global%20Administrator%20credentials%20again).%3C%2FLI%3E%0A%3CLI%3ERegistration%20of%20the%20agent%20in%20Azure%2C%20including%20creation%20of%20the%20URL%20used%20to%20proxy%20requests.%20The%20URL%20has%20the%20format%20we%20already%20discussed%3A%26nbsp%3B%3CUNIQUEGUID%3E.resource.mailboxmigration.his.msappproxy.net.%3C%2FUNIQUEGUID%3E%3C%2FLI%3E%0A%3CLI%3ETesting%20migration%20viability%20from%20your%20Office%20365%20tenant%20to%20your%20on-premises%20Exchange%20organization%20via%20the%20agent.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EStarting%20with%20HCW%20version%2017.x%2C%20we%20also%20have%20a%20Hybrid%20Updater%20Agent%20step%20which%20will%20be%20visible%20in%20HCW%20UI%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt17.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209341i2E898D2FA20F5ED0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt17.jpg%22%20alt%3D%22hybagnt17.jpg%22%20%2F%3E%3C%2FSPAN%3E%3CFONT%20size%3D%225%22%3EDetermine%20if%20the%20Hybrid%20Agent%20is%20installed%20and%20running%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EThe%20Hybrid%20Agent%20may%20be%20running%20on%20a%20Client%20Access%20Server%20(CAS)%2C%20or%20it%20may%20be%20running%20in%20the%20DMZ%2C%20but%20it%20must%20be%20running%20somewhere.%20The%20first%20step%20is%20to%20go%20to%20that%20machine%20and%20check%20the%20status%20of%20the%20service%20(Microsoft%20Hybrid%20Service%20should%20be%20started)%20and%20if%20the%20Hybrid%20Connector%20is%20up%20and%20running.%3C%2FP%3E%0A%3CP%3EThere%20are%20a%20few%20methods%20of%20checking%20if%20the%20Hybrid%20Agent%20is%20%3CSTRONG%3EActive%3C%2FSTRONG%3E%20(registered%20and%20running)%20%3CSTRONG%3Eor%20Inactive%3C%2FSTRONG%3E%20(not%20registered%20or%20not%20running)%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EBy%20running%20HCW%20and%20choosing%20Modern%20Hybrid%20Topology%2C%20reference%20-ERR%3AREF-NOT-FOUND-here%3C%2FLI%3E%0A%3CLI%3EUsing%20the%20Get-Hybrid%20Agent%20cmdlet%2C%20available%20in%20the%20Hybrid%20Management%20PowerShell%20Module%2C%20reference%20-ERR%3AREF-NOT-FOUND-here%20%3CBR%20%2F%3EGet-HybridAgent%20-Credential%20(get-credential%20%3CO365ADMIN%3E)%3C%2FO365ADMIN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt18_2.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209357i3F8300A3FDEE67DB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt18_2.jpg%22%20alt%3D%22hybagnt18_2.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ENote%20that%20this%20cmdlet%20will%20return%20all%20Azure%20Proxy%20Connectors%20(including%20Pass-thru%20Authentication%20ones)%2C%20not%20just%20Exchange%20Hybrid%20Agents%2C%20whereas%20HCW%20GUI%20mentioned%20first%20shows%20only%20Exchange%20ones.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EBy%20checking%20HCW%20.log%20and%20looking%20at%20the%20following%20Graph%20Query%3A%20-ERR%3AREF-NOT-FOUND-%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fedu%2F%24metadata%23connectorGroups%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fedu%2F%24metadata%23connectorGroups%3C%2FA%3E%20and%20specifically%20to%20%E2%80%9CDefault%20group%20for%20Exchange%20Online%E2%80%9D%20connectors%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20a%20connector%20for%20Exchange%20Online%20doesn%E2%80%99t%20show%20at%20all%20or%20it%20shows%20but%20status%20is%20inactive%2C%20this%20means%20that%20it%E2%80%99s%20either%20%3CSTRONG%3Enot%20running%3C%2FSTRONG%3E%20or%20%3CSTRONG%3Enot%20registered.%26nbsp%3B%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EWhen%20narrowing%20down%20registration%20issues%2C%20always%20check%20the%20installation%20prerequisites%20as%20mentioned%20%26nbsp%3B-ERR%3AREF-NOT-FOUND-here%20and%20run%20-ERR%3AREF-NOT-FOUND-Test-HybridConnectivity.%3C%2FLI%3E%0A%3CLI%3ECheck%20if%20the%20Hybrid%20Service%20is%20installed%20and%20running%2C%20reference%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23agent-install-location--requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20You%20would%20install%20the%20agent%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23installation-prerequisites%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eautomatically%20via%20HCW%3C%2FA%3E%20when%20choosing%20Modern%20Hybrid%20Topology%20or%20%E2%80%93%20less%20commonly%20%E2%80%93%20-ERR%3AREF-NOT-FOUND-manually%20(in%20case%20of%20installing%20additional%20Agents).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20Agent%20would%20be%20uninstalled%20if%2C%20for%20example%2C%20you%20switched%20from%20Modern%20to%20Classic%20Hybrid%20Topology%20or%20manually%20uninstalled%20the%20Microsoft%20Hybrid%20Service%20in%20Programs%20and%20Features.%3C%2FP%3E%0A%3CP%3EIf%20you%20didn%E2%80%99t%20uninstall%20the%20Microsoft%20Hybrid%20Service%20and%20the%20service%20is%20started%20and%20running%2C%20then%20you%20would%20need%20to%20check%20the%20Hybrid%20Service%20logs.%3C%2FP%3E%0A%3CP%3EIf%20the%20service%20doesn%E2%80%99t%20start%2C%20look%20at%20the%20service%20startup%20logs.%20To%20enable%20the%20logging%2C%20you%20would%20have%20to%20navigate%20to%20Hybrid%20Service%20installation%20path%2C%20for%20example%20C%3A%5CProgram%20Files%5CMicrosoft%20Hybrid%20Service.%20In%20this%20folder%2C%20there%20is%20a%20config%20file%20of%20the%20Hybrid%20Service%20called%20Microsoft.Online.EME.Hybrid.Agent.Service.exe.config.%20You%20would%20run%20the%20Notepad%20as%20Administrator%20and%20then%20open%20this%20config%20file%20to%20edit%20it.%20Remove%20the%20%20characters%20(uncomment%20the%20XML%20comments)%20from%20the%20config%20file%20and%20save%20it.%3C%2FP%3E%0A%3CP%3EThe%20file%20should%20look%20like%20this%20after%20removing%20the%20XML%20comments%20and%20turning%20on%20logging%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22hybagnt19.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F209344i1123FE3C0DDC2A31%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22hybagnt19.jpg%22%20alt%3D%22hybagnt19.jpg%22%20%2F%3E%3C%2FSPAN%3ERestart%20the%20Microsoft%20Hybrid%20Services%20in%20services.msc.%20Follow%20the%20procedure%20from%20-ERR%3AREF-NOT-FOUND-here%20to%20attempt%20a%20connection%20to%20the%20connector.%20Navigate%20to%20these%202%20folders%20and%20check%20the%20HybridService%20logs%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EC%3A%5Cprogramdata%5CMicrosoft%20Hybrid%20Service%5CLogging%3C%2FSTRONG%3E%20will%20have%20logs%20related%20to%20connector%20registration%20and%20startup.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EC%3A%5Cprogramdata%5CMicrosoft%5CMicrosoft%20Hybrid%20Service%5CTrace%3C%2FSTRONG%3E%20will%20have%20logs%20regarding%20application%20requests.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId-1179922799%22%20id%3D%22toc-hId-1179922799%22%20id%3D%22toc-hId-1179922799%22%20id%3D%22toc-hId-1179922799%22%20id%3D%22toc-hId-1179922799%22%20id%3D%22toc-hId-1179922799%22%20id%3D%22toc-hId-1179922799%22%3E%3CFONT%20size%3D%225%22%3EValidating%20the%20Hybrid%20Agent%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EOnce%20we%20established%20that%20the%20Hybrid%20Agent%20is%20installed%2C%20registered%20and%20running%2C%20it%20is%20time%20to%20validate%20its%20functionality.%20%3CBR%20%2F%3EYou%20can%20use%20the%20following%20steps%20to%20validate%20free%2Fbusy%20and%20mailbox%20migration%20flow%20via%20the%20Agent%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23testing-and-validation-of-the-hybrid-agent%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ETesting%20and%20validation%20of%20the%20Hybrid%20Agent.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIf%20the%20requests%20counter%20goes%20up%20when%20doing%20Test-MigrationServerAvailaility%2C%20the%20connector%20is%20fine.%3C%2FP%3E%0A%3CP%3ENext%20thing%20is%20to%20check%20if%20the%20request%20from%20Hybrid%20Agent%20Machine%20reaches%20Exchange%20CAS.%20There%20are%203%20main%20logs%20for%20EWS%20(MRSproxy.svc)%20requests%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EHTTPerr%20logs%3C%2FSTRONG%3E%3A%20%3CEM%3E%25SystemRoot%25%5CSystem32%5CLogFiles%5CHTTPERR%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EIIS%20logs%20for%20Default%20Web%20Site%3C%2FSTRONG%3E%20(DWS)%3A%20%3CEM%3E%25SystemDrive%25%5Cinetpub%5Clogs%5CLogFiles%5CW3SVC1%3C%2FEM%3E%20%E2%80%93%20UTC%20Timezone.%20The%20name%20of%20the%20IIS%20logs%20contains%20the%20date%20of%20the%20log%2C%20for%20example%20u_ex%3CSTRONG%3E190930%3C%2FSTRONG%3E.log%20is%20from%20Sept%2030%2C%202019.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EHTTPProxy%20logs%20for%26nbsp%3BEWS%3C%2FSTRONG%3E%20(available%20in%20Exchange%202013%20or%20later)%3A%20%25ExchangeInstallPath%25Logging%5CHttpProxy%5CEws.%20The%20name%20of%20the%20HTTPProxy%20logs%20contains%20the%20date%20and%20hour%20starting%20to%20log%2C%20for%20example%20HttpProxy_%3CSTRONG%3E%3CSTRONG%3E2019093014-10%3C%2FSTRONG%3E%3C%2FSTRONG%3E.LOG%20(10%3CSUP%3E%3CSUP%3Eth%3C%2FSUP%3E%3C%2FSUP%3E%20log%20from%20Sept%2030%2C%202019%2C%20starting%20hour%2014%3A00%20UTC)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EHere%20are%20some%20tips%20on%20how%20to%20use%20these%20logs%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAlways%20correlate%20the%20time%20HH%3AMM%3ASS%20of%20the%20failed%20request%20with%20these%20logs%20(IIS%20and%20HTTPProxy%20are%20in%20UTC%20time%20zone)%3C%2FLI%3E%0A%3CLI%3EA%20failed%20request%20will%20never%20have%20200%20Status%20code%20(if%20you%20see%20status%20code%20200%20in%20logs%2C%20it%20means%20you%20are%20not%20looking%20at%20the%20failed%20request)%3C%2FLI%3E%0A%3CLI%3EIf%20you%20see%20the%20failed%20request%20in%20HTTPerr%20logs%2C%20they%20probably%20won%E2%80%99t%20be%20present%20in%20IIS%20logs%20or%20HTTPProxy%20logs%20%E2%80%93%20they%20are%20stuck%20%E2%80%98in%20front%20of%E2%80%99%20IIS.%20Check%20for%20the%20reason%20in%20HTTPerr%20logs%20and%20check%20for%20IIS%20misconfiguration%3C%2FLI%3E%0A%3CLI%3EIf%20you%20see%20the%20failed%20requests%20in%20IIS%20logs%20%2C%20then%20you%20can%20do%20-ERR%3AREF-NOT-FOUND-IIS%20failed%20request%20tracing%20on%20that%20status%20code%20and%20check%20further%20the%20detailed%20error%20in%20HTTPProxy%20logs%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EWhen%20doing%20Test-MigrationServerAvailability%20you%20would%20see%20about%205%20entries%20in%20IIS%20logs%20for%20mrsproxy.svc%2C%202%20with%20401%20status%20and%20additional%20ones%20with%20200%20OK%20status.%20In%20case%20of%20an%20error%20in%20Test-MigrationServerAvailability%2C%20let%E2%80%99s%20say%20503%20Service%20Unavailable%2C%20you%20would%20need%20to%20see%20if%20the%20entry%20with%20503%20is%20there%20is%20IIS%20logs.%20%3CBR%20%2F%3E503%20error%20in%20IIS%20log%3A%3C%2FP%3E%0A%3CP%20class%3D%22code%22%3E2020-02-20%2006%3A57%3A42%20192.168.2.50%20POST%20%2FEWS%2Fmrsproxy.svc%20-%20443%20miry%5Cadministrator%204.43.0.1%20-%20503%200%200%20125%3C%2FP%3E%0A%3CP%3EIf%20you%20see%20it%20(example%20above)%2C%20then%20investigate%20the%20HTTPProxy%20logs%20(if%20Exchange%202013%20or%20higher)%20and%20Failed%20Request%20Traces%20in%20IIS%20to%20get%20more%20info%20on%20the%20error.%20For%20the%20above%20example%2C%20you%20can%20narrow%20down%20the%20statuses%20between%20500-599%20as%20an%20example%20for%20this%20situation.%3C%2FP%3E%0A%3CP%3EFor%20most%20common%20errors%20at%20Validate%20Hybrid%20Agent%20phase%20(Test-MigrationServerAvailability%20in%20Modern%20Hybrid)%20and%20their%20fixes%2C%20see%20-ERR%3AREF-NOT-FOUND-my%20other%20blog%20post.%3C%2FP%3E%0A%3CP%3EHope%20you%20find%20this%20helpful!%20I%20realize%20this%20is%20not%20really%20a%20post%20that%20you%20sit%20down%20and%20read%20from%20end%20to%20end%2C%20but%20it%20should%20come%20in%20handy%20when%20troubleshooting!%3C%2FP%3E%0A%3CP%3EI%20wanted%20to%20thank%20Nino%20Bilic%2C%20Jason%20Nelson%2C%20Rob%20Whaley%2C%20Raymond%20Fong%2C%20Mukesh%20Kumar%2C%20Diganta%20Deb%20Roy%20and%20Timothy%20Heeney%20for%20their%20review%20and%20comments%20on%20this%20blog%20post.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22author%22%3EMirela%20Buruiana%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1558725%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20blog%20post%20we%20will%20cover%20more%20than%20you%20%3CEM%3Eever%3C%2FEM%3E%20wanted%20to%20know%20on%20Modern%20Hybrid%20Agent%20troubleshooting.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1558725%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETips%20'n%20Tricks%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETroubleshooting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1572297%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20HCW%20(Hybrid%20Agent)%3A%20troubleshooting%20like%20a%20pro%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1572297%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20supported%20to%20install%20the%20Hybrid%20Agent%20on%20a%20non-domain%20member%20machine%20in%20a%20dmz%3F%20For%20Modern%20HCW%20Migration.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1573206%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20HCW%20(Hybrid%20Agent)%3A%20troubleshooting%20like%20a%20pro%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1573206%22%20slang%3D%22en-US%22%3E%3CP%3EHybrid%20Agent%20Machine%20must%20be%20domain%20joined%20when%20running%20HCW%20on%20it%20as%20it%20needs%20communication%20with%20Domain%20Controller.%3CBR%20%2F%3EReference%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23system-requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23system-requirements%3C%2FA%3E%3CBR%20%2F%3EBut%20it%20might%20work%20if%20you%20choose%20manual%20installation%20on%20the%20DMZ%20machine%20and%20then%20run%20HCW%20on%20the%20Exchange%20CAS%2Fdomain-joined%20machine%3A%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23option-2-manually-download--install-additional-agents%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fhybrid-deployment%2Fhybrid-agent%23option-2-manually-download--install-additional-agents%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E

Most of you are probably familiar with Classic Hybrid Deployments that are automatically configured through classic option in the Hybrid Configuration Wizard (HCW).  In this blog post we will focus on Modern Hybrid Configuration (aka Modern Hybrid Agent) and specifically, Agent troubleshooting.

The 2 mentioned flavors of hybrid deployments are:

hybagnt01.jpgA comparison of the hybrid functionalities configured with these two options can be found in Hybrid Configuration Wizard options article.

Before getting more specific on how to troubleshoot the Modern HCW option, let me give you some information and troubleshooting hints for HCW application in general.

Run the latest version of the HCW

Always make sure you are running the latest HCW version by downloading it from https://aka.ms/hybridwizard or opening it from the Exchange Admin Center.  Why run the latest version? Because many things get fixed in newer builds.
The version of the app can be found in multiple places such as in the HCW Graphical User Interface (GUI) in the top right corner in control panel, under Programs and Features, and in HCW log. Currently, the HCW build numbers are 17.x and if you have the build 16.x, the application will not auto-update to 17.x. Ideally, if you need to re-run HCW you should update to latest 17.x build first. Both versions can coexist on the same machine (not really recommended because you might be confused as to which is which), more info here:

hybagnt02.jpgHybrid Prerequisites and HCW FAQ

Many issues can be prevented if we read thoroughly the prerequisites of HCW modes and frequently asked questions. Here are they:

Admin accounts running HCW

There are 2 types of Admin accounts needed to run HCW:

hybagnt03.jpgOn-premises Exchange Account
This account needs to be member of Organization Management. If you change the account and insert credentials, these credentials will be automatically used for Test-MigrationServerAvailability in case HCW will need to create a Hybrid Migration Endpoint.

For Modern HCW, you would see the Migration Admin here:

hybagnt04.jpgIf you get an “invalid username or password” error in this step of the HCW, check if you have the required permissions for a Remote Mailbox Migration and  that credentials are correct (use domain\account format).

Office 365 Exchange Online Account.

This needs to be either a Global Admin (Exchange Admin included) or simply an Exchange Admin in O365.

Know that you can select 2 types of login to your O365 tenant: Modern Authentication and Basic Authentication (Legacy Login). Note that Basic authentication is being deprecated, but sometimes it’s useful to test it when you have login issues. That option can be found under “Legacy Login”:

hybagnt05.jpgHCW F12 Diagnostic tools

Pressing F12 when in HCW will give you an additional Diagnostic Tools section in HCW UI:

hybagnt06.jpgThis is awesome and very useful when troubleshooting. Let’s mention each of them:

Open Exchange Management Shell

This shortcut opens a PowerShell window and connects to your on-premises Exchange environment.

If, for example, you get HCW failing to run a command in on-premises shell, you can quickly copy the failing command from the HCW log, open this shell and then paste the same command to see if the problem is in the on-premises environment / shell or it’s an issue with HCW itself (very rarely the case).

Another example is if you have issues with connecting to on-premises PowerShell in HCW GUI, you can quickly use this and see if the error is the same.

Open Exchange Online PowerShell

This shortcut opens a PowerShell window and connects to your Exchange Online environment.

hybagnt07.jpgYou would open this up when you see a command failing in Exchange Online PowerShell and use it to run the failing command to see if you get the same outcome.

You would also use it when you get the following error in HCW GUI:

hybagnt08.jpgIn HCW log, you would look for the entry Activity=Tenant Connection Validation for more details on the issue. This entry below suggests that I don’t use a proxy on the machine running HCW to connect to Office 365 Exchange Online PowerShell:

2020.05.29 20:37:37.469         10179 [Client=UX, HTTP GET=https://outlook.office365.com/, Thread=7] Request for https://outlook.office365.com/ does NOT go thru proxy

Open Log File

This opens the current HCW log file. In Notepad, I normally don’t use word wrap when I first open it so that I can have a quick and clear table format view.
This is the main HCW log, date_time.log, where we get information about what HCW version we are using, machine from where we ran HCW, OS and .NET version, on-premises organization current configuration etc.:

  • mailbox databases
  • accepted domains
  • remote domains
  • if a hybrid configuration is already in place
  • if federation trust is in place - in case HCW needs to create it
  • send and receive connectors,
  • virtual directories, etc

We can also see EXO organization current configuration:

  • EXO organization config itself
  • migration endpoints
  • EOP connectors
  • accepted domains
  • remote domains
  • if there is an on-premises organization object, etc.

Create Support Package

This is very useful for us (people in support). This will make a zip of your HCW log files so that you can send it to Microsoft Support. There is a second screen once you click on the link, where you can specify to ZIP logs from the last 24 hours, or within a date range. You then have the option to copy the file to the clipboard so it can be easily attached to an email.

Open Logging Folder

This shortcut opens the folder where HCW logs are located on the machine where you ran HCW.  C:\Users\<admin>\AppData\Roaming\Microsoft\Exchange Hybrid Configuration

hybagnt09.jpgNotable files in this folder:

Date_time.log file was mentioned above during Open Log File.

Date_time .xhcw
The second important log is the .xhcw log. This is an XML log which lists all the cmdlets done by HCW (like Get-*, Set-*, Update-*,Remove-*,New-*) in both EXO and Exchange OnPrem PowerShell sessions.
You would open this file in Notepad, add a starting xml tag like <root> at the beginning and then at the end add </root> as the ending tag and then save the xhcw log as .xml. Then, you can open it in the browser and check /expand the cmdlets. Example:

hybagnt10.jpg

 

Date_time.boot log is the log showing the startup of HCW:

hybagnt11.jpg

 

The .cc log is a small log with extra info regarding your Hybrid Configuration:

hybagnt12.jpg

 

Date_time.hybridconnector.log
This is the setup log for Hybrid Connector (when you install the Hybrid Agent). This log is therefore not present in Classic Hybrid Configs.

hybagnt13.jpgOpen Process Folder

This link opens a Command Prompt with directory set to the HCW process. This can be helpful when we get HCW crashes or some generic errors like “Object reference not set to an instance of an object” and we can combine it with ProcDump tracing of the process. See here for more info on ProcDump download and syntax, we would normally use a quick command like shown below to get the stack exception but if you have to get here with troubleshooting, we advise you open a support case with us: 

procdump.exe -e 1 -f "" Microsoft.Online.CSE.Hybrid.App.exe

Hybrid Agent in Modern HCW
You can learn more about Hybrid Agent architecture here.
This feature will install an agent, built on the same technology as Azure Application Proxy, which will publish the Exchange on-premises environment to Exchange Online to support free/busy and mailbox migrations without many of the challenges customers previously faced with external DNS, publishing of EWS and inbound connections ports having to be opened. The secret sauce here is that the Hybrid Agent registers a custom URL for only your tenant in the following format:

<guid>.resource.mailboxmigration.his.msappproxy.net

This URL is then used by the Organization Relationship or the Intra Organization Connector and the Mailbox Replication Service to route requests from your tenant to on-premises. This URL is only accessible from Exchange Online. Free/busy requests from cloud users to on-premises and mailbox migrations to/from the cloud are the two flows currently supported through the Hybrid Agent.

Where exactly in the hybrid configuration can we see this URL ending in “his.msapproxy.net”? Here are some of the cmdlets that will show you were the URL is used:

  • Get-MigrationEndpoint (RemoteServer value)
  • Get-IntraOrganizationConnector (TargetSharingEpr value)
  • Get-OrganizationRelationship (TargetSharingEpr value)

Determine the Hybrid Agent route
Simply put, the Hybrid Agent is the middle man between the Exchange Online servers and the on-premises Exchange Server(s) and you can think of it as an Inbound Connector for HTTPS traffic from EXO to on-premises Exchange. The Hybrid Agent accepts traffic only from Exchange Online Servers.
A simple schema of the inbound route to Exchange on-premises Modern Hybrid would be the following:
EXO > Hybrid Agent (External URL) > Load Balancer or Exchange On Prem Server (Internal URL).
You can check the Connector route with the Get-HybridApplication cmdlet available with the Hybrid Management PowerShell Module:

hybagnt14_2.jpg

From this screenshot, we can tell that the external URI is https://<GUID>.resource.mailboxmigration.his.msappproxy.net  (externalUrl parameter) and that connections to this published namespace will be relayed to your Exchange Server or Load Balancer: https://internalFQDN/  (my lab machine in this example being mirebm340vm.domain.lab which is internalUrl)

The external URI should be resolvable in public DNS, You can use nslookup and resolve-dnsname to check if the Hybrid Agent is correctly published for my Office 365 tenant.
You can also check the Hybrid Connector Route in HCW log (ConnectorRoute value) and by looking at the output of the following Graph query: https://graph.microsoft.com/edu/$metadata#applications
ConnectorRoute in HCW log showing externalUrl and internalUrl

hybagnt15.jpg

 

Graph Query in HCW log which shows the Hybrid Application:

hybagnt16.jpgIf there is no application returned in Get-HybridApplication, re-run the HCW with Modern Hybrid Topology option. It will restore the application.

If an application is returned, but the Exchange CAS server machine pointed to is not available, Update-HybridApplication allows you to reset the target URI to another CAS server or load balancer (supported only for Exchange 2013 MRSproxy servers and above). See more on this step here.

Setting up the Hybrid Agent in Modern HCW

There are 4 phases when setting up the Hybrid Agent via HCW:

  1. Download the agent install package.
  2. Installation of the agent on the local computer (this prompts for your Office 365 Global Administrator credentials again).
  3. Registration of the agent in Azure, including creation of the URL used to proxy requests. The URL has the format we already discussed: <uniqueGUID>.resource.mailboxmigration.his.msappproxy.net.
  4. Testing migration viability from your Office 365 tenant to your on-premises Exchange organization via the agent.

Starting with HCW version 17.x, we also have a Hybrid Updater Agent step which will be visible in HCW UI:

hybagnt17.jpgDetermine if the Hybrid Agent is installed and running

The Hybrid Agent may be running on a Client Access Server (CAS), or it may be running in the DMZ, but it must be running somewhere. The first step is to go to that machine and check the status of the service (Microsoft Hybrid Service should be started) and if the Hybrid Connector is up and running.

There are a few methods of checking if the Hybrid Agent is Active (registered and running) or Inactive (not registered or not running):

  • By running HCW and choosing Modern Hybrid Topology, reference here
  • Using the Get-Hybrid Agent cmdlet, available in the Hybrid Management PowerShell Module, reference here
    Get-HybridAgent -Credential (get-credential <O365Admin>)

hybagnt18_2.jpg

Note that this cmdlet will return all Azure Proxy Connectors (including Pass-thru Authentication ones), not just Exchange Hybrid Agents, whereas HCW GUI mentioned first shows only Exchange ones.

If a connector for Exchange Online doesn’t show at all or it shows but status is inactive, this means that it’s either not running or not registered. 

  • When narrowing down registration issues, always check the installation prerequisites as mentioned  here and run Test-HybridConnectivity.
  • Check if the Hybrid Service is installed and running, reference here. You would install the agent automatically via HCW when choosing Modern Hybrid Topology or – less commonly – manually (in case of installing additional Agents).

The Agent would be uninstalled if, for example, you switched from Modern to Classic Hybrid Topology or manually uninstalled the Microsoft Hybrid Service in Programs and Features.

If you didn’t uninstall the Microsoft Hybrid Service and the service is started and running, then you would need to check the Hybrid Service logs.

If the service doesn’t start, look at the service startup logs. To enable the logging, you would have to navigate to Hybrid Service installation path, for example C:\Program Files\Microsoft Hybrid Service. In this folder, there is a config file of the Hybrid Service called Microsoft.Online.EME.Hybrid.Agent.Service.exe.config. You would run the Notepad as Administrator and then open this config file to edit it. Remove the <!— and --> characters (uncomment the XML comments) from the config file and save it.

The file should look like this after removing the XML comments and turning on logging:

hybagnt19.jpgRestart the Microsoft Hybrid Services in services.msc. Follow the procedure from here to attempt a connection to the connector. Navigate to these 2 folders and check the HybridService logs:

  • C:\programdata\Microsoft Hybrid Service\Logging will have logs related to connector registration and startup.
  • C:\programdata\Microsoft\Microsoft Hybrid Service\Trace will have logs regarding application requests.

Validating the Hybrid Agent

Once we established that the Hybrid Agent is installed, registered and running, it is time to validate its functionality.
You can use the following steps to validate free/busy and mailbox migration flow via the Agent: Testing and validation of the Hybrid Agent.

If the requests counter goes up when doing Test-MigrationServerAvailaility, the connector is fine.

Next thing is to check if the request from Hybrid Agent Machine reaches Exchange CAS. There are 3 main logs for EWS (MRSproxy.svc) requests:

  • HTTPerr logs: %SystemRoot%\System32\LogFiles\HTTPERR
  • IIS logs for Default Web Site (DWS): %SystemDrive%\inetpub\logs\LogFiles\W3SVC1 – UTC Timezone. The name of the IIS logs contains the date of the log, for example u_ex190930.log is from Sept 30, 2019.
  • HTTPProxy logs for EWS (available in Exchange 2013 or later): %ExchangeInstallPath%Logging\HttpProxy\Ews. The name of the HTTPProxy logs contains the date and hour starting to log, for example HttpProxy_2019093014-10.LOG (10th log from Sept 30, 2019, starting hour 14:00 UTC)

Here are some tips on how to use these logs:

  • Always correlate the time HH:MM:SS of the failed request with these logs (IIS and HTTPProxy are in UTC time zone)
  • A failed request will never have 200 Status code (if you see status code 200 in logs, it means you are not looking at the failed request)
  • If you see the failed request in HTTPerr logs, they probably won’t be present in IIS logs or HTTPProxy logs – they are stuck ‘in front of’ IIS. Check for the reason in HTTPerr logs and check for IIS misconfiguration
  • If you see the failed requests in IIS logs , then you can do IIS failed request tracing on that status code and check further the detailed error in HTTPProxy logs

When doing Test-MigrationServerAvailability you would see about 5 entries in IIS logs for mrsproxy.svc, 2 with 401 status and additional ones with 200 OK status. In case of an error in Test-MigrationServerAvailability, let’s say 503 Service Unavailable, you would need to see if the entry with 503 is there is IIS logs.
503 error in IIS log:

2020-02-20 06:57:42 192.168.2.50 POST /EWS/mrsproxy.svc - 443 miry\administrator 4.43.0.1 - 503 0 0 125

If you see it (example above), then investigate the HTTPProxy logs (if Exchange 2013 or higher) and Failed Request Traces in IIS to get more info on the error. For the above example, you can narrow down the statuses between 500-599 as an example for this situation.

For most common errors at Validate Hybrid Agent phase (Test-MigrationServerAvailability in Modern Hybrid) and their fixes, see my other blog post.

Hope you find this helpful! I realize this is not really a post that you sit down and read from end to end, but it should come in handy when troubleshooting!

I wanted to thank Nino Bilic, Jason Nelson, Rob Whaley, Raymond Fong, Mukesh Kumar, Diganta Deb Roy and Timothy Heeney for their review and comments on this blog post.

Mirela Buruiana

3 Comments
Microsoft

Hi everyone,

My name is Mirela and I am the main author of this blog. Please reply to this comment if you want me to get notified about your comment / query.
Happy troubleshooting!

 

Senior Member

Hi,

 

Is it supported to install the Hybrid Agent on a non-domain member machine in a dmz? For Modern HCW Migration.

 

Kind Regards

Microsoft

Hybrid Agent Machine must be domain joined when running HCW on it as it needs communication with Domain Controller.
Reference: https://docs.microsoft.com/en-us/exchange/hybrid-deployment/hybrid-agent#system-requirements
But it might work if you choose manual installation on the DMZ machine and then run HCW on the Exchange CAS/domain-joined machine:  https://docs.microsoft.com/en-us/exchange/hybrid-deployment/hybrid-agent#option-2-manually-download-...