Automating Azure P2S VPN Client Deployment with Entra ID Authentication via GPO

Hello everyone!

I’ve successfully set up an Azure Point-to-Site (P2S) VPN with Entra ID (Azure AD) authentication for my organization, and now I want to automate the deployment of the Azure VPN Client and its configuration to users. My goal is for users to only have to sign in with their credentials (without needing to manually install the VPN client or import the configuration file).

Here’s what I’m trying to achieve:

  • Deploy the Azure VPN Client to users’ machines automatically using Group Policy (GPO).
  • Automatically import the downloaded VPN configuration file so users don’t have to configure the VPN manually.
  • End up with a seamless experience where users only need to sign in with their password, and everything is set up for them.

Current Plan:

  1. Download VPN Client and Configuration:
    • I’ve downloaded the VPN profile from the Azure portal with the correct configuration for Entra ID authentication.
  2. Deploy VPN Client via GPO:
    • Using GPO, I’m planning to deploy the Azure VPN Client .msi installer across all machines.
  3. Automate Profile Import:
    • I’ll use a PowerShell script to copy the VPN configuration file to the appropriate location on the users’ machines and import it silently.
  4. Sign-In Experience:
    • Users should only need to sign in with their credentials without further manual steps.

Questions:

  • Has anyone deployed the Azure VPN Client and configuration in a similar way using GPO?
  • Any recommendations on automating the VPN profile import process, especially to make the experience as seamless as possible?
  • Is there a way to automatically trigger the VPN connection or ensure single sign-on (SSO) with Entra ID so users don’t need to authenticate each time?

Thanks in advance for any advice or suggestions!

Does Azure VPN client have .msi installation file? I thought it was only installable using msix or windows store.

I haven’t tried via GPO, we use ManageEngine and I was able to deploy the msix package per user as well as import the xml config file.

@Shanuka_Thusara @Electrical_Arm7411

I am trying to do exactly same thing.

We use ManageEngine as our MDM as well.

Can you share the steps and scripts with me?

u/Electrical_Arm7411 Thank you for your response, Please provide a script

Hi there u/Electrical_Arm7411. We’re planning to deploy the MSIX via ManageEngine Endpoint Central as well in a couple of weeks. Can you please share any steps / scripts you have? Greatly appreciate it!

Hello u/Satellite-Engineer-0

This is the right doc, I achieved using this document. https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-profile-intune#xml