exam questions

Exam AZ-140 All Questions

View all questions & answers for the AZ-140 exam

Exam AZ-140 topic 5 question 7 discussion

Actual exam question from Microsoft's AZ-140
Question #: 7
Topic #: 5
[All AZ-140 Questions]

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?

  • A. Invoke-RdsUserSessionLogoff
  • B. Remove-AzWvdUserSession
  • C. Invoke-RestMethod
  • D. Remove-Alias
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jeff1988
7 months, 2 weeks ago
Selected Answer: A
To sign out users from the session hosts in the primary location of your Azure Virtual Desktop deployment, you should use the Invoke-RdsUserSessionLogoff cmdlet. This cmdlet allows you to log off user sessions from a specified session host. Therefore, the correct answer is: A. Invoke-RdsUserSessionLogoff. The cmdlet Remove-AzWvdUserSession is not the correct choice because it is not designed for logging off user sessions. Instead, it is used for removing user sessions from the Azure Virtual Desktop environment, which is not the same as logging off users. The Invoke-RdsUserSessionLogoff cmdlet is specifically designed to log off user sessions from a specified session host, which is what you need to do in this scenario.
upvoted 2 times
...
ESAJRR
1 year, 4 months ago
Selected Answer: B
B. Remove-AzWvdUserSession
upvoted 1 times
...
constructedrobot
3 years ago
Selected Answer: B
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
upvoted 3 times
...
Eltooth
3 years, 2 months ago
Selected Answer: B
B is correct - providing AVD deployment is not classic mode. https://docs.microsoft.com/en-us/azure/virtual-desktop/disaster-recovery
upvoted 3 times
...
Bibi06
3 years, 7 months ago
Yes it's correct. https://docs.microsoft.com/en-us/powershell/module/az.desktopvirtualization/remove-azwvdusersession?view=azps-6.6.0
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...