az-scout plugin: Regions Cheapest – choropleth, bar chart & table of VM pricing by region
Project description
az-scout-example
A minimal az-scout plugin scaffold. Copy this directory and customise.
Features
- UI tab with subscription selector that reacts to the main app's tenant & region
- API route that receives tenant, region, and subscription context
- MCP tool exposed on the MCP server
- Static assets — CSS auto-loaded, HTML fragment fetched at runtime
- URL hash routing —
#exampleselects the plugin tab
Setup
# Clone in /tmp to export scaffold without git history
git clone https://github.com/lrivallain/az-scout.git /tmp/az-scout
cp -r /tmp/az-scout/docs/plugin-scaffold ./az-scout-myplugin
cd ./az-scout-myplugin
# Update pyproject.toml: name, entry point, package name
# Rename src/az_scout_example/ to match your package
uv pip install -e .
az-scout # plugin is auto-discovered
Structure
az-scout-example/
├── .github/
│ ├── copilot-instructions.md # Copilot context for this plugin
│ └── workflows/
│ └── ci.yml # CI pipeline (lint + test, Python 3.11–3.13)
├── pyproject.toml
├── README.md
└── src/
└── az_scout_example/
├── __init__.py # Plugin class + module-level `plugin` instance
├── routes.py # FastAPI APIRouter (optional)
├── tools.py # MCP tool functions (optional)
└── static/
├── css/
│ └── example.css # Plugin styles (auto-loaded via css_entry)
├── html/
│ └── example-tab.html # HTML fragment (fetched by JS at runtime)
└── js/
└── example-tab.js # Tab UI logic (auto-loaded via js_entry)
How it works
- The plugin JS loads the HTML fragment into
#plugin-tab-example. - It watches
#tenant-selectand#region-selectfor changes. - When both are set, it fetches subscriptions from
/api/subscriptions. - The user picks a subscription and clicks the button.
- The plugin calls
GET /plugins/example/hello?subscription_name=…&tenant=…®ion=….
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 v2026.2.0
git push origin v2026.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_regions_cheapest-0.1.0.tar.gz.
File metadata
- Download URL: az_scout_plugin_regions_cheapest-0.1.0.tar.gz
- Upload date:
- Size: 339.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a72d009bc37c0ed54e6ad812dc4e2ec93082a1867b3bc83d2355adc90475889
|
|
| MD5 |
54b190535cf1ad0ee9b8be78f28a8242
|
|
| BLAKE2b-256 |
79fcd5eff91975a7da687431664be4061a5231c7995ebeff71f1ae8540dfad14
|
Provenance
The following attestation bundles were made for az_scout_plugin_regions_cheapest-0.1.0.tar.gz:
Publisher:
publish.yml on rsabile/az-scout-plugin-regions-cheapest
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
az_scout_plugin_regions_cheapest-0.1.0.tar.gz -
Subject digest:
5a72d009bc37c0ed54e6ad812dc4e2ec93082a1867b3bc83d2355adc90475889 - Sigstore transparency entry: 1005538902
- Sigstore integration time:
-
Permalink:
rsabile/az-scout-plugin-regions-cheapest@b09697feae6021ef51de0ccac0b8d2775aff37fd -
Branch / Tag:
refs/tags/v2026.2.1 - Owner: https://github.com/rsabile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b09697feae6021ef51de0ccac0b8d2775aff37fd -
Trigger Event:
push
-
Statement type:
File details
Details for the file az_scout_plugin_regions_cheapest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: az_scout_plugin_regions_cheapest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 122.5 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 |
fdf87d282d4a1e9620e45013342495fbf2be9f789028dcc3e8676b84595da695
|
|
| MD5 |
d98c9ed7cdc7d66e771bd88438340f33
|
|
| BLAKE2b-256 |
ad2e8232c8751a2fb1c42334ce3507e6fbf19f0806f7fc8b6453392cca2d53c3
|
Provenance
The following attestation bundles were made for az_scout_plugin_regions_cheapest-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on rsabile/az-scout-plugin-regions-cheapest
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
az_scout_plugin_regions_cheapest-0.1.0-py3-none-any.whl -
Subject digest:
fdf87d282d4a1e9620e45013342495fbf2be9f789028dcc3e8676b84595da695 - Sigstore transparency entry: 1005538904
- Sigstore integration time:
-
Permalink:
rsabile/az-scout-plugin-regions-cheapest@b09697feae6021ef51de0ccac0b8d2775aff37fd -
Branch / Tag:
refs/tags/v2026.2.1 - Owner: https://github.com/rsabile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b09697feae6021ef51de0ccac0b8d2775aff37fd -
Trigger Event:
push
-
Statement type: