Unable to access ports on Azure VM

You need to amend the Network Security Group in Azure that is attached to the VM to allow inbound traffic on the required port.