QuestionQ80

VerifiedDeploy and manage Azure compute resources

You recently created a new Azure subscription that includes a user named Admin1.

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

Explanation

Azure Marketplace offers that require purchase validation must have their legal terms accepted once per subscription before they can be deployed programmatically with ARM templates or PowerShell. The Az.MarketplaceOrdering cmdlet Set-AzMarketplaceTerms is specifically used to accept those terms for the publisher, product, and plan, which resolves the validation error and allows deployment to proceed.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!