question

jianhuang avatar image
0 Votes"
jianhuang asked bharathn-msft edited

Unable to Connect Log Analytic Agent to Log Analytic Workspace via custom DNS Server

Hi all,

When I am connecting log analytic agent to log analytic workspace via azure provided dns server, it is working fine, however when I changed the dns server to a custom one, then it failed with following message:

[{"heartbeat":{"code":12007,"formattedMessage":{"lang":"en-US","message":"DNS name resolution of the Microsoft Operations Management Suite service failed. This could be due to either the Workspace ID being configured incorrectly, or the agent not having Internet access. Please check that the system either has Internet access, or that a valid HTTP proxy has been configured for the agent."},"status":"notready"},"timestampUTC":"2021-09-19T19:50:03.6117325Z","version":"1.0"}]

if I try to run the built in '.\TestCloudConnection.exe', i got following error:
Firewall troubleshooting details: "The remote name could not be resolved: 'loganalyticid.oms.opinsights.azure.com'"

The vm machine has internet connection as I have tested with ping google.com, and it is fine.

I have been searching for online for solutions but so far no luck, also I have ensured the firewall is turned off, and network security group has the internet outbound connectivity.

The only way to make it work is when I use azure provided dns server, such as following:
133384-image.png

That means there is some configurations that I need to do in order to allow the custom dns server to resolve the remote name *.oms.opinsights.azure.com

Any guidance on this would be appreciated, Thanks.


azure-monitor
image.png (11.5 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@jianhuang Checking in to see if you had a chance to review the above comment and have further information which you can share to help you to troubleshoot this issue. Thank you

0 Votes 0 ·

@bharathn-msft

thanks for the help, I have followed the first link you sent, and I am able to get it working. I needed to configure DNS forwarder to forward queries to azure provided DNS server.

Now it is working as expected, thanks again for the guidance. Appreciated.

Jian

1 Vote 1 ·

@jianhuang Thank for your response, glad to hear that the information helped you to resolve the issue.

Please click on 130616-image.png on the answer which might help other community members reading this thread.

Looking forward to see you back for any queries on Azure. Thank you



1 Vote 1 ·
image.png (3.1 KiB)

1 Answer

BharathNimmala-4926 avatar image
0 Votes"
BharathNimmala-4926 answered bharathn-msft edited

<<Converting the information from comments to here for broader community usage>>

@jianhuang - Thank you for reaching out with your query.

Please follow through below documentation related custom DNS configuration and troubleshooting scenarios.

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances#vms-and-role-instances
https://docs.microsoft.com/en-us/azure/azure-monitor/agents/agent-windows-troubleshoot#important-troubleshooting-sources

Hope this information helps. Let us know if you have any further queries. Thank you

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.