Setup HTTPS with Nginx on Azure Ubuntu VMToday we will see how we can setup HTTPS on using Certbot Nginx configuration on an Azure Ubuntu VM. This post will be composed of three steps:Prepare the VMInstall NginxInstall Certbot1. Prepare the VMWe start first by creating an Azure VM on Ubuntu 18.04 with either password or SSH and allowing HTTP, HTTPS, SSH.Once done, we can select a custom DNS for our VM. This makes it easier to SSH but also it will be required for our SSL certificate setup.We set the Assignment as Static then we choose a DNS name label. Here we choose azure-test-vm therefore the VM will be accessible at azure-test-vm.southcentralus.cloudapp.azure.com.We should now be able to SSH into the VM using the command:ssh kimserey@azure-test-vm.southcentralus.cloudapp.azure.com
2. Install NginxNext once we are in the VM, we can install Nginx by installing the following:sudo apt-get update
sudo apt-get install nginx
Once installed, as we already have opened the HTTP port during cr…