How To Setup Ubuntu 16.04 and Configure Endpoints

Ubuntu OS forms the base for any stack. If one wants to install nginx or Apache they need to install ubuntu first and then proceed with their development. Today in this article I will be showing you how you can setup Ubuntu 16.04 and configure endpoints so that your website or site can load from HTTP or HTTPS. It is very important to add endpoints otherwise all the time you will get “connection refused”. Endpoints allow traffic to come through to the Virtual Machine through certain protocols like HTTP and HTTPS. Previously adding endpoints was easy in the old Azure dashboard but in the new Azure portal its a bit tricky I will be showing you how you can add it easily.

  • First we will be setting up the Virtual Machine. Navigate to your azure portalย and click on virtual machines, search for Ubuntu 16.04 and deploy it to your desired virtual machine.
Setting Up VM with Ubuntu 16.04
Setting Up VM with Ubuntu 16.04
  • Now after the VM is set up with Ubuntu 16.04 we will add the Endpoints so that traffic can flow easily. For this we need to go the “Network Security Group” there we can find “Inbound Security Rules” we need to add the rules there. We need to Add HTTP and HTTPS.
Click On Inbound Security Rules and add HTTP. The port range will be 80
Click On Inbound Security Rules and add HTTP. The port range will be 80
  • Remember HTTP port range is 80 and HTTPS port range is 443. Now do the same thing for HTTPS.

 

This is for HTTPS
This is for HTTPS
  • Finally it should look like this ๐Ÿ™‚
As you can see HTTP and HTTPS has been added
As you can see HTTP and HTTPS has been added

These are the simple steps to add HTTP and HTTPS in your VM. Remember without this your virtual machine wont handle any requests and you will always get errors. Let me know if you face any issues ๐Ÿ™‚