|
| 1 | +--- |
| 2 | +title: Create custom app ID for P2S VPN Microsoft Entra ID authentication |
| 3 | +titleSuffix: Azure Virtual WAN |
| 4 | +description: Learn how to create or modify a custom audience App ID or upgrade an existing custom App ID to the new Microsoft-registered Azure VPN Client app values for Azure Virtual WAN. |
| 5 | +author: cherylmc |
| 6 | +ms.service: azure-virtual-wan |
| 7 | +ms.topic: concept-article |
| 8 | +ms.date: 01/14/2025 |
| 9 | +ms.author: cherylmc |
| 10 | +--- |
| 11 | + |
| 12 | +# Create or modify a custom audience app ID for User VPN Microsoft Entra ID authentication |
| 13 | + |
| 14 | +The steps in this article help you create a Microsoft Entra ID custom App ID (custom audience) for the new Microsoft-registered Azure VPN Client for User VPN point-to-site (P2S) connections. You can also update your existing tenant to [change the new Microsoft-registered Azure VPN Client app](#change) from the previous Azure VPN Client app. |
| 15 | + |
| 16 | +When you configure a custom audience app ID, you can use any of the supported values associated with the Azure VPN Client app. We recommend that you associate the Microsoft-registered App ID Azure Public audience value `c632b3df-fb67-4d84-bdcf-b95ad541b5c8` to your custom app when possible. For the full list of supported values, see the [Azure VPN Client Audience values table](point-to-site-entra-gateway.md). |
| 17 | + |
| 18 | +This article provides high-level steps. The screenshots to register an application might be slightly different, depending on the way you access the user interface, but the settings are the same. For more information, see [Quickstart: Register an application](/entra/identity-platform/quickstart-register-app). |
| 19 | + |
| 20 | +## Prerequisites |
| 21 | + |
| 22 | +* This article assumes that you already have a Microsoft Entra tenant and the permissions to create an Enterprise Application, typically the [Cloud Application Administrator role](/entra/identity/role-based-access-control/permissions-reference#cloud-application-administrator) or higher. For more information, see [Create a new tenant in Microsoft Entra ID](/entra/fundamentals/create-new-tenant) and [Assign user roles with Microsoft Entra ID](/entra/fundamentals/users-assign-role-azure-portal). |
| 23 | + |
| 24 | +* This article assumes that you're using the **Microsoft-registered App ID Azure Public** audience value `c632b3df-fb67-4d84-bdcf-b95ad541b5c8` to configure your custom app. This value has global consent, which means you don't need to manually register it to provide consent for your organization. We recommend that you use this value. |
| 25 | + |
| 26 | + * At this time, there's only one supported audience value for the Microsoft-registered app. See the [supported audience value table](../vpn-gateway/point-to-site-about.md#entra-id) for additional supported values. |
| 27 | + |
| 28 | + * If the Microsoft-registered audience value isn't compatible with your configuration, you can still use the older manually registered ID values. |
| 29 | + |
| 30 | +* If you need to use a manually registered app ID value instead, you must give consent to allow the app to sign in and read user profiles before proceeding with this configuration. You must sign in with an account that's assigned the [Cloud Application Administrator role](/entra/identity/role-based-access-control/permissions-reference#cloud-application-administrator). |
| 31 | + |
| 32 | + 1. To grant admin consent for your organization, modify the following command to contain the desired `client_id` value. In the example, the client_id value is for Azure Public. See the [table](../vpn-gateway/point-to-site-about.md#entra-id) for additional supported values. |
| 33 | + |
| 34 | + ```https://login.microsoftonline.com/common/oauth2/authorize?client_id=41b23e61-6c1e-4545-b367-cd054e0ed4b4&response_type=code&redirect_uri=https://portal.azure.com&nonce=1234&prompt=admin_consent``` |
| 35 | + |
| 36 | + 1. Copy and paste the URL that pertains to your deployment location in the address bar of your browser. |
| 37 | + 1. Select the account that has the [Cloud Application Administrator role](/entra/identity/role-based-access-control/permissions-reference#cloud-application-administrator) if prompted. |
| 38 | + 1. On the **Permissions** requested page, select **Accept**. |
| 39 | + |
| 40 | +[!INCLUDE [Configure custom audience](../../includes/vpn-gateway-custom-audience.md)] |
| 41 | + |
| 42 | +## Configure the gateway |
| 43 | + |
| 44 | +After you've completed the steps in the previous sections, continue to [Configure Virtual WAN User VPN for Microsoft Entra ID authentication - Microsoft-registered app](point-to-site-entra-gateway.md). |
| 45 | + |
| 46 | +## <a name="change"></a>Update to Microsoft-registered VPN app Client ID |
| 47 | + |
| 48 | +> [!NOTE] |
| 49 | +> These steps can be used for any of the supported values associated with the Azure VPN Client app. We recommend that you associate the Microsoft-registered App ID Azure Public audience value `c632b3df-fb67-4d84-bdcf-b95ad541b5c8` to your custom app when possible. |
| 50 | +
|
| 51 | +[!INCLUDE [Change custom audience](../../includes/vpn-gateway-custom-audience-change.md)] |
| 52 | + |
| 53 | +## Next steps |
| 54 | + |
| 55 | +[Configure Virtual WAN P2S User VPN for Microsoft Entra ID authentication - Microsoft-registered app](point-to-site-entra-gateway.md). |
0 commit comments