Hi @HassanRaza-9959 ,
could you please verify a Public IP is associated with the VM
https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/associate-public-ip-address-vm
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten