Configure a Group Policy Object (GPO) and set the LimitSecondsToForceLogOffUser parameter to zero. This allows the session configuration setting in specified group policies to handle signing off user sessions. https://docs.microsoft.com/en-gb/learn/modules/automate-azure-virtual-desktop-management-tasks/6-knowledge-check