Skip to main content
  1. Home
  2. >
  3. Azure
  4. >
  5. AZ-104
  6. >
  7. Marketplace Deployment Governance | Azure AZ-104

Marketplace Deployment Governance | Azure AZ-104

Jeff Taakey
Author
Jeff Taakey
21+ Year Enterprise Architect | Multi-Cloud Architect & Strategist.

While preparing for the Azure AZ-104: Microsoft Azure Administrator exam, many candidates struggle with managing subscription governance and Marketplace resource deployment issues. In the enterprise world, the decision often hinges on enabling self-service resource deployment while maintaining subscription compliance and governance controls. Let’s drill into a simulated enterprise scenario.

The Scenario
#

Tailwind Traders, a mid-sized retail company with legacy on-premises systems, is accelerating their cloud adoption journey by assigning Azure subscriptions to various teams. One such subscription was recently created and assigned to LisaAdmin, a user responsible for provisioning cloud resources. LisaAdmin attempts to deploy a popular third-party solution from the Azure Marketplace using an ARM template but encounters the following error:

“User failed to verify terms of purchase for this resource. Error: Legal terms not accepted on this subscription.”

Tailwind Traders employs Azure Active Directory for identity and access management and uses enrollment and governance controls aligned with their Microsoft Cloud Adoption Framework (CAF) initiative. The company must enable LisaAdmin to successfully deploy Marketplace solutions without compromising on governance and billing compliance.

Key Requirements
#

Ensure LisaAdmin can deploy Marketplace items through ARM templates without receiving the legal terms acceptance error, with minimal impact to existing management and compliance policies.

The Options
#

  • A) Run the Set-AzApiManagementSubscription cmdlet via Azure PowerShell to grant deployment rights.
  • B) Register the Microsoft.Marketplace resource provider from the Azure Portal for the subscription.
  • C) Run the Set-AzMarketplaceTerms cmdlet via Azure PowerShell to accept Marketplace legal terms for the subscription.
  • D) Assign the Billing Administrator role to LisaAdmin from the Azure Portal.

Correct Answer
#

C) Run the Set-AzMarketplaceTerms cmdlet via Azure PowerShell to accept Marketplace legal terms for the subscription.


The Architect’s Analysis
#

Correct Answer
#

Option C.

Step-by-Step Winning Logic
#

Marketplace resource deployment via ARM templates requires that the subscription has accepted the Marketplace legal terms. These terms are subscription-scoped and need explicit acceptance before Azure Resource Manager allows provisioning. Running Set-AzMarketplaceTerms via PowerShell is the formal way to programmatically accept these terms ahead of deployment, automating governance compliance while enabling self-service provisioning. This aligns with CAF’s Enterprise-Scale governance pillar by ensuring legal and billing readiness, preventing deployment errors, and maintaining operational excellence.

The Traps (Distractor Analysis)
#

  • Why not A? The Set-AzApiManagementSubscription cmdlet is unrelated to Marketplace terms; it manages API Management subscriptions, not Marketplace purchases.
  • Why not B? Registering the Microsoft.Marketplace resource provider allows resource creation but does not resolve unmet legal terms acceptance, which triggers the error.
  • Why not D? Assigning Billing Administrator assigns billing permissions but is unnecessary and overprivileges the user just to accept Marketplace terms. Marketplace terms acceptance is not tied to billing role assignments.

The Architect Blueprint
#

Diagram illustrating the flow of Marketplace terms acceptance enabling deployment

graph TD User[LisaAdmin] -->|Attempts ARM Deployment| ARM[Azure Resource Manager] ARM -->|Checks Acceptance| Subscription[Azure Subscription] Subscription -->|Legal Terms Not Accepted| Error[Deployment Error] Admin[Cloud Admin] -->|Run Set-AzMarketplaceTerms cmdlet| Subscription Subscription -->|Legal Terms Accepted| ARM ARM -->|Deployment Allowed| Resource[Deployed Marketplace Resource] style ARM fill:#0078D4,stroke:#333,color:#fff style Subscription fill:#5C2D91,stroke:#333,color:#fff style Resource fill:#107C10,stroke:#333,color:#fff style Error fill:#E81123,stroke:#333,color:#fff style Admin fill:#FF8C00,stroke:#333,color:#fff

Diagram Note: Admin accepts Marketplace terms at the subscription level, enabling ARM deployments to proceed without legal acceptance errors.

The Decision Matrix
#

Option Est. Complexity Est. Monthly Cost Pros Cons
A) Set-AzApiManagementSubscription Medium None Manages API Management subscriptions Irrelevant to Marketplace terms acceptance
B) Register Microsoft.Marketplace RP Low None Enables Marketplace resource provider Does not accept legal terms; insufficient
C) Set-AzMarketplaceTerms Low None Explicit legal terms acceptance; fixes deployment errors Requires admin or delegated permission
D) Assign Billing Admin Role Medium None Empowers billing tasks Overprivileges user; unnecessary for terms acceptance

Real-World Practitioner Insight
#

Exam Rule
#

“For the AZ-104 exam, always choose Set-AzMarketplaceTerms when facing deployment errors related to legal terms on Marketplace resources.”

Real World
#

“In enterprise environments, automating Marketplace terms acceptance via scripts or Azure DevOps pipelines ensures governance compliance without escalating privileges, enabling smooth self-service deployments governed by CAF enterprise-scale policies.”

Weekly Azure AZ-104 Drills

Master Azure administration from identity to networking.