Moving the AVD client to the new Entra application
The Azure Virtual Desktop (AVD) client on UniconOS devices signs users in with Microsoft Entra ID. To do this, it identifies itself with the ID of an application that is registered in Entra ID. If users also sign in to UniconOS itself with Entra ID, this sign-in uses the same application by default, so that the AVD client can reuse it.
With UniconOS 7.2611 and UniconOS 7.2603.3000 (2603 LTSR CU3), the AVD client uses a new application, with a different application ID. In your tenant, it is a separate enterprise application, and nothing carries over from the old one. Admin consent, Conditional Access policies, user assignments and allowlists that you set up for the old application don't apply to the new one.
An Azure Virtual Desktop or Entra ID setup that works today can therefore stop working after the update. Sign-ins can fail, and security settings such as Conditional Access policies can stop applying without any warning. Before you update the devices, prepare your tenant, see Preparing your tenant.
The two applications have these application IDs:
| Application | Application ID |
|---|---|
| New, used by default | 491bb6b0-7940-4e0f-bb52-b2989db8680b |
| Old, will be retired | 65a544d1-2825-432e-9083-d73f9c786d92 |
Important:
When the old application is retired, every device that still uses it fails to sign in to Azure Virtual Desktop. This includes devices that work today and that nobody has changed, so doing nothing isn't an option. Prepare your tenant and update your devices before the old application is retired.
Preparing your tenant
You need administrator rights in your tenant for the changes in Entra ID. Make them before your devices start to use the new application.
The steps in this section cover the settings that are affected most often. Some of them may not apply to you. Your tenant can also refer to the old application in other places, for example in custom policies, scripts, third-party tools, SIEM rules or automation.
Granting admin consent
Admin consent grants the new application its permissions for all users of your tenant. The application requests these permissions:
| Permission | Purpose |
|---|---|
openid, profile, email |
Signing the user in |
offline_access |
A refresh token, which is required for single sign-on to Azure Virtual Desktop |
https://www.wvd.microsoft.com/User.Access |
Listing and starting the user's Azure Virtual Desktop resources |
Admin consent works only if the Azure Virtual Desktop service principal exists in your tenant. Tenants that already use Azure Virtual Desktop have it.
-
In a browser, open the admin consent URL of the new application. Replace
{tenant-id}with the ID of your tenant:https://login.microsoftonline.com/{tenant-id}/adminconsent?client_id=491bb6b0-7940-4e0f-bb52-b2989db8680b -
Sign in with an account that can grant tenant-wide admin consent, for example one with the Cloud Application Administrator role.
-
Review the requested permissions, and accept them.
The new application now appears among the enterprise applications of your tenant.
Moving settings to the new application
Next, give the new application the settings that the old one has. Find the two enterprise applications by their application ID, not by their name.
-
Add the new application to every Conditional Access policy that refers to the old one.Take particular care with this step. A policy that refers only to the old application doesn't apply to the new one, and nothing tells you so: sign-ins succeed, nobody reports a problem, and the control is gone.
-
If the old application has Assignment required? set to Yes, set it to Yes for the new application too, and assign the same users and groups. If you skip this, the new application doesn't limit who can sign in, and you get no warning.
-
If you allow applications through allowlists, for example by application ID or by publisher, add the new application. Otherwise, the allowlist blocks it.
-
Change sign-in log filters and access reviews that use the old application ID to the new one. Otherwise, your reports miss the sign-ins of updated devices.
-
Check other settings that use the application ID, for example sign-in risk policies, session controls such as sign-in frequency or app-enforced restrictions, continuous access evaluation, Global Secure Access app filters and token lifetime policies.
-
Search the rest of your configuration for the old application ID
65a544d1-2825-432e-9083-d73f9c786d92, and review each match.
Updating the devices
A device uses the new application after a firmware update to UniconOS 7.2611 or 7.2603.3000. Devices with an older UniconOS version keep using the old application until you update them.
Roll out the update in stages:
-
Update the devices of a pilot group.
-
Check that their users can sign in and start their resources, see Checking the change.
-
Update the other devices.
If you want to update devices before your tenant is ready, you can keep them on the old application for a while, see Setting the application ID on the device.
Keep the old application in your tenant, with its consent and its policies, until no device uses it any more. The sign-in logs of Entra ID show this: they no longer list sign-ins with the old application ID. Then remove the old application from your tenant.
What users notice
When a device moves to the new application, each user has to sign in once more with their Entra ID account. The sign-in that the device saved for the old application doesn't work with the new one.
If users sign in to UniconOS with Entra ID, the move also changes how UniconOS recognizes them, because Entra ID identifies a user differently for each application:
-
A session that was locked before the move can't be unlocked after it. To get back in, the user logs off from the lock screen and signs in again.
-
UniconOS treats the user as a new user and creates a new home directory.
Setting the application ID on the device
The application ID is a device setting, so you can change it without a new UniconOS version. The setting applies to the AVD client and to the Entra ID sign-in on the device. You don't need to set it: without the setting, both use the new application.
Set the application ID only to point devices to another application:
-
To keep devices on the old application for now, for example when you update them before your tenant is ready. You can then move them to the new application group by group. This works only until the old application is retired.
-
To use an application that you registered in your own tenant.
You set the application ID as an advanced file entry for an OU or a device. In UniconOS Management Board, you find advanced file entries in the Advanced file entries section of the advanced device configuration.
The advanced file entry has these values:
| File | Section | Key | Value |
|---|---|---|---|
/setup/terminal.ini |
AVD |
OauthClientId |
The application ID, for example 65a544d1-2825-432e-9083-d73f9c786d92 for the old application |
The device uses the new value after it has received the entry and restarted.
Checking the change
On a device of your pilot group, check that the AVD client works with the new application:
-
Start the AVD client, and sign in if it asks you to.The user's Azure Virtual Desktop resources are shown.
-
Start a resource.The session opens.
To see which application ID a device uses, run
ucsettingsctl -o AvdConfiguration in a terminal on the device. In Entra ID, the sign-in logs list the sign-ins of updated devices under the new application ID.
If the consent or a sign-in fails, use this table to find the cause:
| What you see | Cause | Solution |
|---|---|---|
| The sign-in fails. Users get no consent prompt, or a prompt that they can't complete. | Admin consent for the new application is missing. | Grant admin consent, see Granting admin consent. |
The error AADSTS650052 when you grant admin consent |
The Azure Virtual Desktop service principal is missing in your tenant. | Register the resource provider Microsoft.DesktopVirtualization in your Azure subscription, and grant admin consent again. |
The error AADSTS50105 when a user signs in |
The new application requires user assignment, and the user isn't assigned. | Assign the user, or a group of the user, to the new application. |
| The Microsoft sign-in page reports that the application with the given identifier wasn't found in the directory. | The device uses an application ID that doesn't exist, for example a mistyped OauthClientId. |
Correct or delete the OauthClientId entry, and restart the device. |