Skip to content

Commit f826f93

Browse files
nyanhpCopilot
andauthored
Update includes/vpn-gateway-vwan-azure-vpn-client-optional.md
Co-authored-by: Copilot <[email protected]>
1 parent 0dd3416 commit f826f93

1 file changed

Lines changed: 19 additions & 29 deletions

File tree

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

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,35 +18,25 @@ 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-
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:
25-
26-
* **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**.
27-
28-
* **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-
```
49-
21+
1. Import the file to configure the Azure VPN Client:
22+
- **Windows**
23+
- **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**.
24+
- **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.
25+
- **macOS**
26+
- **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**.
27+
- **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.
28+
```bash
29+
#!/bin/sh
30+
31+
# Change this path
32+
sourcePath="UPDATE THIS PATH TO YOUR XML"
33+
profileName="Azure VPN"
34+
35+
# These lines do not need changing
36+
consoleuser=$(ls -l /dev/console | awk '{ print $3 }')
37+
filePath="/Users/$consoleuser/Library/Containers/com.microsoft.AzureVpnMac/Data/Library/Application Support/com.microsoft.AzureVpnMac/$profileName.AzureVpnProfile.xml"
38+
cp $sourcePath $filePath
39+
```
5040
## DNS
5141

5242
### Add DNS suffixes

0 commit comments

Comments
 (0)