Azure ATP Service Fails to Start

%3CLINGO-SUB%20id%3D%22lingo-sub-656522%22%20slang%3D%22en-US%22%3EAzure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-656522%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20deploying%20Azure%20ATP%20with%20a%20client%20and%20we%20have%20installed%20a%20standalone%20sensor.%20The%20Azure%20ATP%20service%20tries%20to%20start%20and%20then%20stops.%20We're%20seeing%20an%20error%20stating%20%22Sequence%20contains%20no%20elements%22.%20Attached%20is%20a%20screenshot%20of%20the%20errors.%20Has%20anyone%20seen%20this%20error%20before%3F%20Any%20guidance%20is%20appreciated.%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-656922%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-656922%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329780%22%20target%3D%22_blank%22%3E%40meliss0215%3C%2FA%3E%26nbsp%3B%2C%20you%20most%20likely%20missed%20this%20step%20in%20the%20system%20configuration%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-advanced-threat-protection%2Finstall-atp-step2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-advanced-threat-protection%2Finstall-atp-step2%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eso%20the%20sensor%20does%20not%20have%20the%20needed%20info%20to%20start%20properly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-657230%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-657230%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3Bfor%20the%20advice!%20We%20did%20configure%20a%20username%20and%20password%20to%20connect%20to%20AD%2C%20but%20I%20will%20double%20check%20this%20again.%20I%20did%20see%20another%20post%20where%20you%20mentioned%20there%20could%20be%26nbsp%3Beither%20a%20missing%20or%20duplicate%20NTDS%20settings%20record%20for%20a%20similar%20error.%20Would%20this%20be%20something%20to%20look%20at%20too%3F%20I%20didn't%20see%20any%20documentation%20regarding%20this%20may%20cause%20an%20issue%20for%20Azure%20ATP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-657550%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-657550%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329780%22%20target%3D%22_blank%22%3E%40meliss0215%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENo%2C%20NTDS%20setting%20is%20a%20different%20callstack..%20I%20don't%20think%20it's%20related%20here.%3C%2FP%3E%0A%3CP%3EHow%20many%20credentials%20did%20you%20provide%20in%20the%20mentioned%20step%3F%20do%20you%20have%20coverage%20with%20these%20credentials%20to%20cover%20all%20the%20domains%2Fforests%20which%20might%20not%20be%20working%20with%20full%20trust%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-660612%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-660612%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3BWe%20only%20added%20one%20set%20of%20AD%20Credentials.%20I%20took%20a%20look%20at%20the%20trusts%20as%20shown%20in%20the%20attached%20file.%20I%20also%20included%20the%20service%20account%20we%20are%20using.%20I'm%20having%20my%20customer%20take%20a%20look%20to%20see%20that%20account%20can%20cover%20all%20domains%2Fforests%20in%20the%20environment.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-660630%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-660630%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F329780%22%20target%3D%22_blank%22%3E%40meliss0215%3C%2FA%3E%26nbsp%3B%20External%20trust%20won't%20work%20with%20a%20single%20credential%2C%20you%20will%20need%20to%20add%20more%20credentials%20to%20cover%20everything.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661425%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661425%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20information.%20My%20customer%20is%20looking%20into%20the%20external%20trusts.%20To%20clarify%2C%20we%20cannot%20specify%20a%20single%20domain%2C%20Azure%20ATP%20looks%20at%20all%20of%20the%20domains%20listed%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661427%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661427%22%20slang%3D%22en-US%22%3E%3CP%3ETo%20get%20a%20good%20experience%2C%20you%20need%20to%20cover%20all%20the%20forest.%20if%20you%20have%20several%20forests%2C%20with%20any%20kind%20of%20trust%2C%20which%20means%20they%20can%20talk%20to%20each%20other%2C%20you%20will%20need%20credentials%20to%20cover%20all%20of%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-665298%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-665298%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20insight.%20This%20is%20very%20helpful.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-736953%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-736953%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20like%20to%20add%20to%20this%20thread%2C%20I'm%20seeing%20seemingly%20the%20exact%20same%20error%20when%20deploying%20to%20production.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20context%2C%20we%20deployed%20to%20a%20test%20environment%20(each%20environment%20looks%20like%3A%20Two%20forests%2C%20primary%20forest%20has%20company.com%20and%20two%20child.company.com%20domains%2C%20second%20forest%20has%20an%20external%20trust)%20with%20only%20a%20single%20account%20in%20the%20primary%20child%20domain%2C%20and%20that%20worked%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20when%20trying%20to%20install%20a%20standalone%20sensor%2C%20I%20get%20the%20same%20error%20as%20in%20the%20first%20screenshot%20here%3A%3C%2FP%3E%3CP%3E2019-07-03%2018%3A30%3A29.2434%20Error%20Enumerable%20System.InvalidOperationException%3A%20Sequence%20contains%20no%20elements%3CBR%20%2F%3Eat%20TSource%20System.Linq.Enumerable.First%3CTSOURCE%3E(IEnumerable%3CTSOURCE%3E%20source)%3CBR%20%2F%3Eat%20void%20Microsoft.Tri.Sensor.DomainNetworkCredentialsManager.UpdateConfigurations(ConfigurationCollection%20configurations)%3CBR%20%2F%3Eat%20Func%3CTASK%3E%20Microsoft.Tri.Infrastructure.ActionExtension.ToAsyncFunction(Action%20action)%2B(TItem%20_)%20%3D%26gt%3B%20%7B%20%7D%3CBR%20%2F%3Eat%20async%20Task%20Microsoft.Tri.Infrastructure.ConfigurationManager.RegisterConfigurationAsync(Func%3CCONFIGURATIONCOLLECTION%3E%20onConfigurationsUpdateAsync%2C%20Type%5B%5D%20configurationTypes)%3CBR%20%2F%3Eat%20void%20Microsoft.Tri.Infrastructure.TaskExtension.Await(Task%20task)%3CBR%20%2F%3Eat%20new%20Microsoft.Tri.Sensor.DomainNetworkCredentialsManager(IConfigurationManager%20configurationManager)%3CBR%20%2F%3Eat%20object%20lambda_method(Closure%2C%20object%5B%5D)%3CBR%20%2F%3Eat%20object%20Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()%3CBR%20%2F%3Eat%20void%20Microsoft.Tri.Infrastructure.ModuleManager.AddModules(Type%5B%5D%20moduleTypes)%3CBR%20%2F%3Eat%20ModuleManager%20Microsoft.Tri.Sensor.SensorService.CreateModuleManager()%3CBR%20%2F%3Eat%20async%20Task%20Microsoft.Tri.Infrastructure.Service.OnStartAsync()%3CBR%20%2F%3Eat%20void%20Microsoft.Tri.Infrastructure.TaskExtension.Await(Task%20task)%3CBR%20%2F%3Eat%20void%20Microsoft.Tri.Infrastructure.Service.OnStart(string%5B%5D%20args)%3C%2FCONFIGURATIONCOLLECTION%3E%3C%2FTASK%3E%3C%2FTSOURCE%3E%3C%2FTSOURCE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20the%20account%20for%20both%20the%20child.testcompany.com%20and%20child.company.com%20domains%20listed%20in%20the%20ATP%20domain%20services%20config.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAccording%20to%20the%26nbsp%3B%3CA%20title%3D%22documentation%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-advanced-threat-protection%2Fatp-multi-forest%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3A%3C%2FA%3E%3C%2FP%3E%3CUL%3E%3CLI%3EAdd%20credentials%20on%20the%20Directory%20services%20page%20for%20all%20forests%20in%20your%20environment.%3CUL%3E%3CLI%3EOne%20credential%20is%20required%20per%20forest%20with%20two-way%20trust.%3C%2FLI%3E%3CLI%3EAdditional%20credentials%20are%20required%20for%20each%20forest%20with%20non-Kerberos%20trust%20or%20no%20trust.%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EIf%20I'm%20reading%20this%20right%2C%20we%20should%20only%20need%20two%20credentials%20per%20environment.%26nbsp%3B%20One%20for%20the%20primary%20forest%20'company.com'%20and%20its%20child%20domains%2C%20as%20well%20as%20one%20for%20the%20external%20trusted%20domain%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20have%20all%20that%20right%2C%20I'm%20wondering%20two%20things%3A%3C%2FP%3E%3COL%3E%3CLI%3EWhy%20this%20worked%20in%20test%3F%3COL%3E%3CLI%3EThe%20only%20difference%20is%20that%20we%20started%20with%20the%20Domain%20controller%20sensors%20in%20test%2C%20but%20in%20prod%20we%20are%20installing%20a%20standalone%20sensor%20to%20start%20with.%26nbsp%3B%20We%20do%20not%20have%20a%20standalone%20sensor%20in%20test.%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3CLI%3EHow%20are%20you%20supposed%20to%20configure%20this%20if%20you%20have%20external%20trusts%20to%20forests%20you%20don't%20have%20any%20control%20over%2C%20and%20can't%20create%20an%20account%20in%3F%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737062%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737062%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F267811%22%20target%3D%22_blank%22%3E%40nomeara%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20standalone%20one%2C%20did%20you%20configure%20it%20as%20to%20which%20mirrored%20DC%20it%20is%20monitoring%3F%3C%2FP%3E%0A%3CP%3Ewhile%20integrated%20is%20auto%20configured%2C%20in%20standalone%20you%20need%20to%20manually%20configure.%3C%2FP%3E%0A%3CP%3EJust%20wanted%20to%20make%20sure%20the%20basics%20are%20correct.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20a%20forest%20with%20an%20external%20trust%20only%2C%20and%20no%20read%20only%20account%20there%2C%26nbsp%3B%20you%20can't%20monitor%20it...%3C%2FP%3E%0A%3CP%3EBut%20how%20could%20you%20anyway%3F%20I%20am%20guessing%20you%20can't%20install%20a%20sensor%20there%20...%3C%2FP%3E%0A%3CP%3EOr%20maybe%20I%20misunderstood%20what%20you%20are%20after%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737072%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737072%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20quick%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20not%20configured%20it%20to%20mirror%20any%20DCs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1%3A%20The%20instructions%20show%20that%20step%20as%20after%20this%20step%2C%20and%20we%20are%20not%20even%20getting%20the%20service%20to%20start%2C%20which%20appears%20to%20be%20expected%20before%20configuring%20the%20mirroring%20settings.%3C%2FP%3E%3CP%3E2%3A%20This%20particular%20sensor%20is%20being%20installed%20to%20accept%20vpn%20accounting%20logs%20via%20RADIUS%2C%20not%20to%20mirror%20a%20domain%20controller.%26nbsp%3B%20Is%20this%20not%20a%20supported%20configuration%3F%26nbsp%3B%20%26nbsp%3BWe%20will%20be%20installing%20sensors%20on%20the%20DCs%20separately%20for%20monitoring%20them.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737161%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Fails%20to%20Start%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737161%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F267811%22%20target%3D%22_blank%22%3E%40nomeara%3C%2FA%3E%26nbsp%3B%2C%20A%20standalone%20Gateway%20that%20monitor%20no%20DC%20is%20not%20a%20supported%20scenario.%3C%2FP%3E%0A%3CP%3Eit%20needs%20at%20least%20once%20DC%20to%20monitor%2C%20or%20else%20it%20will%20keep%20restarting%20and%20failing%20on%20a%20callstack%20similar%20to%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E2019-07-03%2020%3A48%3A45.4181%205656%205%20%20%20Error%20%5BDirectoryServicesClient%2B%26lt%3BOnInitializeAsync%26gt%3Bd__14%5D%20Microsoft.Tri.Infrastructure.Utils.ExtendedException%3A%20Domain%20controllers%20are%20not%20configured%0A%20%20%20at%20async%20Microsoft.Tri.Gateway.Resolution.DirectoryServices.DirectoryServicesClient.OnInitializeAsync(%3F)%0A%20%20%20at%20async%20Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(%3F)%0A%20%20%20at%20async%20Microsoft.Tri.Infrastructure.Framework.ModuleManager.OnInitializeAsync(%3F)%0A%20%20%20at%20async%20Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(%3F)%0A%20%20%20at%20async%20Microsoft.Tri.Infrastructure.Framework.Service.OnStartAsync(%3F)%0A%20%20%20at%20Microsoft.Tri.Infrastructure.Framework.Service.OnStart(String%5B%5D%20args)%3C%2FPRE%3E%0A%3CP%3EAlthough%20it's%20not%20the%20stack%20you%20have%20seen%2C%20so%20I%20guess%20you%20have%20some%20kind%20of%20additional%20issue%20there%2C%20but%20even%20if%20you%20go%20past%20that%2C%20you%20will%20get%20stuck%20on%20the%20above%20issue%2C%20so%20save%20your%20time%20and%20don't%20try%20it...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20options%20are%20either%20to%20route%20the%20VPN%20traffic%20to%20one%20of%20the%20integrated%20sensors%2C%20or%20monitor%20one%20of%20the%20DCs%20using%20port%20mirroring%20and%20a%20standalone%20sensor%2C%20those%20are%20the%20only%20supported%20scenarios%2C%20at%20least%20for%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi Everyone,

 

