Skip to content

Commit 20e9d5d

Browse files
authored
Merge pull request #269978 from cherylmc/entra-generate
Create include file
2 parents fff022f + f1064ef commit 20e9d5d

File tree

4 files changed

+55
-58
lines changed

4 files changed

+55
-58
lines changed

articles/vpn-gateway/about-vpn-profile-download.md

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,15 @@ description: Learn how to generate P2S VPN client profile configuration files fo
55
author: cherylmc
66
ms.service: vpn-gateway
77
ms.topic: how-to
8-
ms.date: 08/24/2022
8+
ms.date: 03/22/2024
99
ms.author: cherylmc
1010

1111
---
1212
# Generate P2S Azure VPN Client profile configuration files - Microsoft Entra authentication
1313

1414
This article helps you generate and extract VPN client profile configuration files. Client profile configuration files contain information that's used to configure your VPN client. The sections in this article explain the information needed to configure the Azure VPN Client profile for Azure VPN Gateway point-to-site configurations that use Microsoft Entra authentication.
1515

16-
## <a name="generate"></a>Generate profile files
17-
18-
You can generate VPN client profile configuration files either with PowerShell, or the Azure portal. Either method returns the same zip file.
19-
20-
### Portal
21-
22-
1. In the Azure portal, go to the virtual network gateway for the virtual network that you want to connect to.
23-
1. On the virtual network gateway page, select **Point-to-site configuration**.
24-
1. At the top of the point-to-site configuration page, select **Download VPN client**. It takes a few minutes for the client configuration package to generate.
25-
1. Your browser indicates that a client configuration zip file is available. It's named the same name as your gateway. Unzip the file to view the folders.
26-
27-
### PowerShell
28-
29-
To generate using PowerShell, you can use the following example:
30-
31-
1. When generating VPN client configuration files, the value for '-AuthenticationMethod' is 'EapTls'. Generate the VPN client configuration files using the following command:
32-
33-
```azurepowershell-interactive
34-
$profile=New-AzVpnClientConfiguration -ResourceGroupName "TestRG" -Name "VNet1GW" -AuthenticationMethod "EapTls"
35-
36-
$profile.VPNProfileSASUrl
37-
```
38-
39-
1. Copy the URL to your browser to download the zip file, then unzip the file to view the folders.
40-
41-
## <a name="extract"></a>Extract the zip file
42-
43-
Extract the zip file. The file contains the following folders:
44-
45-
* **AzureVPN**: The AzureVPN folder contains the **Azurevpnconfig.xml** file that is used to configure the Azure VPN Client.
46-
* **Generic**: The generic folder contains the public server certificate and the VpnSettings.xml file. The VpnSettings.xml file contains information needed to configure a generic client
47-
48-
## <a name="get"></a>Retrieve file information
49-
50-
In the **AzureVPN** folder, go to the ***azurevpnconfig.xml*** file and open it with Notepad. Make a note of the text between the following tags. This information is used later when configuring the Azure VPN Client.
51-
52-
```
53-
<audience> </audience>
54-
<issuer> </issuer>
55-
<tenant> </tenant>
56-
<fqdn> </fqdn>
57-
<serversecret> </serversecret>
58-
```
59-
60-
## <a name="details"></a>Profile details
61-
62-
When you add a connection, use the information you collected in the previous step for the profile details page. The fields correspond to the following information:
63-
64-
* **Audience:** Identifies the recipient resource the token is intended for.
65-
* **Issuer:** Identifies the Security Token Service (STS) that emitted the token, and the Microsoft Entra tenant.
66-
* **Tenant:** Contains an immutable, unique identifier of the directory tenant that issued the token.
67-
* **FQDN:** The fully qualified domain name (FQDN) on the Azure VPN gateway.
68-
* **ServerSecret:** The VPN gateway preshared key.
16+
[!INCLUDE [Generate VPN client profile files](../../includes/vpn-gateway-p2s-vpn-client-profile-generate-entra.md)]
6917

7018
## Next steps
7119

