I have an install that works on regular hardware but does not seem to detect the logged on user properly on a vm. The install runs and closes down the apps but on the vm it will not show the UI. I noticed one line that was different in the logs from the two machines.
non working UI,
[Initialization] :: There is no console user logged in (user with control of physical monitor, keyboard, and mouse). PSAppDeployToolkit 8/2/2021 12:48:00 PM 2260 (0x08D4)
although a few lines before it says this.
[Initialization] :: The following users are logged on to the system: [AZUREAD\username]. PSAppDeployToolkit 8/2/2021 12:48:00 PM 2260 (0x08D4)
working UI
[Initialization] :: The following user is the console user [AZUREAD\username] (user with control of physical monitor, keyboard, and mouse). PSAppDeployToolkit 8/2/2021 11:56:00 AM 18340 (0x47A4)