nerdexam
MicrosoftMicrosoft

AZ-140 · Question #72

AZ-140 Question #72: Real Exam Question with Answer & Explanation

The correct answer is B: Remove-AzWvdUserSession. If there are existing user connections during the outage, before the admin can start failover to the secondary region, you need to end the user connections in the current region. To disconnect users in Azure Virtual Desktop (classic), run this cmdlet: Invoke- RdsUserSessionLogoff

Submitted by layla.eg· Apr 18, 2026Monitor and maintain an Azure Virtual Desktop infrastructure

Question

You have an Azure Virtual Desktop deployment. You deploy and configure Azure Virtual Desktop in a secondary location. You plan to perform a test failover to the secondary location, but discover existing user sessions to the primary location. You need to sign out users from the session hosts in the primary location. Which PowerShell cmdlet should you run?

Options

  • AInvoke-RdsUserSessionLogoff
  • BRemove-AzWvdUserSession
  • CInvoke-RestMethod
  • DRemove-Alias

Explanation

If there are existing user connections during the outage, before the admin can start failover to the secondary region, you need to end the user connections in the current region. To disconnect users in Azure Virtual Desktop (classic), run this cmdlet: Invoke- RdsUserSessionLogoff To disconnect users in the Azure-integrated version of Azure Virtual Desktop, run this cmdlet: Remove-AzWvdUserSession Once you’ve signed out all users in the primary region, you can fail over the VMs in the primary region and let users connect to the VMs in the secondary region. https://docs.microsoft.com/en-us/powershell/module/az.desktopvirtualization/remove- azwvdusersession?view=azps-6.6.0

Topics

#Azure Virtual Desktop#PowerShell#User Session Management#AVD Administration

Community Discussion

No community discussion yet for this question.

Full AZ-140 PracticeBrowse All AZ-140 Questions