Dialing VPN connection vnet-vnetexample, Status = A specified profile cannot be found

marc.caron 10 Reputation points
2025-10-22T03:49:34.3866667+00:00

After following the VPN setup instructions for P2S with EntraID and Microsoft public audience of (Edit: Removed). I can Authenticate but then the connection is dropped with error "A specified profile cannot be found"

This is using

VpnGw2AZ, Public IP (3 zone), GatewaySubnet in a vnet vnetexample,

Point-to-site configuration
Type: OpenVPN (SSL)
Authentication type: Azure Active Directory
Azure AD/Entra Direcotry
Tenant: https://login.microsoftonline.com/{azureAdTenantId}/
Audience: (Edit: Removed)
Issuer: https://sts.windows.net/{azureAdTenantId}/
Generation: I've tried 1 & 2

I've used az cli as well as the azure portal to set this up and download VPN client configuration. I'm using the Azure VPN Client from the windows store on windows 11.

I have authorized microsofts appid.
https://login.microsoftonline.com/common/oauth2/authorize?client_id=(Edit: Removed)&response_type=code&redirect_uri=https://portal.azure.com&nonce=1234&prompt=admin_consent

And no matter how I set it up. I always end up with an error after authentication.

10‎/‎21‎/‎2025‎ ‎7‎:‎30‎:‎09‎ ‎PM: Dialing VPN connection vnet-vnetexample, Status = A specified profile cannot be found
‎10‎/‎21‎/‎2025‎ ‎7‎:‎30‎:‎09‎ ‎PM: Success Received Microsoft Entra Credential Token. User: ******@tenant.com
‎10‎/‎21‎/‎2025‎ ‎7‎:‎29‎:‎43‎ ‎PM: Requested AccountsManager dialog.
‎10‎/‎21‎/‎2025‎ ‎7‎:‎29‎:‎43‎ ‎PM: Dialing VPN connection vnet-vnetexample
‎10‎/‎21‎/‎2025‎ ‎7‎:‎29‎:‎42‎ ‎PM: Saving VPN connection vnet-vnetexample, Status = Success (0)
‎10‎/‎21‎/‎2025‎ ‎7‎:‎29‎:‎42‎ ‎PM: Refreshing VPN connections
‎10‎/‎21‎/‎2025‎ ‎7‎:‎29‎:‎40‎ ‎PM: Picked File C:\Users\user\Downloads\AzureVPN\azurevpnconfig.xml

No, I've not configured anything for the user to access yet. But I should receive an IP and be able to have a stable connection even if there are no resources in the VNET to access.

I've setup VPNs with other things before. But this one appears to just not function from my view. What are the special undocumented settings to make it function?

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.
{count} votes

1 answer

Sort by: Most helpful
  1. Jerald Felix 7,520 Reputation points
    2025-10-22T04:25:14.06+00:00

    Hello marc.caron,

    I can see you're running into the "A specified profile cannot be found" error after authenticating to your Azure VPN. This is actually a pretty common issue with P2S VPN connections using Entra ID authentication.

    The error happens because the Azure VPN Client is successfully authenticating you with Entra ID, but then it can't find the VPN profile configuration that matches your connection. Here's what's likely going on:

    The profile name mismatch issue:

    Your VPN profile is saved as "vnet-vnetexample" but the client might be looking for a different profile name or the profile got corrupted during setup. When you download the VPN client config from Azure, it creates a specific profile structure that needs to match exactly.

    Here's how to fix it:

    1. Delete the existing VPN connection - Remove "vnet-vnetexample" from your Azure VPN Client completely
    2. Re-download the VPN client configuration from Azure Portal:
      • Go to your VPN Gateway
      • Download the VPN client package again
      • Make sure you select the right authentication type (Azure Active Directory)
    3. Import fresh - When you import the new config file (azurevpnconfig.xml), let it create the profile name automatically. Don't rename it.
    4. Check the profile location - The Azure VPN Client stores profiles in C:\Users\{username}\AppData\Local\Packages\Microsoft.AzureVpn_8wekyb3d8bbwe\LocalState Make sure the XML file exists there and isn't corrupted

    Quick test:

    Try running the Azure VPN Client as administrator. Sometimes profile access issues are just permission problems.

    If that doesn't work:

    The issue might be that your VPN gateway configuration changed after you initially set things up. If you've made any changes to the P2S configuration (like changing the address pool or authentication settings), you need to re-download the client config.

    Also, make sure you're using the latest version of the Azure VPN Client from the Microsoft Store - older versions sometimes have profile loading bugs.

    Let me know if the re-import fixes it or if you're still seeing the error!

    Best Regards,

    Jerald Felix


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.