Forum Discussion

JimmyWork's avatar
JimmyWork
Iron Contributor
Jun 20, 2022

Updating Azure VPN profile not being applied

Hi,   I had a Azure VPN configuration setup in Intune, everthing was working. But we had to upgrade the VPN service, so a new profile was created with the new server configurations.   When I imp...
  • Moe_Kinani's avatar
    Moe_Kinani
    Jun 23, 2022

    JimmyWork 

     

    Hi Jimmy,

    I have made changes on my test environment to mirror your issue and worked without removing the existing profile.

     

    The xml that you download from Azure (or import manually) needs to be changed in order to import using Intune. Here is an example on how it supposed to look:

     

    Example_VPNProfile/example_vpnprofile.xml at main · j0eyv/Example_VPNProfile · GitHub

     

    Follow the steps below to replace with your tenant info

    Line 5: Modify the <TrustedNetworkDetection> setting to the DNS suffix, your DHCP server is sending out to your clients. This will be used to determine if a device is connected to the internal network or external. For example: contoso.local.
    Line 9: Modify the <ServerUrlList> setting.
    Line 18: Modify the <issuer> setting https://sts.windows.net/TENANTID/.
    Line 19: Modify the <tenant> setting https://login.microsoftonline.com/TENANTID/.
    Line 31: Modify the <name> setting. This is the VNET name.
    Line 41: Modify the <fqdn> setting. This value can be found in the AzureVPN/azurevpnconfig.xml file which is in the downloaded from Azure.
    Line 46: Modify the <hash> setting. This value can be found in the AzureVPN/azurevpnconfig.xml file which is in the downloaded from Azure.
    Line 50: Modify the <serversecret> setting. This value can be found in the AzureVPN/azurevpnconfig.xml file which is in the downloaded from Azure.

     

    Save it as new XML file in order to import to OMA URI Setting.

     

     

    In order to override your existing file:

     

    OMA-URI Setting should be like below:

     

    Name: Give it a name
    Description: Give it description
    OMA-URI: ./User/Vendor/MSFT/VPNv2/*NAME OF YOUR EXISTING PROFILE*/ProfileXML
    Data Type: String (XML File)
     
     
     

Resources