I'm deploying Azure ATP with a client and we have installed a standalone sensor. The Azure ATP service tries to start and then stops. We're seeing an error stating "Sequence contains no elements". Attached is a screenshot of the errors. Has anyone seen this error before? Any guidance is appreciated. Thanks!

12 Replies

@meliss0215 , you most likely missed this step in the system configuration:

https://docs.microsoft.com/en-us/azure-advanced-threat-protection/install-atp-step2

 

so the sensor does not have the needed info to start properly.

 

Thanks @Eli Ofek for the advice! We did configure a username and password to connect to AD, but I will double check this again. I did see another post where you mentioned there could be either a missing or duplicate NTDS settings record for a similar error. Would this be something to look at too? I didn't see any documentation regarding this may cause an issue for Azure ATP.

@meliss0215 

No, NTDS setting is a different callstack.. I don't think it's related here.

How many credentials did you provide in the mentioned step? do you have coverage with these credentials to cover all the domains/forests which might not be working with full trust?

@Eli Ofek We only added one set of AD Credentials. I took a look at the trusts as shown in the attached file. I also included the service account we are using. I'm having my customer take a look to see that account can cover all domains/forests in the environment.

@meliss0215  External trust won't work with a single credential, you will need to add more credentials to cover everything.

@Eli Ofek Thanks for the information. My customer is looking into the external trusts. To clarify, we cannot specify a single domain, Azure ATP looks at all of the domains listed?

To get a good experience, you need to cover all the forest. if you have several forests, with any kind of trust, which means they can talk to each other, you will need credentials to cover all of them.

@Eli Ofek thanks for the insight. This is very helpful. 

@Eli Ofek 

I'd like to add to this thread, I'm seeing seemingly the exact same error when deploying to production.

 

For context, we deployed to a test environment (each environment looks like: Two forests, primary forest has company.com and two child.company.com domains, second forest has an external trust) with only a single account in the primary child domain, and that worked fine.

 

However, when trying to install a standalone sensor, I get the same error as in the first screenshot here:

2019-07-03 18:30:29.2434 Error Enumerable System.InvalidOperationException: Sequence contains no elements
at TSource System.Linq.Enumerable.First<TSource>(IEnumerable<TSource> source)
at void Microsoft.Tri.Sensor.DomainNetworkCredentialsManager.UpdateConfigurations(ConfigurationCollection configurations)
at Func<Task> Microsoft.Tri.Infrastructure.ActionExtension.ToAsyncFunction(Action action)+(TItem _) => { }
at async Task Microsoft.Tri.Infrastructure.ConfigurationManager.RegisterConfigurationAsync(Func<ConfigurationCollection, Task> onConfigurationsUpdateAsync, Type[] configurationTypes)
at void Microsoft.Tri.Infrastructure.TaskExtension.Await(Task task)
at new Microsoft.Tri.Sensor.DomainNetworkCredentialsManager(IConfigurationManager configurationManager)
at object lambda_method(Closure, object[])
at object Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at void Microsoft.Tri.Infrastructure.ModuleManager.AddModules(Type[] moduleTypes)
at ModuleManager Microsoft.Tri.Sensor.SensorService.CreateModuleManager()
at async Task Microsoft.Tri.Infrastructure.Service.OnStartAsync()
at void Microsoft.Tri.Infrastructure.TaskExtension.Await(Task task)
at void Microsoft.Tri.Infrastructure.Service.OnStart(string[] args)

 

