Hi Pankaj Rawat
Have you followed the article below to set the fqdn of the virtual machine?
Create a fully qualified domain name for a VM in the Azure portal
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--