azure-subscription-context

azure-subscription-context is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 16 tokens per session (902 once invoked), scanned A, original, MIT.

A practical guide to checking and changing the active Azure subscription, the billing and resource boundary used by Azure CLI commands.

In plain words
What is it for?
Use it before Azure CLI work to inspect available subscriptions, confirm the current one, switch accounts, and troubleshoot missing resources.
Why use it?
It prevents commands from appearing to fail because they target the wrong subscription, or from creating resources in the wrong account.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before Azure CLI work to inspect available subscriptions, confirm the current one, switch accounts, and troubleshoot missing resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/azure-subscription-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fabioc-aloha/Alex_Skill_Mall --skill azure-subscription-context
Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-subscription-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-subscription-context/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-subscription-context)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-subscription-context"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-subscription-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-subscription-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/azure-subscription-context"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/azure-subscription-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00902
Opus 5 $0.00008 $0.00451
Sonnet 5 $0.00003 $0.00180
Haiku 4.5 $0.00002 $0.00090

Measured 8d ago against content hash 53080745e2ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

azure-subscription-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cloud-infrastructure/azure-subscription-context/skills/azure-subscription-context/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Subscription Context

Category: Azure Time Saved: 30 minutes - 1 hour debugging Battle-tested: Yes — affects nearly every Azure CLI session


The Problem

Your Azure CLI command returns empty results, "resource not found", or creates resources in the wrong location. The command syntax is correct. The resource exists. You can see it in the portal.

Why It Happens

Azure CLI commands run against the currently active subscription. If you have multiple subscriptions (personal, work, client projects), you're probably in the wrong one.

The Rule

Always verify subscription context with az account show before running commands.

# FIRST command in any Azure session
az account show --query "{name:name, id:id}" -o table

Quick Reference

Check Current Context

# Show current subscription
az account show

# Just the name and ID
az account show --query "{name:name, id:id}" -o table

List All Subscriptions

# See all subscriptions you have access to
az account list --query "[].{name:name, id:id, isDefault:isDefault}" -o table

Switch Subscription

# By name
az account set --subscription "My Subscription Name"

# By ID (more reliable if names have spaces)
az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Verification Pattern

Before running any destructive or expensive command:

# 1. Verify context
az account show --query name -o tsv
# Expected: "Production Subscription"

# 2. Then run your command
az group create --name mygroup --location eastus

Per-Command Override

You can specify subscription per-command without changing default:

# Query specific subscription
az vm list --subscription "Dev Subscription"

# Create in specific subscription
az group create \
  --name mygroup \
  --location eastus \
  --subscription "Production Subscription"

Common Symptoms

Symptom Likely Cause
Empty results from az resource list Wrong subscription
"Resource not found" Resource is in different subscription
Resource created in wrong subscription Default subscription is wrong
"You do not have access" Subscription requires re-auth or different account

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 166 lines · 16 tokens per session scan A 53080745e2ad

Subscribe to this mod's changes

azure-subscription-context is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 902 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

azure-governance-discovery

ANALYSIS SKILL — Azure Policy discovery: effective assignments (incl. MG-inherited), definitions/exemptions, effect classification, emits governance-constraints JSON. WHEN: 'Azure policy discovery', 'effective policy assignments', 'governance constraints', '04g-Governance Phase 1', 'refresh governance JSON'. DO NOT…

jonathan-vella/apex-accelerator · 86 tokens

azure-storage

UTILITY SKILL — Azure Storage Services: Blob, File Shares, Queue, Table, and Data Lake. Object storage, SMB shares, async messaging, NoSQL key-value, big-data analytics. Access tiers + lifecycle management. WHEN: "blob storage", "file shares", "queue storage", "table storage", "data lake", "access tiers", "lifecycle…

jonathan-vella/apex-accelerator · 105 tokens

azure-defaults

UTILITY SKILL — Applies canonical Azure defaults through an IaC workflow covering governance precedence, CAF naming, AVM-first composition, unique suffixes, cost monitoring, VNet planning, and lifecycle checks. WHEN: "Azure naming convention", "CAF naming", "resource tags", "AVM module", "security baseline", "region…

jonathan-vella/apex-accelerator · 86 tokens

azure-rbac

ANALYSIS SKILL — Find the right Azure RBAC role for an identity with least-privilege access; generate CLI, Bicep, and Terraform code to assign it. WHEN: "what role should I assign", "least privilege role", "RBAC role for", "role for managed identity", "custom role definition", "assign role to identity". DO NOT USE…

jonathan-vella/apex-accelerator · 98 tokens

infra-platform-cloudflare-workers

Cloudflare Workers edge compute platform — Wrangler CLI, KV, D1, R2, Durable Objects, Queues, Workers AI.

agents-inc/skills · 32 tokens

ai-infrastructure-litellm

LiteLLM proxy server setup, TypeScript client patterns via OpenAI SDK, model routing, fallbacks, load balancing, spend tracking, virtual keys, and production deployment.

agents-inc/skills · 41 tokens