We have the account for both the child.testcompany.com and child.company.com domains listed in the ATP domain services config.

 

According to the documentation:

  • Add credentials on the Directory services page for all forests in your environment.
    • One credential is required per forest with two-way trust.
    • Additional credentials are required for each forest with non-Kerberos trust or no trust.

If I'm reading this right, we should only need two credentials per environment.  One for the primary forest 'company.com' and its child domains, as well as one for the external trusted domain?

 

If I have all that right, I'm wondering two things:

  1. Why this worked in test?
    1. The only difference is that we started with the Domain controller sensors in test, but in prod we are installing a standalone sensor to start with.  We do not have a standalone sensor in test.
  2. How are you supposed to configure this if you have external trusts to forests you don't have any control over, and can't create an account in?

@nomeara 

For the standalone one, did you configure it as to which mirrored DC it is monitoring?

while integrated is auto configured, in standalone you need to manually configure.

Just wanted to make sure the basics are correct.

 

If you have a forest with an external trust only, and no read only account there,  you can't monitor it...

But how could you anyway? I am guessing you can't install a sensor there ...

Or maybe I misunderstood what you are after?

@Eli Ofek 

 

Thanks for the quick reply.

 

We have not configured it to mirror any DCs.

 

1: The instructions show that step as after this step, and we are not even getting the service to start, which appears to be expected before configuring the mirroring settings.

