Hello Saurabh Sutone,
Thank you for posting in Microsoft Community forum.
I think this thread is similar to the thread below.
Host File in Azure Windows VM Gets Blank Intermittently - Microsoft Community
If so, I will reply to you in that thread.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou