AUTOMATESQL

The Database Platform Automation Roadmap

From Manual Builds to Desired State

A guide to escaping manual runbooks and scattered scripts—so your servers deploy in minutes and you never have to guess whether they match the standard you defined.

AUTHORLuke CampbellFounder & Principal Instructor, AutomateSQL

The Quiet Trap in Database Administration

For years, database administrators have saved the day.

When an application crashes, when queries slow down, or when a disk fills up at 2 AM due to a runaway ETL job, the company calls the DBA.

To survive, you built real superpowers:

  • You mastered SQL Server Management Studio (SSMS).
  • You learned T-SQL and how to use community tools like Brent Ozar's First Responder Kit and Adam Machanic's sp_WhoIsActive.
  • You wrote PowerShell scripts and used dbatools to automate your daily work.

It felt great at first. But over time, a quiet trap snapped shut:

Your scripts became your prison.

I know that trap all too well.

At a large healthcare company I worked for, our DBAs were split across multiple teams: some outside of the US, some in different states, some local. We were split into engineering (where I was) and operations. With everyone working in silos, each team developed their own methods and hundreds of one-off scripts to manage the database platform estate. Both Oracle and SQL Server were used throughout the company.

It was a nightmare.

A nightmare that was comfortable, though. We could all say we were scripting instead of performing manual click-ops. Work was getting done, servers were being built, and the business was mostly happy—until it came down to tracking configuration drift and managing those last-minute changes that always seemed to slip into each build. These were struggles we all encountered and accepted because that's just the way it had always been.

Then, I was tasked to come up with a way to deliver automated Database-as-a-Service (DBaaS) using Ansible Tower.

“Ansible? Isn't that a Linux-only tool?” I thought to myself.

I was wrong.

I used Ansible to define, in code, exactly how our database servers should be built. Then I put a simple request form in front of it, so a team could ask for a new server and get one built to our standard, without waiting on a DBA to run scripts by hand.

That's the approach this guide walks you through.

While software developers moved to modern automated pipelines, database teams got left behind babysitting procedural scripts or clicking through wizards:

  • You have a desktop folder with 100 scattered .ps1 and .sql scripts.
  • Only you run them, because only you know the right order without breaking things.
  • You worry every day that your secondary replica has quietly drifted from your primary.
  • You spend your week watching terminal windows, holding your breath every time you hit Enter.

This guide gives you a simple, practical way forward.

You won't throw away your hard-earned scripting skills. You just need to change how you deliver them. This is the roadmap for moving from managing individual instances to designing an automated platform.

Goal

Move from manual server builds to repeatable platform automation. Define your database platform standards in simple blueprints—giving you the power to deploy identical SQL Server and PostgreSQL instances in minutes, and keep every server matched to your declared state on every run.

A Note on Tooling & Platforms

While the practical examples in this guide use Ansible, the core architectural principles—desired-state blueprints, idempotency, drift detection, and server configuration—apply across modern configuration management frameworks (such as PowerShell DSC, Puppet, or Chef).

I use Ansible as the primary reference throughout this roadmap because it is completely agentless (requiring zero background software or daemons on production database hosts), open-source, and uniquely unifies both Windows (SQL Server) and Linux (PostgreSQL) in one shared language—even orchestrating PowerShell DSC resources under the hood.


Part 1: The Database Platform Automation Maturity Model

Before mapping out your roadmap, you need an honest baseline of how your environment operates today.

The Database Platform Automation Maturity Model is a practical diagnostic framework based on twenty years of engineering enterprise database platforms. It doesn't grade your database expertise or query tuning craft—it measures how your team delivers and enforces standards across your database estate, spanning four distinct stages:

  • Level 1: Manual Administration — Provisioning and configuring instances by hand using interactive installers and checklists.
  • Level 2: Individual Scripts — Personal PowerShell, Bash, and SQL scripts that save time locally, but only run safely on your own machine.
  • Level 3: Centralized Team Scripts — Shared Git repositories where teams collaborate, but spend up to 70% of their effort writing defensive IF / THEN checks.
  • Level 4: Desired-State Blueprints — Declarative code that defines the target state, detects drift on every run, and converges your database estate back to standard without manual intervention.

Take the 3-question assessment, or explore the full matrix below, to pinpoint your environment's current baseline.

The Database Platform Automation Maturity Model: 3-question infrastructure assessment and full 4-stage matrix.

The Database Platform Automation Maturity Model

Step 1 of 3• Pick the option that best matches your environment today
How are new database servers and settings deployed in your environment?

Think about storage layout, memory limits, logins, and initial database installs.

Interpreting Your Score

Most enterprise database environments operate at Level 2 (Individual Scripts) or Level 3 (Centralized Team Scripts).

Keep Reading: The Full Guide

Enter your email to continue the full guide and get the PDF.

You'll also start getting automation guides in your inbox when they drop. Unsubscribe anytime.

What's inside:
Your level breakdown
The 3 shifts
Traditional script vs. Ansible playbook
Multi-engine playbook example (SQL Server & Postgres)
3-step plan you can start this week
PDF download