Skip to content

ADR: Unused resources are deleted

ADR: Unused resources are deleted

Status
accepted
Date
2026-10-19

Anything in Azure that nothing reads, runs or routes to is deleted once a read proves it, not stopped, paused or kept in case. The rule is Steve's, set the day the three .NET web apps became one: "always delete unused resources". The same day it removed the three old web apps, The Shed's image repository, the rendering service's image tags past the newest ten, and the free database paused since 14 September.

Reading list

For Steve, when he is fresh, in this order:

  1. ADR: One web app for every .NET process, the addendum: the deletes this rule was written after, with their times.
  2. Hosting, Websites and resources used: what is left, and what each is for.
  3. Microsoft Learn, Azure Advisor cost recommendations: Azure's own list of the idle resources it looks for.

In plain words

A resource nobody uses still costs something: money on some, attention on all of them. It sits in every list, every inventory and every security review, and someone has to remember why it is there. Stopping it keeps all of that and saves only the running cost. So when a read shows nothing uses a resource, it goes.

What that is worth: the resource group says what the system is. A reader, a reviewer or the next engineer can list it and trust that every line is in use.

Context

On 19 October the SQL site, the Cosmos DB site and The Shed moved into one web app. That left three web apps, a registry repository and a paused database that nothing used. The first two web apps were deleted within the hour; the third waited only for The Shed's DNS record to move. The registry still held 43 tags of an image no web app runs and 81 of the rendering service's, of which a roll can only ever go back to the last few. The free database had been paused since the sites moved to the Basic one on 14 September and was kept "in case", at $0.

Decision

  1. Read before deleting. A resource is unused when every one of these reads says so: no web app's image, setting or binding names it; no workflow or template names it; no DNS record points at it; nothing has read or written it in the window its own metrics keep. The read is a script that writes what it found, kept beside the lane that ran it.
  2. Guard the delete. The delete script names the one resource by its full name, refuses anything the live sites read, and checks the state the read found (stopped, paused, no running image) before it acts.
  3. Prove after. Every public page is read again after the delete, the same checks as a roll, and the result is kept with the delete.
  4. Record it. The record that made the resource unused gets the delete's time in its addendum, and the Hosting page's resource list loses the row.
  5. What is not unused. Data a resource holds that something might need again is exported before the resource goes, or the delete waits for the owner's word. A permission no workflow uses is unused too, but a role assignment is a change to an identity, so it waits for the owner and is listed until it goes.

What was considered

  • Stop or pause, and keep. The usual habit. It keeps every cost but the running one, and the list stops saying what the system is.
  • Delete on a schedule. A sweep that deletes whatever looks idle. Fast, and wrong the first time a resource is idle on purpose: the deploy identity, the managed certificate and the registry are all quiet for days.
  • Delete when a read proves it, by hand, at the change that made it unused. Chosen. The change that orphans a resource is the moment its reason to exist is known.

Consequences

  • The resource group lists only what runs: the plan, the one web app, the rendering service, the Basic database, the Cosmos DB account, the registry, the identity, Application Insights and its workspace, Communication Services and its domain, and The Shed's certificate.
  • The registry keeps the tags a roll can go back to: the main image's newest ten, trimmed by Deploy, and the rendering service's newest ten.
  • Open: the deploy identity still holds Azure Container Instances Contributor on the group, used by nothing since the container groups retired on 19 October. It goes on the owner's word.

Addendum, 2026-10-19: what this rule removed the day it was written

when (UTC) what
15:52 and 15:53 APP-THEYARD-SS and APP-THEYARD-COSMOS-SS, after 33 checks on the one web app
19:36 APP-THESHED-SS, once both public resolvers named the one web app for The Shed
19:42 to 19:47 The registry's theshed repository, 43 tags; The Shed ships in the main image. The rendering service's 71 tags past its newest ten; the tag it runs kept
19:51 sqldb-theyard-ss, the free database paused since 14 September, on Steve's word; the Basic database the sites read untouched

Where it sits

No code. The scripts that read and delete run from the operator's PC, because the deploy identity holds no right to delete and should not. The record and the Hosting page's resource list are what a reader checks.

Files

Enforced by

Not machine-checked. Held by review.

Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn