Skip to main content

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

  1. The plugin tab loads the HTML fragment into #plugin-tab-batch_sku.
  2. It watches #tenant-select and #region-select for changes.
  3. When both are set, it fetches subscriptions from /api/subscriptions.
  4. The user picks a subscription and clicks Load SKUs.
  5. The plugin calls GET /plugins/batch_sku/batch-skus?subscription_id=…&region=…&tenant_id=….
  6. 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 to main.
  • publish.yml — Builds, creates a GitHub Release, and publishes to PyPI via trusted publishing (OIDC). Triggered on version tags (v*). Requires a pypi environment 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

MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

az_scout_plugin_batch_sku-2026.3.0.tar.gz (121.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

az_scout_plugin_batch_sku-2026.3.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file az_scout_plugin_batch_sku-2026.3.0.tar.gz.

File metadata

File hashes

Hashes for az_scout_plugin_batch_sku-2026.3.0.tar.gz
Algorithm Hash digest
SHA256 e1db8ee86fb9f5a79e09658cb334ae72a47bf9adfc57ed08c389656f3376fae8
MD5 57fa4a0aa193646e6a3b681321781e30
BLAKE2b-256 3698b46d08aff0aa6f58d6d581d10121cb41187e6c6995d3a0c778e047e79fd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for az_scout_plugin_batch_sku-2026.3.0.tar.gz:

Publisher: publish.yml on lrivallain/az-scout-plugin-batch-sku

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file az_scout_plugin_batch_sku-2026.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for az_scout_plugin_batch_sku-2026.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f7f86021dbba7baa2a1ea035302e7f9484d0a3b5a4b2f123e4f257316e5beca
MD5 b42b0c66ade4fc37e891d151f3b5004e
BLAKE2b-256 3956119bc65e1d5cc39760f22ac26c4f8999c6d809df673a90390a701490cf27

See more details on using hashes here.

Provenance

The following attestation bundles were made for az_scout_plugin_batch_sku-2026.3.0-py3-none-any.whl:

Publisher: publish.yml on lrivallain/az-scout-plugin-batch-sku

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page