You deployed AVD in a secondary region and plan a test failover, but users still have active sessions in the primary region. Which PowerShell cmdlet signs out users from session hosts in the primary region?
Choose an answer
Tap an option to check your answer.
Correct answer: Remove-AzWvdUserSession.
Why this is the answer
The Remove-AzWvdUserSession cmdlet is the correct choice for signing out users from Azure Virtual Desktop (AVD) session hosts. This cmdlet is specifically designed for managing user sessions within AVD environments, allowing administrators to disconnect or log off active sessions. Invoke-RdsUserSessionLogoff is an older cmdlet from the Remote Desktop Services (RDS) PowerShell module and is not used for managing AVD sessions. Invoke-RestMethod is a general-purpose cmdlet for sending HTTP/HTTPS requests and is not specific to AVD session management. Remove-Alias is used to remove an alias for a cmdlet or function, which is unrelated to user session management.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed