Disconnect Users in Azure Virtual Desktop (Classic) | Exam AZ-140

Disconnect Users in Azure Virtual Desktop (Classic)

Question

Being the admin, you need to start a failover due to the secondary region outage.

Before starting the failover, you need to end the user connections in the current region.

Which of the following cmdlet would you run in PowerShell to disconnect the users in Azure Virtual Desktop (classic)?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B

Invoke-RdsUserSessionLogoff cmdlet is used to disconnect the users in Azure Virtual Desktop (classic).

Option A is incorrect.

Remove-RdsUserSessionLogoff is the incorrect cmdlet to run.

Option B is correct.

Invoke-RdsUserSessionLogoff cmdlet is used to disconnect the users in Azure Virtual Desktop (classic).

Option C is incorrect.

Remove-AzWvdUserSession is used to disconnect the users in the Azure-integrated version of AVD.Option D is incorrect.

Invoke-AzWvdUserSession is not the valid cmdlet.

To know more about Azure Virtual Desktop disaster recovery, please visit the below-given link:

To disconnect the users in Azure Virtual Desktop (classic) before starting a failover due to the secondary region outage, you would need to use the Invoke-RdsUserSessionLogoff cmdlet in PowerShell.

This cmdlet is used to forcefully log off a user session in Remote Desktop Services (RDS) or Azure Virtual Desktop. By running this cmdlet, you can end the user connections in the current region before starting the failover to the secondary region.

The correct answer to the question is B. Invoke-RdsUserSessionLogoff.

Let's take a closer look at the other answer options and why they are not correct:

A. Remove-RdsUserSessionLogoff: This cmdlet is used to remove a disconnected user session from the RDS server. It is not used to disconnect an active user session.

C. Remove-AzWvdUserSession: This cmdlet is used to remove a user session from Azure Virtual Desktop. It is not used to disconnect an active user session.

D. Invoke-AzWvdUserSession: This cmdlet is used to initiate a connection to a session host in Azure Virtual Desktop. It is not used to disconnect an active user session.

Therefore, the correct answer is B. Invoke-RdsUserSessionLogoff.