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, 6 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 236 times
Techfall
9 months, 2 weeks 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 32 times
matiandal
7 months, 3 weeks ago
that's the spirit mate !
upvoted 4 times
...
...
dlwpdud
12 months ago
mlatonis is god
upvoted 9 times
matiandal
7 months, 3 weeks ago
there is no god, only humans ;-)
upvoted 5 times
nmnm22
2 months, 2 weeks ago
we stan a humble king
upvoted 1 times
...
...
...
lingxian
2 years, 6 months ago
I found mlantonis's answers are the most credible.
upvoted 55 times
kennynelcon
1 year, 7 months ago
I will sit for one in few weeks and I am following his answers, a gem
upvoted 10 times
...
...
...
xclusivetp3
Highly Voted 3 years, 4 months ago
answer is correct
upvoted 26 times
...
mattpaul
Most Recent 1 month, 2 weeks 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
1 month, 3 weeks ago
Please, dear Microsoft stop including such kinds of questions which are out of scope.
upvoted 1 times
...
mattpaul
1 month, 3 weeks 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
1 month, 3 weeks ago
pass in the first attempt with real questions, contact me [email protected]
upvoted 1 times
...
oopspruu
3 months, 3 weeks 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
8 months 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
...
lokii9980
8 months, 1 week 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
9 months, 3 weeks 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
10 months, 3 weeks 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
10 months, 4 weeks ago
Selected Answer: C
Accepting the "Terms"
upvoted 1 times
...
LUISGAR
11 months, 3 weeks ago
C no doubt
upvoted 1 times
...
coskun3firat
1 year ago
answer is correct;)
upvoted 1 times
...
NaoVaz
1 year, 2 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
...
EmnCours
1 year, 3 months ago
Selected Answer: C
Correct Answer: C
upvoted 1 times
...
libran
1 year, 3 months ago
Selected Answer: C
C is the Answer
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 ...