Hi @MS Techie
Without knowing your exact setup, I cannot give you an exact answer, however based on the replies to my comment, I can summarise that
- You may or may not have a network route back to your on-premises network (I forgot to get you to ping via IP from VM Server to on-prem server).
- You do not have full DNS Resolution.
The first step is to ascertain how your traffic is getting from Azure to on-prem. https://learn.microsoft.com/en-us/azure/architecture/reference-architectures/hybrid-networking/
Once you have the relevant routes in place, you should be able to ping from Azure to on-prem via IP address.
Next you need to ensure that you can perform name resolution from Azure to on-prem. By default, the VM's get their IP addresses and DNS servers from the vNet they are connected to, utilising Azure DNS. You can either change this, so they are provided the IP Addresses of your on-prem name servers. Alternatively, you could set up Private DNS zones in Azure to perform initial name resolution, with forwarders to the on-prem name servers.