nerdexam
MicrosoftMicrosoft

AZ-104 · Question #16

AZ-104 Question #16: Real Exam Question with Answer & Explanation

The correct answer is 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 https://docs.microsoft.com/en-us/powershell/module/az.marketplaceordering/set- azmarketplaceterms?view

Submitted by saadiq_pk· Mar 4, 2026Deploy and manage Azure compute resources

Question

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 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?

Options

  • AFrom Azure PowerShell, run the Set-AzApiManagementSubscription cmdlet
  • BFrom the Azure portal, register the Microsoft.Marketplace resource provider
  • CFrom Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet
  • DFrom the Azure portal, assign the Billing administrator role to Admin1

Explanation

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 https://docs.microsoft.com/en-us/powershell/module/az.marketplaceordering/set- azmarketplaceterms?view=azps-8.3.0

Community Discussion

No community discussion yet for this question.

Full AZ-104 PracticeBrowse All AZ-104 Questions