ALA agent issue

%3CLINGO-SUB%20id%3D%22lingo-sub-1526055%22%20slang%3D%22en-US%22%3EALA%20agent%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1526055%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20connected%20two%20server%20in%20ALA%20and%20both%20are%20reflecting%20as%20connected%20but%20when%20I%20am%20trying%20to%20setup%20them%20under%20update%20management%20then%20I%20am%20getting%20below%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3EA%20module%20of%20type%20%22Microsoft.EnterpriseManagement.HealthService.AzureAutomation.HybridAgent%22%20reported%20an%20exception%20Microsoft.EnterpriseManagement.HealthService.ModuleException%3A%20Unable%20to%20Register%20Machine%20for%20Patch%20Management%2C%20Registration%20Failed%20with%20Exception%20System.InvalidOperationException%3A%20System.Net.Http.HttpRequestException%3A%20An%20error%20occurred%20while%20sending%20the%20request.%20---%26gt%3B%20System.Net.WebException%3A%20Unable%20to%20connect%20to%20the%20remote%20server%20---%26gt%3B%20System.Net.Sockets.SocketException%3A%20A%20connection%20attempt%20failed%20because%20the%20connected%20party%20did%20not%20properly%20respond%20after%20a%20period%20of%20time%2C%20or%20established%20connection%20failed%20because%20connected%20host%20has%20failed%20to%20respond%2051.104.8.241%3A443%3CBR%20%2F%3Eat%20System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult%20asyncResult)%3CBR%20%2F%3Eat%20System.Net.Sockets.Socket.EndConnect(IAsyncResult%20asyncResult)%3CBR%20%2F%3Eat%20System.Net.ServicePoint.ConnectSocketInternal(Boolean%20connectFailure%2C%20Socket%20s4%2C%20Socket%20s6%2C%20Socket%26amp%3B%20socket%2C%20IPAddress%26amp%3B%20address%2C%20ConnectSocketState%20state%2C%20IAsyncResult%20asyncResult%2C%20Exception%26amp%3B%20exception)%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3Eat%20System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult%20asyncResult%2C%20TransportContext%26amp%3B%20context)%3CBR%20%2F%3Eat%20System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult%20ar)%3CBR%20%2F%3E---%20End%20of%20inner%20exception%20stack%20trace%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20AgentService.HybridRegistration.PowerShell.WebClient.AgentServiceClient.%3CPUT%3Ed__30%602.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20AgentService.HybridRegistration.PowerShell.WebClient.AgentServiceClient.%3CREGISTERV2%3Ed__18.MoveNext()%3CBR%20%2F%3E---%20End%20of%20stack%20trace%20from%20previous%20location%20where%20exception%20was%20thrown%20---%3CBR%20%2F%3Eat%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%3CBR%20%2F%3Eat%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%3CBR%20%2F%3Eat%20AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.%26lt%3BRegisterWithService%26gt%3Bd__62.MoveNext()%3C%2FREGISTERV2%3E%3C%2FPUT%3E%3C%2FPRE%3E%3CPRE%3Eat%20AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.ExtractErrorMessageAndThrow(AggregateException%20exception)%3CBR%20%2F%3Eat%20AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.RegisterGroupInDatabase()%3CBR%20%2F%3Eat%20AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.Register()%20AgentServiceURI%3A%20https%3A%2F%2FXXXXXXXXXX8c42497cad0d.agentsvc.azure-automation.net%2Faccounts%2F3XXXXXX-8c42497cad0d%20which%20was%20running%20as%20part%20of%20rule%20%22Microsoft.IntelligencePacks.AzureAutomation.HybridAgent.Init%22%20running%20for%20instance%20%22%22%20with%20id%3A%22%7BAXXXXXXXXXXXX-8A6XXX2A26%7D%22%20in%20management%20group%20%22AOI-3XXXXXXXd6-46bc-a47e-8c4XXXd0d%22.%3C%2FPRE%3E%3CP%3E%26nbsp%3BThere%20is%20no%20additional%20rule%20on%20NSGs%20and%20I%20did%20create%20a%20allow%20rule%20with%20source%20AzureMonitor%20and%20Destination%20Server%20Subnet%20as%20inbound%20and%20a%20outbound%20with%20Source%20Server%20subnet%20and%20destination%20AzureMonitor%20but%20no%20luck.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1526055%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAgents%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1552622%22%20slang%3D%22en-US%22%3ERe%3A%20ALA%20agent%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1552622%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F184511%22%20target%3D%22_blank%22%3E%40Gourav%20Kumar%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EWhere%20do%20you%20see%20them%20reflected%20as%20connect%3F%3C%2FP%3E%0A%3CP%3EAre%20you%20getting%20any%20logs%20from%20thoese%20servers%3F%20Heartbeats%20for%20example%3F%20(try%20running%20%22Heartbeat%22%20as%20a%20query%20in%20your%20Logs%20page%20to%20see%20results).%3C%2FP%3E%0A%3CP%3EAlso%2C%20check%20the%20Log%20Analytics%20agent%20connectivity%20requirements%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fagent-windows-troubleshoot%23connectivity-issues%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EThere%20are%20additional%20networking%20requirements%20for%20Update%20Management%2C%20see%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fautomation%2Fautomation-update-management%23ports%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi All,

 

I have connected two server in ALA and both are reflecting as connected but when I am trying to setup them under update management then I am getting below error.

 

A module of type "Microsoft.EnterpriseManagement.HealthService.AzureAutomation.HybridAgent" reported an exception Microsoft.EnterpriseManagement.HealthService.ModuleException: Unable to Register Machine for Patch Management, Registration Failed with Exception System.InvalidOperationException: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 51.104.8.241:443
at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AgentService.HybridRegistration.PowerShell.WebClient.AgentServiceClient.<Put>d__30`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AgentService.HybridRegistration.PowerShell.WebClient.AgentServiceClient.<RegisterV2>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.<RegisterWithService>d__62.MoveNext()
at AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.ExtractErrorMessageAndThrow(AggregateException exception)
at AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.RegisterGroupInDatabase()
at AgentService.OmsHybridRegistration.PowerShell.Commandlets.OmsHybridRunbookWorker.Register() AgentServiceURI: https://XXXXXXXXXX8c42497cad0d.agentsvc.azure-automation.net/accounts/3XXXXXX-8c42497cad0d which was running as part of rule "Microsoft.IntelligencePacks.AzureAutomation.HybridAgent.Init" running for instance "" with id:"{AXXXXXXXXXXXX-8A6XXX2A26}" in management group "AOI-3XXXXXXXd6-46bc-a47e-8c4XXXd0d".

 There is no additional rule on NSGs and I did create a allow rule with source AzureMonitor and Destination Server Subnet as inbound and a outbound with Source Server subnet and destination AzureMonitor but no luck.

 

Thanks in advance!

1 Reply

Hi @Gourav Kumar,

Where do you see them reflected as connect?

Are you getting any logs from thoese servers? Heartbeats for example? (try running "Heartbeat" as a query in your Logs page to see results).

Also, check the Log Analytics agent connectivity requirements here.

There are additional networking requirements for Update Management, see here.