exam questions

Exam AZ-140 All Questions

View all questions & answers for the AZ-140 exam

Exam AZ-140 topic 4 question 11 discussion

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

You have an Azure Virtual Desktop host pool named Pool1. Pool1 contains session hosts that have a third-party application named App1. App1 is published by using a RemoteApp group.
A new MSI-based version of App1 is installed each month to each host. The name of the executable file is different for each version of App1.
You need to automate the process of making a new version of App1 available via RemoteApp. The process must ensure that the user experience remains the same when launching the application from the Windows Desktop client.
Which two cmdlets should you run? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Remove-AzWvdApplication
  • B. New-AzWvdApplication
  • C. New-AzWvdApplicationGroup
  • D. New-AzWvdMsixPackage
  • E. New-AzRoleAssignment
  • F. Remove-AzWvdMsixPackage
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
Justin0020
Highly Voted 3 years, 6 months ago
I think A and B are the only options that make sense. MSIX is not mentioned in the question, and you have to remove an old application to prevent multiple shortcuts for the same application (but older versions).
upvoted 13 times
17Master
3 years, 3 months ago
analyzing...https://docs.microsoft.com/en-us/powershell/module/az.desktopvirtualization/new-azwvdapplication?view=azps-7.3.2 B. New-AzWvdApplication ---- Create or update an application. D. New-AzWvdMsixPackage ---- Create or update a MSIX package. F. Remove-AzWvdMsixPackage--- Remove an MSIX Package A. Remove-AzWvdApplication ----Remove an application. E. New-AzRoleAssignment----Assigns the specified RBAC role to the specified principal C. New-AzWvdApplicationGroup----Create or update an applicationGroup. *************************** C & E = Not related to the question. F & A= no need to delete. B & D = Create and update, so these would be the correct options.
upvoted 11 times
...
...
jeff1988
Most Recent 7 months, 2 weeks ago
Selected Answer: AB
You should use the following cmdlets: Remove-AzWvdApplication: This cmdlet will remove the old version of the application from the RemoteApp group. New-AzWvdApplication: This cmdlet will add the new version of the application to the RemoteApp group.
upvoted 2 times
...
hawkens
1 year ago
# Uninstall the old version # Install the new version # Update RemoteApp configuration Import-Module RemoteDesktop $collectionName = "RemoteAppCollection" $alias = "App1Alias" $newExecutablePath = "C:\Path\To\New\App1.exe" $remoteApp = Get-RDRemoteApp -Alias $alias -CollectionName $collectionName if ($remoteApp) { Set-RDRemoteApp -Alias $alias -CollectionName $collectionName -FilePath $newExecutablePath -FileVirtualPath $newExecutablePath Write-Output "Updated RemoteApp $alias to point to $newExecutablePath" } else { Write-Output "RemoteApp $alias not found in collection $collectionName" }
upvoted 1 times
...
ESAJRR
1 year, 5 months ago
Selected Answer: AB
A. Remove-AzWvdApplication B. New-AzWvdApplication
upvoted 1 times
...
jr_luciano
2 years ago
Selected Answer: BD
B. New-AzWvdApplication D. New-AzWvdMsixPackage
upvoted 1 times
...
Leocan
2 years ago
Selected Answer: AB
A new MSI-based version of App1 is installed each month to each host.
upvoted 1 times
...
Menovice
2 years, 3 months ago
Selected Answer: AB
You would need to create a script to automate the creation of the app. So first delete the old App1 with A and the create the new App1 with B.
upvoted 1 times
...
ryouga1313
2 years, 3 months ago
Every person here talking about A & B seem to have entirely missed the point of the question... "You need to ****automate**** the process of making a new version of App1 available via RemoteApp". They are looking to improve their current process of having to manually install an msi to each host every month. Manually deleting and recreating an app group does not help with this automation. MSIX packages allow containerization of the app and not only facilitates single-location updating, but removes the necessity of having to change the path of the remoteapp .exe every month.
upvoted 3 times
GBAU
10 months, 1 week ago
Disagree. They are looking only to "automate the process of making a new version of App1 available via RemoteApp", not automate the install of the MSI. It is specifically stated that the MSI is already installed each month (maybe that is already automated, who knows, who cares in the context of this question). They just want to automate the RemoteApp component.
upvoted 1 times
...
...
constructedrobot
3 years, 1 month ago
Selected Answer: AB
MSIX = Containerized applications without installing the applications on the session hosts. Question states - A new MSI-based version of App1 is installed each month to each host, thus "New-AzWvdMsixPackage" is not even considered in this scenario.
upvoted 4 times
...
Eltooth
3 years, 2 months ago
Selected Answer: AB
A and B are correct answers.
upvoted 1 times
...
Brother_99
3 years, 2 months ago
Selected Answer: AB
Correct answer is A and B
upvoted 1 times
...
Marius6299
3 years, 3 months ago
Selected Answer: AB
A & B - Question does not mention MSIX
upvoted 1 times
...
ceeteex
3 years, 4 months ago
Selected Answer: AB
Correct answered is A and B
upvoted 1 times
...
Ammoval
3 years, 4 months ago
Selected Answer: AB
Correct answered is A and B
upvoted 1 times
...
AngelDark
3 years, 4 months ago
I vote for A and B, Application is installed on each host and its being updated every month to update the version and will rename the executable file. So the solution would be remove the existing remoteapp and add the latest version of the app.
upvoted 1 times
...
allyQ
3 years, 5 months ago
I went with A&D first. Still confused on this one !!
upvoted 3 times
...
arbn22
3 years, 5 months ago
It says RemoteAPP so it must be A and B.
upvoted 2 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 ...