exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

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 🗳️

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
mlantonis
Highly Voted 3 years, 8 months ago
Correct Answer: C Set-AzMarketplaceTerms -Publisher <String> -Product <String> -Name <String> [-Accept] [-Terms <PSAgreementTerms>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
upvoted 268 times
Techfall
1 year, 10 months 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 43 times
umavaja
12 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 4 times
...
...
lingxian
3 years, 7 months ago
I found mlantonis's answers are the most credible.
upvoted 61 times
kennynelcon
2 years, 9 months ago
I will sit for one in few weeks and I am following his answers, a gem
upvoted 11 times
...
...
...
xclusivetp3
Highly Voted 4 years, 5 months ago
answer is correct
upvoted 26 times
...
RajeshwaranM
Most Recent 3 weeks, 3 days ago
Selected Answer: C
Set-AzMarketplaceTerms -Publisher <String> -Product <String> -Name <String> [-Accept] [-Terms <PSAgreementTerms>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
upvoted 1 times
...
lionleo
1 month, 1 week ago
Selected Answer: C
The answer is correct, check the follwoing link https://about-azure.com/accept-legal-terms-using-powershell-to-deploy-arm-templates/
upvoted 1 times
...
Darkfire
3 months, 1 week ago
Selected Answer: C
https://learn.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-12.3.0
upvoted 1 times
...
SeMo0o0o0o
4 months, 2 weeks ago
Selected Answer: C
C is corerct
upvoted 1 times
...
3c5adce
8 months, 1 week ago
ChatGPT 4 says C
upvoted 1 times
...
tashakori
10 months ago
C is correct
upvoted 1 times
...
Tallgeese
11 months, 1 week ago
Selected Answer: C
The answer is C because everyone else said so.
upvoted 2 times
...
oopspruu
1 year, 5 months 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, 9 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
umavaja
12 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, 9 months 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, 11 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, 11 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
...
LUISGAR
2 years ago
C no doubt
upvoted 1 times
...
coskun3firat
2 years, 2 months ago
answer is correct;)
upvoted 1 times
...
NaoVaz
2 years, 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago