Plugin for az-scout to list batch SKUs in Azure per region.
Project description
az-scout-plugin-batch-sku
An az-scout plugin that lists Azure Batch-compatible VM SKUs per region, grouped by VM family.
Features
- UI tab with subscription selector that reacts to the main app's tenant & region
- API route that queries the Azure Batch RP for supported VM sizes
- MCP tool to list Batch SKUs from the AI chat assistant
- Family grouping — SKUs are grouped by VM family in collapsible sections
- Live filter — search by SKU name or family after loading
- Capabilities display — shows vCPUs, memory, GPU count and end-of-life date
Setup
# Install the plugin (editable mode for development)
uv pip install -e .
# Start az-scout — the plugin is auto-discovered
az-scout
Structure
az-scout-plugin-batch-sku/
├── pyproject.toml
├── README.md
└── src/
└── az_scout_plugin_batch_sku/
├── __init__.py # Plugin class + module-level `plugin` instance
├── routes.py # FastAPI APIRouter — GET /plugins/batch_sku/batch-skus
├── tools.py # MCP tool: list_batch_skus
└── static/
├── css/
│ └── batch-sku.css
├── html/
│ └── batch-sku-tab.html
└── js/
└── batch-sku-tab.js
How it works
- The plugin tab loads the HTML fragment into
#plugin-tab-batch_sku. - It watches
#tenant-selectand#region-selectfor changes. - When both are set, it fetches subscriptions from
/api/subscriptions. - The user picks a subscription and clicks Load SKUs.
- The plugin calls
GET /plugins/batch_sku/batch-skus?subscription_id=…®ion=…&tenant_id=…. - Results are displayed in table with filtering capabilities.
Quality checks
The scaffold includes GitHub Actions workflows in .github/workflows/:
ci.yml— Runs lint (ruff + mypy) and tests (pytest) on Python 3.11–3.13, triggered on push/PR tomain.publish.yml— Builds, creates a GitHub Release, and publishes to PyPI via trusted publishing (OIDC). Triggered on version tags (v*). Requires apypienvironment configured in your repo settings with OIDC trusted publishing.
Run the same checks locally:
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
uv run mypy src/
uv run pytest
To publish a release:
git tag v0.2.0
git push origin v0.2.0
Copilot support
The .github/copilot-instructions.md file provides context to GitHub Copilot about
the plugin structure, conventions, and az-scout plugin API. It helps Copilot generate
code that follows the project patterns.
License
Disclaimer
This tool is not affiliated with Microsoft. All capacity, pricing, and latency information are indicative and not a guarantee of deployment success. Spot placement scores are probabilistic. Quota values and pricing are dynamic and may change between planning and actual deployment. Latency values are based on Microsoft published statistics and must be validated with in-tenant measurements.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file az_scout_plugin_batch_sku-2026.3.2.tar.gz.
File metadata
- Download URL: az_scout_plugin_batch_sku-2026.3.2.tar.gz
- Upload date:
- Size: 123.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a35307a9b26ffca930d5f79c0fba93afead32756875d859173cc8c83bc137695
|
|
| MD5 |
81e25ac86fa6682f64013d3cb73ba699
|
|
| BLAKE2b-256 |
54d7a50b1c5d5ed570b04978b2a846e94aafdfc2e4022c0fc090fb046b39981e
|
Provenance
The following attestation bundles were made for az_scout_plugin_batch_sku-2026.3.2.tar.gz:
Publisher:
publish.yml on lrivallain/az-scout-plugin-batch-sku
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
az_scout_plugin_batch_sku-2026.3.2.tar.gz -
Subject digest:
a35307a9b26ffca930d5f79c0fba93afead32756875d859173cc8c83bc137695 - Sigstore transparency entry: 1050598968
- Sigstore integration time:
-
Permalink:
lrivallain/az-scout-plugin-batch-sku@810c0452e3d462d6c9cee12ccc26829c6ffbc6cf -
Branch / Tag:
refs/tags/v2026.3.2 - Owner: https://github.com/lrivallain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@810c0452e3d462d6c9cee12ccc26829c6ffbc6cf -
Trigger Event:
push
-
Statement type:
File details
Details for the file az_scout_plugin_batch_sku-2026.3.2-py3-none-any.whl.
File metadata
- Download URL: az_scout_plugin_batch_sku-2026.3.2-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93d654634858c2888ef0ce5517508b162b5a0885a3fba9a27528d3b23267350c
|
|
| MD5 |
7d0fdd2fc47baef278bc742b18b2ebc5
|
|
| BLAKE2b-256 |
287af4a830b8340fbac3671d477ab44d48518538b21970981c606cd8ba48508b
|
Provenance
The following attestation bundles were made for az_scout_plugin_batch_sku-2026.3.2-py3-none-any.whl:
Publisher:
publish.yml on lrivallain/az-scout-plugin-batch-sku
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
az_scout_plugin_batch_sku-2026.3.2-py3-none-any.whl -
Subject digest:
93d654634858c2888ef0ce5517508b162b5a0885a3fba9a27528d3b23267350c - Sigstore transparency entry: 1050599059
- Sigstore integration time:
-
Permalink:
lrivallain/az-scout-plugin-batch-sku@810c0452e3d462d6c9cee12ccc26829c6ffbc6cf -
Branch / Tag:
refs/tags/v2026.3.2 - Owner: https://github.com/lrivallain
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@810c0452e3d462d6c9cee12ccc26829c6ffbc6cf -
Trigger Event:
push
-
Statement type: