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 New. Ceate a new connection by specifying the proper IP address of the remote host on Azure.
Fig. 11 - Provide the IP of the VM hosted on Azure