question

AmitKumar-5797 avatar image
0 Votes"
AmitKumar-5797 asked AmitKumar-5797 edited

Azure VPN (P2S) setup always on

Hello Friends,

I have created ADC on Azure and sync with on-premise AD using site to site vpn. and also created point to site vpn so that our Internet facing client machine can join into domain.

This setup was successfully completed.

But that challenge is that every time I need to login with Administrator and manually connect Azure VPN and then switch user and login into domain with normal domain user.

So Is there any configuration so that Azure VPN to be connected before user login and should not depend upon administrator to login manually for VPN connect.


Thanks in Advance

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered AmitKumar-5797 commented

@AmitKumar-5797 This is not possible by design and this is mentioned in FAQs, please refer to the link below:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq#if-i-restart-a-client-computer-configured-for-point-to-site-will-the-vpn-automatically-reconnect

However, if you are using Windows 10 clients, you can check always ON VPN. For more information please refer to

Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows 10


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community who are looking for this information.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Amanpreet,


I am stuck on Editing VPNProfile.xml. I have attached my vpnsetting.xml file please look and suggest where can I change.8508-vpnsettings.xml


0 Votes 0 ·
vpnsettings.xml (1.9 KiB)
amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered AmitKumar-5797 edited

@AmitKumar-5797 You don't have to edit the existing VPN profile xml file. You need to create a new one by copying the data of the generic vpnprofile.xml file given in the document to notepad and replace the values using the details from your gateway's vpnprofile. Save the file with .xml extension.

The created vpnprofile.xml file should look like the attached file 8548-vpnprofile.xml


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.




vpnprofile.xml (1021 B)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AmitKumar-5797 Have you had a chance to test this out?

0 Votes 0 ·

Hi Amanpreet,

Thanks for remember.

Initially I had tried but not worked, even after changing xml file not able to establish P2S VPN connection .

Suddenly, I was being involved on some other stuff so did not gave enough time to troubleshoot .

when I get time defiantly I will check and looking for your help also.

0 Votes 0 ·