How to connect VPN gateway(point-on-site) to vm?

Sudesh Sharma 46 Reputation points
2020-07-27T07:35:26.24+00:00

Hey guys,

I have created a vpn (point-on-site) for secure connection with vm. I have created a VM last year and hosted three websites on vm IIS webserver. Now I want to access Vm through VPN Gateway. Is it possible to connect existing vm to newly created Virtual Network and VPN gateway? If possible then how?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,120 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,379 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,139 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Didier3001 971 Reputation points Microsoft Employee
    2020-07-27T08:03:46.35+00:00

    Hi @Sudesh Sharma

    As long as your subnet where the VPN Gateway has been configured and your Subnet(s) where your are VM are located are in the same VNet, it should work. Make sure your NSG rules and the OS firewall allow the communication.

    Then depending how you will establish VPN connection you will have few more steps to configure the P2S VPN:

    Please also be aware that you have another option to connect to your VM securely by using Azure Bastion. You can see this service like a managed jump box.

    --I hope this helps and if it does, please don't forget to Accept it as an answer and "Up-Vote" the answer or message(s) that helped you so that it can help others in the community looking for help on similar topics

    Regards,
    Didier

    1 person found this answer helpful.