I have a Windows service running on Azure VM. The service constantly accesses KeyVaults and Web APIs to run some tasks.
The logs in my service show this message sometimes while accessing keyvault. Most of the times service can access keyvault, but sometimes I get this error:
System.Net.WebException: The remote name could not be resolved: 'keyvault.vault.azure.net'.
When I connect to VM through RDP, sometimes I get disconnected with the following message and immediately connects after few seconds.
But when I see System Logs in Control panel, it shows no error message at that time.
I also have another issue while making an HTTP request to Web API as explained in this question.
So my question is, can all these be related to one another? Is it possible that VM is getting disconnected very often from the network and due to this, all the above-mentioned things are happening? How can I test and conclude this?