Project

azure-stable-diffusion

stable

One-command Stable Diffusion on Azure GPU spot instances.

Overview

Makefile wrapping an Azure ARM template. make deploy provisions an NC-series GPU spot VM and installs AUTOMATIC1111. make open opens an SSH tunnel. make destroy tears it down. Spot pricing keeps costs under $0.10/hour.

How it works

make deploy runs an ARM template that provisions a diagnostics storage account, network resources, and a GPU spot VM, then uses cloud-init to install CUDA and AUTOMATIC1111. A helper service watches Azure spot-instance events so the machine can react cleanly to preemption or scheduled maintenance. make destroy removes the deployed resources.

Features
⚡
Three commands

make deploy, make open, make destroy. Under 10 minutes total.

💰
Spot pricing

NC6s_v3: typically under $0.10/hour.

🧰
Cloud-init setup

CUDA, the web UI, and helper scripts are installed automatically on first boot.

Architecture
ARM template compute.json Diagnostics storage boot diagnostics account GPU spot VM Ubuntu + OS disk only Network resources VNet + NIC + PIP + NSG cloud-init CUDA + AUTOMATIC1111 Spot helper preemption + maintenance Web UI SSH tunnel → 7860 actual compute.json layout: diagnostics account, one spot VM, one network stack, and VM bootstrap scripts feeding the web UI
Posts
A Diffuse Return
Very Stable Diffusion