@Suraj Bhatt Apologies for the delay in response and all the inconvenience caused because of the issue.
You can refer to this doc to understand How to open ports to a virtual machine with the Azure portal in general.
For Node js Sever you can refer to this for more info.
Below might be helpful as well:
https://abrahamjohnblog.wordpress.com/azure-vm-configure-iis-and-expose/
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.
Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.