Skip to main content

make-azure

A free-tier Azure virtual machine for mkrun: created in the nearest region that will build it, optionally given a DuckDNS name, and deleted with everything it made, so nothing is left billing.

Sign-in is Microsoft's azure-identity: a browser, MFA up front, tokens in the encrypted system keychain. Everything else is plain Resource Manager HTTPS. There's no az CLI and no azure-mgmt-* SDK.

Documentation: Virtual machine — Optersoft Academy

From any shell

$ uv tool install mkrun
$ mk --install azure                 # make-azure, beside mk
$ mk azure.login --tenant <tenant>   # once; a browser opens
$ mk azure.account                   # which subscription, and is it a free one
$ mk azure.region                    # the nearest regions, and the one azure.vm uses
$ mk azure.vm box                    # Ubuntu 24.04, SSH open
$ mk azure.vm box --duckdns mybox    # ...and mybox.duckdns.org points at it
$ mk azure.vm box --no-public-ip     # private network only; avoids the billed IPv4
$ mk azure.vms
$ mk azure.dns box mybox
$ mk azure.delete box
$ mk --dry-run azure.vm box          # the plan; no sign-in, nothing sent

With no task file in the directory, mk runs the tasks of the packages installed with mk --install. Inside a project that has a Makefile.py, the file decides what is loaded; use mk --global azure.vm box there.

In a task file

# /// script
# dependencies = ["make-azure"]
# ///
from make_azure import azure

What is free

The free account (and Azure for Students) covers 750 hours a month of Standard_B2ats_v2 (the default), Standard_B2pts_v2 or Standard_B1s, and a 64 GiB P6 disk, for its first 12 months. A Standard public IPv4 is billed, about $3.65 a month: --no-public-ip leaves it out. A subscription without free services is refused unless --paid-ok is given.

Settings

variable what
DUCKDNS_TOKEN for --duckdns / azure.dns; a credential, so it's withheld and redacted
SSH_PUBLIC_KEY the key itself (CI); else ~/.ssh/id_ed25519.pub or id_rsa.pub
AZURE_CLIENT_ID + AZURE_TENANT_ID sign in as an app, with AZURE_FEDERATED_TOKEN (CI OIDC), AZURE_FEDERATED_TOKEN_FILE or AZURE_CLIENT_SECRET

They come from the environment or ~/.make/secrets.env. The sign-in is remembered in ~/.make/azure/login.json; that file holds no secret.

Licence

MIT OR Apache-2.0.

Metadata

Release files for make-azure 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for make-azure 0.4.0
File Size Uploaded Provenance Actions
make_azure-0.4.0.tar.gz 25.6 kB Without provenance Details for make_azure-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for make-azure 0.4.0
File Interpreter ABI Platform Actions
make_azure-0.4.0-py3-none-any.whl Python 3 none any Details for make_azure-0.4.0-py3-none-any.whl

Total release size: 48.1 kB

Release files / make_azure-0.4.0.tar.gz

Download URL make_azure-0.4.0.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
97a90c6c0d0d421663827eac9bfa89be2791dfd13f1f9c2864e40e3dfc6ac37e
BLAKE2b-256 checksum
How to use checksums
740d2d99de53dbae897a259ec504daf573002e9db2aea80e8d298f882fb14fe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / make_azure-0.4.0-py3-none-any.whl

Download URL make_azure-0.4.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77d84f2b3b29dab32e12815cb5d8c7371bcdef01eed8fe2bdd7fcd168d1c28c2
BLAKE2b-256 checksum
How to use checksums
c8caf9c139d74347298f4e8a66b16fa17b93593a99acca683766e473a39c7b25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for make-azure 0.4.0

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.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page