Skip to content

Commit 22b1ee3

Browse files
authored
Enhance VPN client configuration instructions
1 parent bc2ab1f commit 22b1ee3

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

includes/vpn-gateway-vwan-azure-vpn-client-optional.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,34 @@ To work with VPN client profile configuration files (xml files), use the followi
1818

1919
1. Locate the profile configuration file and open it using the editor of your choice.
2020
1. Using the examples in the following sections, modify the file as necessary, then save your changes.
21-
1. Import the file to configure the Azure VPN client. You can import the file for the Azure VPN Client using these methods:
21+
22+
### Windows
23+
24+
Import the file to configure the Azure VPN client. You can import the file for the Azure VPN Client using these methods:
2225

2326
* **Azure VPN Client interface**: Open the Azure VPN Client and select **+** and then **Import**. Locate the modified .xml file. Configure any additional settings in the Azure VPN Client interface (if necessary), then select **Save**.
2427

2528
* **Command-line prompt**: Place the appropriate downloaded configuration xml file in the *%userprofile%\AppData\Local\Packages\Microsoft.AzureVpn_8wekyb3d8bbwe\LocalState* folder, then run the command that corresponds to the configuration file name. For example, `azurevpn -i azurevpnconfig_aad.xml`. To force the import, use the `-f` switch.
29+
30+
### macOS
31+
32+
Import the file to configure the Azure VPN client. You can import the file for the Azure VPN Client using these methods:
33+
34+
* **Azure VPN Client interface**: Open the Azure VPN Client and select **Import**. Locate the modified .xml file. Configure any additional settings in the Azure VPN Client interface (if necessary), then select **Save**.
35+
36+
* **Command-line prompt**: Modify the following code snippet to distribute your configuration file. Execute it with privileges using `sudo sh ./script.sh`. A restart may be needed if Azure VPN CLient has been started in the user session already.
37+
```bash
38+
#!/bin/sh
39+
40+
# Change this path
41+
sourcePath="UPDATE THIS PATH TO YOUR XML"
42+
profileName="Azure VPN"
43+
44+
# These lines do not need changing
45+
consoleuser=$(ls -l /dev/console | awk '{ print $3 }')
46+
filePath="/Users/$consoleuser/Library/Containers/com.microsoft.AzureVpnMac/Data/Library/Application Support/com.microsoft.AzureVpnMac/$profileName.AzureVpnProfile.xml"
47+
cp $sourcePath $filePath
48+
```
2649

2750
## DNS
2851

0 commit comments

Comments
 (0)