Sunesis Consulting

How to set up VPN for Virtual Machines in Microsoft Azure

If you’re just joining us, you can refer to our tutorial on Migrating Sage Database from from local hosting to Azure Hosted Instance. 

Below are step-by-step instructions on how to set up a VPN for Virtual Machines in Microsoft Azure.

If you would like to know more about what Microsoft Azure is and how you can use it to improve operations for your organization read more here: How Microsoft Azure has Transformed Organizations – A case of Sunesis Consulting.

How to set up a VPN

Step 1 – Install a client certificate
  • Locate and copy the .pfxfile to the client computer. On the client computer, double-click the .pfx file to install. Leave the Store Location as Current User, and then click Next.
  • On the File to import page, don’t make any changes. Click Next.
  • On the Private key protection page, input the password for the certificate, or verify that the security principal is correct, then click Next.
  • On the Certificate Store page, leave the default location, and then click Next.
  • Click Finish. On the Security Warning for the certificate installation, click Yes. You can feel comfortable clicking ‘Yes’ because you generated the certificate. The certificate is now successfully imported.
Step 2 – Generate files using the Azure portal
  • In the Azure portal, navigate to the virtual network gateway for the virtual network that you want to connect to.
  • On the virtual network gateway page, click Point-to-site configuration.
  • At the top of the Point-to-site configuration page, click Download VPN client. It takes a few minutes for the client configuration package to generate.
  • Your browser indicates that a client configuration zip file is available. It is named the same name as your gateway. Unzip the file to view the folders.
Step 3 – Configure the native Windows VPN client for certificate authentication
  • Select the VPN client configuration files that correspond to the architecture of the Windows computer. For a 64-bit processor architecture, choose the ‘VpnClientSetupAmd64’ installer package. For a 32-bit processor architecture, choose the ‘VpnClientSetupX86’ installer package.
  • Double-click the package to install it. If you see a SmartScreen popup, click More info, then Run anyway.
  • On the client computer, navigate to Network Settings and click VPN. The VPN connection shows the name of the virtual network that it connects to.
  • Before you attempt to connect, verify that you have installed a client certificate on the client computer. A client certificate is required for authentication when using the native Azure certificate authentication type.
Step 4 – Connect from a Windows VPN client

Note* You must have Administrator rights on the Windows client computer from which you are connecting.

  • To connect to your VNet, on the client computer, navigate to VPN connections and locate the VPN connection that you created. It is named the same name as your virtual network. Select Connect. A pop-up message may appear that refers to using the certificate. Select Continue to use elevated privileges.
  • On the Connection status page, select Connect to start the connection. If you see a Select Certificate screen, verify that the client certificate showing is the one that you want to use to connect. If it is not, use the drop-down arrow to select the correct certificate, and then select OK.

  • Your connection is established.


For professional assistance on how to set up a VPN or configuring Virtual Machines in Microsoft Azure contact us here.

Tags :
Database,Microsoft Azure,Virtual Machines,Virtual Private Network,VPN
Share This :