articles/vpn-gateway/openvpn-azure-ad-tenant.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ If you already have an existing P2S gateway, the steps in this article help you
3838

3939
## Authorize the Azure VPN application
4040

41-
### Authorize the application
42-
4341
[!INCLUDE [Steps to authorize the Azure VPN app](../../includes/vpn-gateway-vwan-azure-ad-tenant.md)]
4442

4543
## <a name="enable-authentication"></a>Configure the VPN gateway - Entra authentication
@@ -92,4 +90,4 @@ In this section, you generate and download the Azure VPN Client profile configur
9290
## Next steps
9391

9492
* To connect to your virtual network, you must configure the Azure VPN client on your client computers. See [Configure a VPN client for P2S VPN connections](openvpn-azure-ad-client.md).
95-
* For frequently asked questions, see the **Point-to-site** section of the [VPN Gateway FAQ](vpn-gateway-vpn-faq.md#P2S).
93+
* For frequently asked questions, see the **Point-to-site** section of the [VPN Gateway FAQ](vpn-gateway-vpn-faq.md#P2S).

includes/vpn-gateway-generate-profile-powershell.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ms.service: vpn-gateway
44
ms.custom: devx-track-azurepowershell
55
ms.topic: include
6-
ms.date: 12/01/2022
6+
ms.date: 03/22/2024
77
ms.author: cherylmc
88
---
99

@@ -14,3 +14,5 @@ $profile=New-AzVpnClientConfiguration -ResourceGroupName "TestRG" -Name "VNet1GW
1414
1515
$profile.VPNProfileSASUrl
1616
```
17+
18+
Copy the URL to your browser to download the zip file.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
author: cherylmc
3+
ms.service: vpn-gateway
4+
ms.topic: include
5+
ms.date: 03/22/2024
6+
ms.author: cherylmc
7+
---
8+
## <a name="generate"></a>Generate profile configuration files
9+
10+
You can generate VPN client profile configuration files either with PowerShell, or the Azure portal. Either method returns the same zip file.
11+
12+
### Azure portal
13+
14+
[!INCLUDE [Generate profile configuration files - Azure portal](vpn-gateway-generate-profile-portal.md)]
15+
16+
### PowerShell
17+
18+
To generate the VPN client profile configuration files using PowerShell, you can use the following example:
19+
20+
[!INCLUDE [Generate profile configuration files - PowerShell](vpn-gateway-generate-profile-powershell.md)]
21+
22+
## <a name="extract"></a>Extract the zip file
23+
24+
Extract the zip file. The file contains the following folders:
25+
26+
* **AzureVPN**: The AzureVPN folder contains the **Azurevpnconfig.xml** file that is used to configure the Azure VPN Client.
27+
* **Generic**: The generic folder contains the public server certificate and the VpnSettings.xml file. The VpnSettings.xml file contains information needed to configure a generic client
28+
29+
## <a name="get"></a>Retrieve file information
30+
31+
In the **AzureVPN** folder, go to the ***azurevpnconfig.xml*** file and open it with Notepad. Make a note of the text between the following tags. This information is used later when configuring the Azure VPN Client.
32+
33+
```
34+
<audience> </audience>
35+
<issuer> </issuer>
36+
<tenant> </tenant>
37+
<fqdn> </fqdn>
38+
<serversecret> </serversecret>
39+
```
40+
41+
## <a name="details"></a>Profile details
42+
43+
When you add a connection, use the information you collected in the previous step for the profile details page. The fields correspond to the following information:
44+
45+
* **Audience:** Identifies the recipient resource the token is intended for.
46+
* **Issuer:** Identifies the Security Token Service (STS) that emitted the token, and the Microsoft Entra tenant.
47+
* **Tenant:** Contains an immutable, unique identifier of the directory tenant that issued the token.
48+
* **FQDN:** The fully qualified domain name (FQDN) on the Azure VPN gateway.
49+
* **ServerSecret:** The VPN gateway preshared key.

0 commit comments

Comments
 (0)