Download and save the NoMachine package suitable for the Operating System of your Virtual Machine on your local computer. Then send it to your Azure instance via SCP (Fig. 9).
Fig. 9 - SCP the NoMachine package to the Virtual Machine
Now go back to Azure Dashboard to create the networking rule necessary for enabling connection to port 4000, which is the NoMachine’s default port for connections by NX protocol. When the rule is added, you will be notified about successfully created inbound port rule (Fig. 10).
Fig. 10 - Enter the Networking panel on the Azure dashboard and add the inbound security rule
Now you're ready to use your NoMachine desktop on Azure’s CentOS 7.5. On your local machine open the NoMachine User Interface and click 'Add'. Create a connection by specifying the NX protocol and the IP address of the remote host on Azure (Fig. 10).
Fig. 11 - Select NX as protocol and insert the the IP of the VM hosted on Azure