Disconnect a user session in Azure Virtual Desktop (AVD) – PowerShell

Prerequisites: The Microsoft.RDInfra.RDPowerShell module, the Az PS module First, install the RDInfra module: Then proceed by installing the Az module and logging in: Once you are logged in you can run the following script to disconnect a specific user session: