You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-desktop/set-up-mfa.md
+40-30Lines changed: 40 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Enforce Microsoft Entra multifactor authentication for Azure Virtual Desk
3
3
description: How to enforce Microsoft Entra multifactor authentication for Azure Virtual Desktop using Conditional Access to help make it more secure.
4
4
author: Heidilohr
5
5
ms.topic: how-to
6
-
ms.date: 10/27/2023
6
+
ms.date: 03/05/2024
7
7
ms.author: helohr
8
8
---
9
9
@@ -14,17 +14,17 @@ ms.author: helohr
14
14
15
15
Users can sign into Azure Virtual Desktop from anywhere using different devices and clients. However, there are certain measures you should take to help keep your environment and your users safe. Using Microsoft Entra multifactor authentication (MFA) with Azure Virtual Desktop prompts users during the sign-in process for another form of identification in addition to their username and password. You can enforce MFA for Azure Virtual Desktop using Conditional Access, and can also configure whether it applies to the web client, mobile apps, desktop clients, or all clients.
16
16
17
-
When a user connects to a remote session, they need to authenticate to the Azure Virtual Desktop service and the session host. If MFA is enabled, it's used when connecting to the Azure Virtual Desktop service and the user is prompted for their user account and a second form of authentication, in the same way as accessing other services. When starting a remote session, a username and password is required for a session host, but this is seamless to the user if single sign-on (SSO) is enabled. For more information, see [Authentication methods](authentication.md#authentication-methods).
17
+
When a user connects to a remote session, they need to authenticate to the Azure Virtual Desktop service and the session host. If MFA is enabled, it's used when connecting to the Azure Virtual Desktop service and the user is prompted for their user account and a second form of authentication, in the same way as accessing other services. When a user starts a remote session, a username and password is required for the session host, but this is seamless to the user if single sign-on (SSO) is enabled. For more information, see [Authentication methods](authentication.md#authentication-methods).
18
18
19
-
How often a user is prompted to reauthenticate depends on [Microsoft Entra session lifetime configuration settings](../active-directory/authentication/concepts-azure-multi-factor-authentication-prompts-session-lifetime.md#azure-ad-session-lifetime-configuration-settings). For example, if their Windows client device is registered with Microsoft Entra ID, it will receive a [Primary Refresh Token](../active-directory/devices/concept-primary-refresh-token.md) (PRT) to use for single sign-on (SSO) across applications. Once issued, a PRT is valid for 14 days and is continuously renewed as long as the user actively uses the device.
19
+
How often a user is prompted to reauthenticate depends on [Microsoft Entra session lifetime configuration settings](../active-directory/authentication/concepts-azure-multi-factor-authentication-prompts-session-lifetime.md#azure-ad-session-lifetime-configuration-settings). For example, if their Windows client device is registered with Microsoft Entra ID, it receives a [Primary Refresh Token](../active-directory/devices/concept-primary-refresh-token.md) (PRT) to use for single sign-on (SSO) across applications. Once issued, a PRT is valid for 14 days and is continuously renewed as long as the user actively uses the device.
20
20
21
21
While remembering credentials is convenient, it can also make deployments for Enterprise scenarios using personal devices less secure. To protect your users, you can make sure the client keeps asking for Microsoft Entra multifactor authentication credentials more frequently. You can use Conditional Access to configure this behavior.
22
22
23
-
Learn how to enforce MFA for Azure Virtual Desktop and optionally configure sign-in frequency below.
23
+
Learn how to enforce MFA for Azure Virtual Desktop and optionally configure sign-in frequency in the following sections.
24
24
25
25
## Prerequisites
26
26
27
-
Here's what you'll need to get started:
27
+
Here's what you need to get started:
28
28
29
29
- Assign users a license that includes [Microsoft Entra ID P1 or P2](../active-directory/authentication/concept-mfa-licensing.md).
30
30
- A [Microsoft Entra group](../active-directory/fundamentals/active-directory-groups-create-azure-portal.md) with your Azure Virtual Desktop users assigned as group members.
@@ -43,18 +43,18 @@ Here's how to create a Conditional Access policy that requires multifactor authe
43
43
1. On the new pane that opens, search for and choose the group that contains your Azure Virtual Desktop users as group members, then select **Select**.
1. Under the **Include** tab, select **Select apps**, then under **Select**, select **None**.
46
-
1. On the new pane that opens, search for and select the necessary apps based on the resources you are trying to protect. Select the relevant tab for your scenario. When searching for an application name on Azure, use search terms that begin with the application name in order instead of keywords the application name contains out of order. For example, when you want to use Azure Virtual Desktop, you need to enter '*Azure Virtual*', in that order. If you enter '*virtual*' by itself, the search won't return the desired application.
46
+
1. On the new pane that opens, search for and select the necessary apps based on the resources you're trying to protect. Select the relevant tab for your scenario. When searching for an application name on Azure, use search terms that begin with the application name in order instead of keywords the application name contains out of order. For example, when you want to use Azure Virtual Desktop, you need to enter '*Azure Virtual*', in that order. If you enter '*virtual*' by itself, the search doesn't return the desired application.
47
47
48
48
# [Azure Virtual Desktop](#tab/avd)
49
49
50
50
For Azure Virtual Desktop (based on Azure Resource Manager), you can configure MFA on these different apps:
51
51
52
52
-**Azure Virtual Desktop** (app ID 9cdead84-a844-4324-93f2-b2e6bb768d07), which applies when the user subscribes to Azure Virtual Desktop, authenticates to the Azure Virtual Desktop Gateway during a connection, and when diagnostics information is sent to the service from the user's local device.
53
53
54
-
> [!TIP]
55
-
> The app name was previously *Windows Virtual Desktop*. If you registered the *Microsoft.DesktopVirtualization* resource provider before the display name changed, the application will be named **Windows Virtual Desktop** with the same app ID as above.
54
+
> [!TIP]
55
+
> The app name was previously *Windows Virtual Desktop*. If you registered the *Microsoft.DesktopVirtualization* resource provider before the display name changed, the application will be named **Windows Virtual Desktop** with the same app ID as Azure Virtual Desktop.
56
56
57
-
-**Microsoft Remote Desktop** (app ID a4a365df-50f1-4397-bc59-1a1564b8bb9c) and **Windows Cloud Login** (app ID 270efc09-cd0d-444b-a71f-39af4910ec45). These apply when the user authenticates to the session host when [single sign-on](configure-single-sign-on.md) is enabled. It's recommended to match conditional access policies between these apps and the Azure Virtual Desktop app above, except for the [sign-in frequency](#configure-sign-in-frequency).
57
+
-**Microsoft Remote Desktop** (app ID a4a365df-50f1-4397-bc59-1a1564b8bb9c) and **Windows Cloud Login** (app ID 270efc09-cd0d-444b-a71f-39af4910ec45). These apply when the user authenticates to the session host when [single sign-on](configure-single-sign-on.md) is enabled. It's recommended to match conditional access policies between these apps and the Azure Virtual Desktop app, except for the [sign-in frequency](#configure-sign-in-frequency).
58
58
59
59
> [!IMPORTANT]
60
60
> The clients used to access Azure Virtual Desktop use the **Microsoft Remote Desktop** Entra ID app to authenticate to the session host today. An upcoming change will transition the authentication to the **Windows Cloud Login** Entra ID app. To ensure a smooth transition, you need to add both Entra ID apps to your CA policies.
@@ -68,22 +68,22 @@ Here's how to create a Conditional Access policy that requires multifactor authe
68
68
69
69
-**Windows Virtual Desktop** (app ID 5a0aa725-4958-4b0c-80a9-34562e23f3b7).
70
70
71
-
-**Windows Virtual Desktop Client** (app ID fa4345a4-a730-4230-84a8-7d9651b86739), which will let you set policies on the web client.
71
+
-**Windows Virtual Desktop Client** (app ID fa4345a4-a730-4230-84a8-7d9651b86739), which lets you set policies on the web client.
72
72
73
-
-**Azure Virtual Desktop/Windows Virtual Desktop** (app ID 9cdead84-a844-4324-93f2-b2e6bb768d07). Not adding this app ID will block feed discovery of Azure Virtual Desktop (classic) resources.
73
+
-**Azure Virtual Desktop/Windows Virtual Desktop** (app ID 9cdead84-a844-4324-93f2-b2e6bb768d07). Not adding this app ID blocks feed discovery of Azure Virtual Desktop (classic) resources.
74
74
75
75
> [!IMPORTANT]
76
-
> Don't select the app called Azure Virtual Desktop Azure Resource Manager Provider (app ID 50e95039-b200-4007-bc97-8d5790743a63). This app is only used for retrieving the user feed and shouldn't have multifactor authentication.
76
+
> Don't select the app called Azure Virtual Desktop Azure Resource Manager Provider (app ID 50e95039-b200-4007-bc97-8d5790743a63). This app is only used for retrieving the user feed and shouldn't have multifactor authentication.
77
77
78
-
11. Once you've selected your apps, select **Select**.
78
+
1. Once you selected your apps, select **Select**.
79
79
80
80
> [!div class="mx-imgBorder"]
81
81
> 
82
82
83
-
12. Under **Assignments** > **Conditions**, select **0 conditions select**.
84
-
13. Under **Client apps**, select **Not configured**.
85
-
14. On the new pane that opens, for **Configure**, select **Yes**
86
-
15. Select the client apps this policy will apply:
83
+
1. Under **Assignments** > **Conditions**, select **0 conditions select**.
84
+
1. Under **Client apps**, select **Not configured**.
85
+
1. On the new pane that opens, for **Configure**, select **Yes**.
86
+
1. Select the client apps this policy applies to:
87
87
88
88
- Select **Browser** if you want the policy to apply to the web client.
89
89
- Select **Mobile apps and desktop clients** if you want to apply the policy to other clients.
@@ -93,11 +93,11 @@ Here's how to create a Conditional Access policy that requires multifactor authe
93
93
> [!div class="mx-imgBorder"]
94
94
> 
95
95
96
-
16. Once you've selected the client apps this policy will apply to, select **Done**.
97
-
17. Under **Access controls** > **Grant**, select **0 controls selected**.
98
-
18. On the new pane that opens, select **Grant access**.
99
-
19. Check **Require multifactor authentication**, and then select **Select**.
100
-
20. At the bottom of the page, set **Enable policy** to **On** and select **Create**.
96
+
1. Once you selected the client apps this policy applies to, select **Done**.
97
+
1. Under **Access controls** > **Grant**, select **0 controls selected**.
98
+
1. On the new pane that opens, select **Grant access**.
99
+
1. Check **Require multifactor authentication**, and then select **Select**.
100
+
1. At the bottom of the page, set **Enable policy** to **On** and select **Create**.
101
101
102
102
> [!NOTE]
103
103
> When you use the web client to sign in to Azure Virtual Desktop through your browser, the log will list the client app ID as a85cf173-4192-42f8-81fa-777a763e6e2c (Azure Virtual Desktop client). This is because the client app is internally linked to the server app ID where the conditional access policy was set.
@@ -107,24 +107,34 @@ Here's how to create a Conditional Access policy that requires multifactor authe
107
107
108
108
## Configure sign-in frequency
109
109
110
-
To optionally configure the time period before a user is asked to sign-in again:
110
+
Sign-in frequency policies let you set the time period after which a user must prove their identity again when accessing Microsoft Entra-based resources. This can help secure your environment and is especially important for personal devices, where the local OS may not require MFA or may not lock automatically after inactivity.
111
+
112
+
Sign-in frequency policies result in different behavior based on the Microsoft Entra app selected:
113
+
114
+
| App name | App ID | Behavior |
115
+
|--|--|--|
116
+
|**Azure Virtual Desktop**| 9cdead84-a844-4324-93f2-b2e6bb768d07 | Enforces reauthentication when a user subscribes to Azure Virtual Desktop, manually refreshes their list of resources and authenticates to the Azure Virtual Desktop Gateway during a connection.<br /><br />Once the reauthentication period is over, background feed refresh and diagnostics upload silently fails until a user completes their next interactive sign in to Microsoft Entra. |
117
+
|**Microsoft Remote Desktop**<br /><br />**Windows Cloud Login**| a4a365df-50f1-4397-bc59-1a1564b8bb9c<br /><br />270efc09-cd0d-444b-a71f-39af4910ec45 | Enforces reauthentication when a user signs in to a session host when [single sign-on](configure-single-sign-on.md) is enabled.<br /><br />Both apps should be configured together as the Azure Virtual Desktop clients will soon switch from using the Microsoft Remote Desktop app to the Windows Cloud Login app to authenticate to the session host. |
118
+
119
+
To configure the time period after which a user is asked to sign-in again:
111
120
112
121
1. Open the policy you created previously.
113
122
1. Under **Access controls** > **Session**, select **0 controls selected**.
114
-
1. On the new pane that opens, select **Sign-in frequency**.
115
-
1. Select **Periodic reauthentication**.
116
-
1. Set the value for the time period before a user is asked to sign-in again, and then select **Select**. For example, setting the value to **1** and the unit to **Hours**, will require multifactor authentication if a connection is launched over an hour after the last one.
117
-
1. At the bottom of the page, under **Enable policy** select **Save**.
123
+
1. In the **Session** pane, select **Sign-in frequency**.
124
+
1. Select **Periodic reauthentication** or **Every time**.
125
+
- If you select **Periodic reauthentication**, set the value for the time period after which a user is asked to sign-in again, and then select **Select**. For example, setting the value to **1** and the unit to **Hours**, requires multifactor authentication if a connection is launched more than an hour after the last one.
126
+
- The **Every time** option is currently available in public preview and is only supported when applied to the **Microsoft Remote Desktop** and **Windows Cloud Login** apps when single sign-on is enabled for your host pool. If you select **Every time**, users are prompted to reauthenticate after a period of 5 to 15 minutes after the last time they authenticated for the Microsoft Remote Desktop and Windows Cloud Login apps.
127
+
1. At the bottom of the page, select **Save**.
118
128
119
129
> [!NOTE]
120
-
> -If [single sign-on](configure-single-sign-on.md) is enabled, it's recommended to configure the sign-in frequency only on the **Microsoft Remote Desktop** and **Windows Cloud Login** Entra ID apps and not the **Azure Virtual Desktop** Entra ID app. This will ensure that feed refresh and diagnostics upload continue working in the background as expected.
121
-
> -Without single sign-on, sign-in frequency can be configured on the **Azure Virtual Desktop** Entra ID app.
130
+
> -Reauthentication only happens when a user must authenticate to a resource. Once a connection is established, users aren't prompted even if the connection lasts longer than the sign-in frequency you've configured.
131
+
> -Users need to reauthenticate if there is a network disruption that forces the session to be re-established after the sign-in frequency you've configured. This can lead to more frequent authentication requests on unstable networks.
122
132
123
133
<aname='azure-ad-joined-session-host-vms'></a>
124
134
125
135
## Microsoft Entra joined session host VMs
126
136
127
-
For connections to succeed, you must [disable the legacy per-user multifactor authentication sign-in method](../active-directory/devices/howto-vm-sign-in-azure-ad-windows.md#mfa-sign-in-method-required). If you don't want to restrict signing in to strong authentication methods like Windows Hello for Business, you'll also need to [exclude the Azure Windows VM Sign-In app](../active-directory/devices/howto-vm-sign-in-azure-ad-windows.md#enforce-conditional-access-policies) from your Conditional Access policy.
137
+
For connections to succeed, you must [disable the legacy per-user multifactor authentication sign-in method](../active-directory/devices/howto-vm-sign-in-azure-ad-windows.md#mfa-sign-in-method-required). If you don't want to restrict signing in to strong authentication methods like Windows Hello for Business, you need to [exclude the Azure Windows VM Sign-In app](../active-directory/devices/howto-vm-sign-in-azure-ad-windows.md#enforce-conditional-access-policies) from your Conditional Access policy.
0 commit comments