2: This particular sensor is being installed to accept vpn accounting logs via RADIUS, not to mirror a domain controller.  Is this not a supported configuration?   We will be installing sensors on the DCs separately for monitoring them.

@nomeara , A standalone Gateway that monitor no DC is not a supported scenario.

it needs at least once DC to monitor, or else it will keep restarting and failing on a callstack similar to this:

 

2019-07-03 20:48:45.4181 5656 5   Error [DirectoryServicesClient+<OnInitializeAsync>d__14] Microsoft.Tri.Infrastructure.Utils.ExtendedException: Domain controllers are not configured
   at async Microsoft.Tri.Gateway.Resolution.DirectoryServices.DirectoryServicesClient.OnInitializeAsync(?)
   at async Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(?)
   at async Microsoft.Tri.Infrastructure.Framework.ModuleManager.OnInitializeAsync(?)
   at async Microsoft.Tri.Infrastructure.Framework.Module.InitializeAsync(?)
   at async Microsoft.Tri.Infrastructure.Framework.Service.OnStartAsync(?)
   at Microsoft.Tri.Infrastructure.Framework.Service.OnStart(String[] args)

Although it's not the stack you have seen, so I guess you have some kind of additional issue there, but even if you go past that, you will get stuck on the above issue, so save your time and don't try it...

 

You options are either to route the VPN traffic to one of the integrated sensors, or monitor one of the DCs using port mirroring and a standalone sensor, those are the only supported scenarios, at least for now.