Search code examples
azureazure-virtual-machineubuntu-server

Access Ubuntu Server VM on Azure


I've setup an Ubuntu Server on Azure. On this server, an application is running on port 3000. I want to access this application external. Azure tells me my server has public ip 40.68.XXX.XXX.

When I ping this IP, there is no response, despite ssh works when connecting to this IP-address.

I want to access 40.68.XXX.XXX:3000 external, does somebody know how to get this work?


Solution

  • Yes, you need to open up a port on the Network Security Group (NSG) and open up the port on your firewall (on the VM itself).

    Easiest way to open the port is using the portal:

    https://learn.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-nsg-quickstart-portal