How to Use Azure SKU pricing in Gemini CLI
Returns Microsoft's retail rate records for a known Azure SKU and region, with meter names, billing units, and effective dates. Use it to inspect the charges attached to a specific resource size or storage SKU.
Prompts to try with Azure SKU pricing in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Azure SKU pricing for Standard_D2s_v3 in eastus, then add a table of returned products, meters, billing units, and effective dates to our architecture notes.
Read the Terraform files and use Azure SKU pricing to compare any Standard_D2s_v3 deployments with the same SKU in westeurope. Keep consumption types and billing units separate in the review.
Use Azure SKU pricing to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Azure SKU pricing and tell me what changed since last week.
Check Azure SKU pricing and summarize what you find in three bullet points.
How to set up Azure SKU pricing in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Azure SKU pricing
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "prices-azure-com/products/get_sku_prices", "input": { "arm_sku_name": "<arm_sku_name>", "arm_region_name": "<arm_region_name>" } }'
Then paste one of the prompts above: Gemini CLI finds Azure SKU pricing on Spiral, shows the price and runs it.
Azure SKU pricing providers and prices
Spiral runs Azure SKU pricing through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Price type | Consumption, DevTestConsumption, or Reservation | Restrict to one price type; omit for all. | |
| Include savings plan | on or off | Request api-version 2023-01-01-preview to get |
Every API field of Azure Retail Prices · Get sku prices is on its tool page: open its card above.
What can you do with Azure SKU pricing in Gemini CLI?
Add an Azure retail baseline to an infrastructure review using the SKUs and regions in the project's deployment files. The agent can attach meter names, billing units, tier thresholds, and effective dates to make each estimate reviewable.
Build a regional budget baseline
Collect retail records for a planned Azure deployment in East US and West Europe. Compare matching products, billing units, and consumption tiers, using discovered SKU names or saved meter IDs to narrow the review.
Explain a billing meter
Turn a meter ID into a readable explanation of its Azure product, SKU, region, and usage unit. Use that explanation to review a cost export against a public retail baseline.
Check an estimate's billing units
Review the Azure rate records behind an estimate and identify calculations that mix hourly units with other usage measures or overlook a consumption threshold.
Watch a deployment's retail baseline
Save repeated observations of the Azure SKUs or meters used in a deployment. Report changes in returned rates, units, and effective dates against the previous saved observation.
Document an architecture decision
Attach the exact Azure product, SKU, meter, region, billing unit, and effective date to a retail comparison. This makes the assumptions behind a resource choice reviewable.
Separate Spot records from standard VM records
Inspect Azure virtual machine results for Spot in the meter and SKU names. Keep those records separate when comparing resource choices for an interruptible batch workload.
More on Azure SKU pricing and Gemini CLI
Overview
Azure SKU pricing in other agents
Questions about Azure SKU pricing in Gemini CLI
Can Gemini CLI use Azure SKU pricing?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Azure SKU pricing like any built-in tool.
How much does Azure SKU pricing cost in Gemini CLI?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an Alexandria account to use Azure SKU pricing in Gemini CLI?
No. Spiral runs Azure SKU pricing on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Azure SKU pricing in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Azure SKU pricing runs?
Azure SKU pricing runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.
Does this catalog include Azure Government and Azure China?
Microsoft limits this Retail Prices API to Azure Commercial Cloud. Do not use its regional records as evidence of rates in Azure Government or Azure China.
Are these the rates my organization actually pays?
These are public retail rates. Microsoft identifies the Price Sheet API as the source for negotiated Enterprise customer pricing.
Can one source response contain every matching record?
Microsoft caps an upstream response at 1,000 records and supplies a next-page link. A broad catalog comparison can therefore require multiple source pages.
What does the effective date tell me about freshness?
The optional effective start date tells you when that rate takes effect. It is not a timestamp for the catalog's latest refresh.
Why might a converted rate disagree with my invoice?
Microsoft says the API's currency conversions produce estimates using the current conversion rate. Those results can differ from the conversion used for your invoice.
Start using Azure SKU pricing in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


