Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-104 topic 2 question 9 discussion

Actual exam question from Microsoft's AZ-104
Question #: 9
Topic #: 2
[All AZ-104 Questions]

You recently created a new Azure subscription that contains a user named Admin1.
Admin1 attempts to deploy an Azure Marketplace resource by using an Azure Resource Manager template. Admin1 deploys the template by using Azure
PowerShell and receives the following error message: `User failed validation to purchase resources. Error message: `Legal terms have not been accepted for this item on this subscription. To accept legal terms, please go to the Azure portal (http://go.microsoft.com/fwlink/?LinkId=534873) and configure programmatic deployment for the Marketplace item or create it there for the first time.`
You need to ensure that Admin1 can deploy the Marketplace resource successfully.
What should you do?

  • A. From Azure PowerShell, run the Set-AzApiManagementSubscription cmdlet
  • B. From the Azure portal, register the Microsoft.Marketplace resource provider
  • C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet
  • D. From the Azure portal, assign the Billing administrator role to Admin1
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://docs.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-4.1.0

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 2 years, 11 months ago
Correct Answer: C Set-AzMarketplaceTerms -Publisher <String> -Product <String> -Name <String> [-Accept] [-Terms <PSAgreementTerms>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] Reference: https://docs.microsoft.com/en-us/powershell/module/Az.MarketplaceOrdering/Set-AzMarketplaceTerms?view=azps-4.6.0
upvoted 242 times
lingxian
2 years, 10 months ago
I found mlantonis's answers are the most credible.
upvoted 57 times
kennynelcon
2 years ago
I will sit for one in few weeks and I am following his answers, a gem
upvoted 10 times
...
...
dlwpdud
1 year, 4 months ago
mlatonis is god
upvoted 9 times
matiandal
1 year ago
there is no god, only humans ;-)
upvoted 5 times
nmnm22
6 months, 4 weeks ago
we stan a humble king
upvoted 1 times
...
...
...
Techfall
1 year, 1 month ago
For anyone wondering how we are supposed to know this while studying for 104, it's hiding here under VM docs: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage
upvoted 34 times
matiandal
1 year ago
that's the spirit mate !
upvoted 5 times
...
umavaja
3 months ago
The correct url for documentation https://learn.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-11.2.0
upvoted 2 times
...
...
...
xclusivetp3
Highly Voted 3 years, 8 months ago
answer is correct
upvoted 26 times
...
tashakori
Most Recent 1 month ago
C is correct
upvoted 1 times
...
Tallgeese
2 months, 1 week ago
Selected Answer: C
The answer is C because everyone else said so.
upvoted 1 times
...
mattpaul
6 months ago
I passed with these questions and many friends passed too, if you want real exam questions, contact me on [email protected]
upvoted 1 times
...
photon99
6 months ago
Please, dear Microsoft stop including such kinds of questions which are out of scope.
upvoted 2 times
...
mattpaul
6 months ago
I passed with these questions and many friends passed too, if you want real exam questions for twenty only, contact me on [email protected]
upvoted 1 times
...
mattpaul
6 months ago
pass in the first attempt with real questions, contact me [email protected]
upvoted 1 times
...
oopspruu
8 months, 1 week ago
Selected Answer: C
Answer is correct. Source: https://learn.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-10.2.0 Set-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" -Accept
upvoted 1 times
...
Madbo
1 year ago
C. The solution to ensure that Admin1 can deploy the Marketplace resource successfully is to run the Set-AzMarketplaceTerms cmdlet from Azure PowerShell. This cmdlet allows you to accept the legal terms for a Marketplace item in your subscription. Once the legal terms are accepted, the user should be able to deploy the resource without any issues.
upvoted 3 times
umavaja
3 months ago
https://learn.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-11.2.0
upvoted 1 times
...
...
lokii9980
1 year ago
C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet. The error message indicates that the user needs to accept the legal terms for the Marketplace item before they can deploy it. To do this programmatically, you can use the Set-AzMarketplaceTerms cmdlet in Azure PowerShell to accept the legal terms for the subscription. The cmdlet takes the name of the publisher, the name of the offer, and the terms agreement type as parameters. Once the legal terms have been accepted, the user should be able to deploy the Marketplace resource successfully.
upvoted 3 times
...
Mazinger
1 year, 2 months ago
Selected Answer: C
To resolve the error message and enable Admin1 to deploy the Azure Marketplace resource successfully, you need to accept the legal terms for the Marketplace resource in the Azure portal. The error message indicates that the legal terms have not been accepted for the resource, and you need to do so before the resource can be deployed. Therefore, the correct answer is: C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet You can use the Set-AzMarketplaceTerms cmdlet to accept the legal terms for the Marketplace resource in Azure PowerShell. This cmdlet will open a browser window and prompt you to sign in to the Azure portal to accept the terms for the resource. After you have accepted the terms, you can use the Azure Resource Manager template to deploy the resource without encountering the validation error. The other options listed are not relevant to the error message and will not resolve the issue.
upvoted 3 times
...
km_2022
1 year, 2 months ago
Answer C - Some VM images in the Azure Marketplace have additional license and purchase terms that you … To view an image's purchase plan information, run the Get-AzVMImage cmdlet. If the PurchasePlan property in the output is not null, the image has terms you need to accept before programmatic deployment.
upvoted 1 times
...
GeoPoi
1 year, 3 months ago
Selected Answer: C
Accepting the "Terms"
upvoted 1 times
...
LUISGAR
1 year, 4 months ago
C no doubt
upvoted 1 times
...
coskun3firat
1 year, 5 months ago
answer is correct;)
upvoted 1 times
...
NaoVaz
1 year, 7 months ago
C) " From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet" Set-AzMarketplaceTerms - "Accept or reject terms for a given publisher id(Publisher), offer id(Product) and plan id(Name). Please use Get-AzMarketplaceTerms to get the agreement terms." https://docs.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-8.3.0
upvoted 3 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 ...