pump-azure-radar
A thin wrapper around azure-radar that adds a one-command push of your Azure inventory and billing CSVs to Pump's self-serve onboarding endpoint — no standing cross-account access required.
Everything in azure-radar (inventory, billing, diagram, run) works unchanged.
The Pump push is run --upload-token.
Install
pip install pump-azure-radar
You also need the Azure CLI
signed in to the subscription you want to onboard (az login).
Usage
pump-azure-radar runs the normal azure-radar CLI with --upload-token added to run:
pump-azure-radar --help
pump-azure-radar inventory # azure-radar built-in
pump-azure-radar billing --days 90
Pump onboarding
In the Pump app, mint an upload token. Pump shows you a ready-to-paste command.
Run it against the subscription you want to onboard:
az account set --subscription <subscription-id>
pump-azure-radar run --upload-token <TOKEN>
This inventories the subscription read-only, pulls billing from Cost Management,
writes azure_inventory.csv and azure_billing.csv locally, and uploads both
straight to Pump. Pump detects both files, runs its analysis, and surfaces the
findings in the app.
--billingis added automatically when--upload-tokenis given.- Before uploading,
azure_inventory.csvis relisted from the billed subscription (AZURE_SUBSCRIPTION_ID, else theazdefault) with each resource's id, subscription and tags added, so Pump can join it to billing and check tagging. --dayssets the billing window (30, 60 or 90; default 30).--billing-outputchanges the billing CSV path (defaultazure_billing.csv).- Reading cost data needs the Cost Management Reader role on the subscription.
Only files written during this run are uploaded, so a stale CSV from an earlier run is never sent by mistake. If billing fails, the inventory is still uploaded.
What leaves your machine
Only the two CSVs. The token carries no Azure credentials and no company id — Pump binds the company and derives the S3 key server-side, so a token can only ever write its own upload's prefix. Each file goes to S3 through a short-lived presigned PUT URL that Pump mints on demand.
Pointing at a non-prod backend
The token exchange defaults to https://api.pump.co. Override it for local testing:
pump-azure-radar run --upload-token <TOKEN> --api-base http://localhost:8001
# or
PUMP_API_BASE=http://localhost:8001 pump-azure-radar run --upload-token <TOKEN>
How the push works
pump_azure_radar/upload.py:
- For each role (
inventory,billing), POSTs{api_base}/api/v1/estimate/radar/urlswith{"token", "role"}and receives a presigned S3 PUT URL. - PUTs the corresponding CSV with
Content-Type: text/csv(the presigned URL signs the content-type, so it must match).
Relationship to upstream
This package builds on azure-radar (MIT). The scanning and billing code is
upstream's; the Pump push is this package's addition. Unlike gcp-radar, azure-radar
has no plugin hook and already writes separate inventory and billing CSVs, so this
wrapper calls azure-radar's CLI in-process, relists the inventory with the columns
Pump reads (pump_azure_radar/inventory.py), and uploads both files.
Development
pip install -e ".[dev]"
pytest
Metadata
Release files for pump-azure-radar 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pump_azure_radar-0.1.2.tar.gz | 8.9 kB | Without provenance | Details for pump_azure_radar-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pump_azure_radar-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pump_azure_radar-0.1.2-py3-none-any.whl |
Total release size: 17.6 kB
Release files / pump_azure_radar-0.1.2.tar.gz
| Download URL | pump_azure_radar-0.1.2.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98f4abe483d9a6357f3f4267d8159d9f7293954a89a06ae8401353e0c38cdefe
|
|
BLAKE2b-256 checksum How to use checksums |
b143cb4ea7dbc8aa8689309e002da2cc9d3ba0d42794fc85cdde6f3c858e5ffb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / pump_azure_radar-0.1.2-py3-none-any.whl
| Download URL | pump_azure_radar-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbdcfdabeb3b652162c3fe5cdee299b91e3078506361d55979685fa257694304
|
|
BLAKE2b-256 checksum How to use checksums |
531658ac0d06547cd6df9f96736bdfdc9aa0706331fdda460b3509eae10e1d6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for pump-azure-radar 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.