Az / Show Marketplace Terms
Show Marketplace Terms
Displays terms for a specific Azure Marketplace product, plan, and publisher.
az term show --product "<product_identifier>" --plan "<plan_identifier>" --publisher "<publisher_identifier>" az term show --product "<product_identifier>" --plan "<plan_identifier>" --publisher "<publisher_identifier>" #!/bin/bash
# Show Marketplace Terms
az term show --product "{{product_identifier}}" --plan "{{plan_identifier}}" --publisher "{{publisher_identifier}}" import subprocess
# Show Marketplace Terms
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"az",
"term",
"show",
"--product",
"\"<product_identifier>\"",
"--plan",
"\"<plan_identifier>\"",
"--publisher",
"\"<publisher_identifier>\""
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: az not found. Please install it first.")
if __name__ == "__main__":
run_command() When To Use
During compliance audit checks to confirm terms of service before deployment.
Pro Tip
Use `--output table` for a summary view; undocumented feature, faster parsing.
Command Builder
Tune the command before you copy it
az term show --product "<product_identifier>" --plan "<plan_identifier>" --publisher "<publisher_identifier>" Terminal Output
Expected runtime feedback
\n\nProduct Identifier | Plan Identifier | Publisher Identifier | Terms \n----------------------|----------------------|------------------------|------------------\nmy-product | my-plan | my-publisher | Acceptable Usage Policy \nViewable Availability | Terms of Service | Privacy Policy | 2023-10-01 \n Anatomy of Output
Understanding the result
Terms found for Product: my-product Product Name of the product queried.
Plan: my-plan | Publisher: my-publisher Plan and Publisher Identifies plan and publisher.
Review the usage rights and restrictions in detail. Terms Note Critical information for compliance.
Troubleshooting
Common pitfalls
InvalidProductIdentifierError: The product identifier is not recognized.
Solution: Verify the product identifier against Azure Marketplace.
PlanNotFoundError: The specified plan does not exist for the publisher.
Solution: Check the plan identifier and try again.
UnauthorizedAccessError: You do not have permission to access terms for this product.
Solution: Ensure you have the necessary role assignments in Azure.
Command Breakdown
What each part is doing
-
az - Base Command
- The executable that performs this operation. Here it runs Az before the shell applies any redirect operators.
-
<product_identifier> - product identifier
- The value supplied for product identifier.
-
<plan_identifier> - plan identifier
- The value supplied for plan identifier.
-
<publisher_identifier> - publisher identifier
- The value supplied for publisher identifier.
-
--product - Command Option
- Tool-specific option used by this command invocation.
-
--plan - Command Option
- Tool-specific option used by this command invocation.
-
--publisher - Command Option
- Tool-specific option used by this command invocation.
How To Run
Execution path
- Step 1
Run the command: az term show --product "my-product" --plan "my-plan" --publisher "my-publisher"
- Step 2
Verify the output includes the marketplace terms for your specified product and plan.
- Step 3
Ensure the identifiers are accurate to see the correct terms.
Alternative Approaches
Comparable commands in other tools
Alternative cloud infrastructure tools for the same job.
aws sns publish {--topic-arn "arn:aws:sns:us-west-2:123456789012:topic-name"||--phone-number +1-555-555-0100} --message file://<path/to/file> Func / Publish Code To Azure Function App func azure functionapp publish <function> Gitlab Backup / Restore Backup Skipping Components sudo gitlab-backup restore BACKUP=<backup_id> SKIP=<db,uploads,...> Exo / Upload File To Bucket exo storage put <path/to/file> <bucket_name>/<prefix/>