Pp azure cost admin

From mvanhorn/printing-press-library · View interactive version

Pp azure cost admin is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Printing Press CLI for read-only Azure cost review. Use Azure Cost Management, Resource Graph, simple anomaly checks, and public retail price lookup support from the terminal.

How to use this skill

Skill file

<!-- GENERATED FILE — DO NOT EDIT.

This file is a verbatim mirror of library/cloud/azure-cost-admin/SKILL.md,

regenerated post-merge by tools/generate-skills/. Hand-edits here are

silently overwritten on the next regen. Edit the library/ source instead.

See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

Azure Cost Admin — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the azure-cost-admin-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer:

```bash

npx -y @mvanhorn/printing-press-library install azure-cost-admin --cli-only

```

  1. Verify: azure-cost-admin-pp-cli --version
  2. Ensure $GOPATH/bin (or $HOME/go/bin) is on $PATH.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/cloud/azure-cost-admin/cmd/azure-cost-admin-pp-cli@latest

If --version reports "command not found" after install, the install step did not put the binary on $PATH. Do not proceed with skill commands until verification succeeds.

What This CLI Does

Azure Cost Admin is a read-only CLI for Azure FinOps questions. Use it to inspect actual billed spend, service and resource-group cost breakdowns, tag hygiene, simple cost changes, and public Azure retail price metadata.

It reads Azure Cost Management, Azure Resource Graph, and Azure Retail Prices data. It does not create budgets, edit tags, delete resources, create resources, or change Azure configuration.

When Not to Use This CLI

Do not use this CLI for creating, updating, deleting, tagging, purchasing, changing budgets, changing alerts, granting access, or modifying Azure resources. It is for read-only inspection and estimate support.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Auth Setup

Use Azure CLI authentication:

az login
az account set --subscription <subscription-id-or-name>

Never paste Azure tokens, tenant IDs, subscription IDs, account emails, raw resource IDs, exact spend amounts, or customer names into public artifacts.

Command Reference

doctor — Check local Azure access and read-only API reachability.

subscriptions — List reachable subscriptions.

spend summary — Show actual Azure spend totals for a timeframe.

spend by-service — Group actual spend by Azure service.

spend by-resource-group — Group actual spend by resource group.

spend by-tag — Group actual spend by a tag key.

anomalies — Compare recent service spend with the previous window.

tags untagged — Find resources missing a requested tag key.

price search — Search public Azure Retail Prices for estimate support.

Agent Mode

Add --agent to emit compact JSON for agents and scripts. Use --select to keep only comma-separated JSON fields. Use --dry-run to preview a read-only request before calling Azure.

Examples:

azure-cost-admin-pp-cli spend by-service --timeframe MonthToDate --agent --select timeframe,currency
azure-cost-admin-pp-cli tags untagged --tag owner --limit 1 --agent --select type

Safety Guidance

Default human output masks sensitive identifiers where practical. JSON output is intended for trusted local scripts and agents.

When sharing proof, redact subscription IDs, tenant IDs, account emails, resource IDs, resource group names, customer names, exact spend amounts, and tokens.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.