exam questions

Exam AZ-140 All Questions

View all questions & answers for the AZ-140 exam

Exam AZ-140 topic 10 question 3 discussion

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

You need to deploy the session hosts to meet the deployment requirements.
Which PowerShell cmdlet should you run first?

  • A. Update-AzWvdSessionHost
  • B. Get-AzApiManagementSsoToken
  • C. Set-AzVMADDomainExtension
  • D. New-AzWvdRegistrationInfo
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
constructedrobot
Highly Voted 2 years, 5 months ago
Selected Answer: D
New-AzWvdRegistrationInfo -SubscriptionId "<Value>" -ResourceGroupName "<Value>" -HostPoolName "<Value>" -ExpirationTime (Get-Date).AddDays(14)
upvoted 21 times
...
[Removed]
Highly Voted 2 years, 4 months ago
Update-AzWvdSessionHost - updates a session host in the host pool Get-AzApiManagementSsoToken - cmdlet returns a link (URL) containing a single sign-on (SSO) token to a deployed management portal of an API Management service. Set-AzVMADDomainExtension - adds an Azure Active Directory (AD) domain virtual machine extension to a virtual machine. This extension lets your virtual machine join a domain. New-AzWvdRegistrationInfo - This command creates a Windows Virtual Desktop Registration Token in a Host Pool.
upvoted 7 times
...
T10T
Most Recent 8 months ago
Selected Answer: D
Passed with a 919 on 02/29/2024. This question was on the test.
upvoted 2 times
...
vanr2000
1 year, 3 months ago
Selected Answer: D
Use PowerShell to generate the token used to add the virtual machines as session hosts to an Azure Virtual Desktop host pool https://learn.microsoft.com/en-us/powershell/module/az.desktopvirtualization/new-azwvdregistrationinfo?view=azps-10.0.0&viewFallbackFrom=azps-9.5.0
upvoted 1 times
...
Leocan
1 year, 4 months ago
Selected Answer: D
Add an Azure VM running Windows 10 Enterprise as a host to the Azure Virtual Desktop host pool by using PowerShell: https://microsoftlearning.github.io/AZ-140-Configuring-and-Operating-Microsoft-Azure-Virtual-Desktop/Instructions/Labs/LAB_02L04_Deploy_and_manage_host_pools_and_hosts_with_PowerShell_ADDS.html
upvoted 1 times
...
samaras
2 years, 4 months ago
The answer is D. because the powershell commnad line is used to generate the token needed to add more session hosts to host pools
upvoted 4 times
Simon_Leung
2 years, 3 months ago
This is the question's requirement. Generate token.
upvoted 3 times
...
...
Wazza22
2 years, 5 months ago
Answer is D https://docs.microsoft.com/en-us/azure/virtual-desktop/create-host-pools-powershell?tabs=azure-powershell
upvoted 5 times
...
imrans
2 years, 5 months ago
Selected Answer: C
nstall AVD extensions with PowerShell To make a ‘normal’ vm a AVD session host we need to install two extensions. The ActiveDirectory domain join extension and the desired state config (DSC) extension. The DSC extension installs the AVD agent software and registers the host into the AVD hostpool. There are two separate commands available for deploying the specific extension types. More information about these types Set-AzVmDscExtension and Set-AzVMADDomainExtension check the Microsoft documentation. To keep my code as simple as possible I’ve chosen to use the Set-AzVMExtension.
upvoted 1 times
AnonymousJhb
2 years, 5 months ago
no. add the host to the pool. create the reg key as per Windows Virtual Desktop Registration Token in a Host Pool
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago