Skip to content

When Azure PostgreSQL needs a backup vault

Ivan VydrinUpdated 8 min readAnnouncements

If your application runs on Azure Database for PostgreSQL Flexible Server, its next security review will ask what survives when someone deletes the server. The built-in backups last five days after that, best effort, and then they're gone (Microsoft Learn). They also stop at 35 days, which fails any contract that asks for last year's records.

We'd rather a client heard that from us than from the reviewer. We build applications on Azure for clients, DealerIQ's TotalLoop among them (case study). When we build an Azure landing zone, its subscriptions, identity and policy are defined as code. We're also preparing TechFabric itself for a SOC 2 Type II examination that covers Availability (our SOC 2 post). That work taught us that a control only counts once its evidence lands on its own.

Azure Backup announced its v2 preview on 5 October 2026, with daily vaulted backups for servers up to 32 TB. We read it as two questions: which servers need a vault at all, and how we'd prove one works.

Which servers we'd give a vault

The built-in backups stay on every server, whatever else happens. They restore to within about five minutes of any moment in the last 7 to 35 days, onto a new server, at no extra storage cost up to the server's size. For a bad deploy or a dropped table, nothing in a vault beats that.

A vault earns its cost when a server has to answer one of these:

Requirement Built-in backups Vaulted backup
Restore data older than 35 days No Up to 10 years
Backups survive deletion of the server Five days, best effort, same subscription Yes, for the full retention period
Backups held outside the server's subscription No Vault can sit in another subscription of the same tenant
Nobody, admins included, can delete recovery points early No Yes, with vault immutability locked

The first row is usually a retention clause in a contract or a regulation. The other three are the ransomware and insider-risk questions we'd expect from an insurer, a tabletop exercise or an auditor. Microsoft's own guard against deletion is a management lock, which stops the careless script and does nothing against someone with the rights to remove the lock first.

If a server answers none of the four, a vault adds cost without adding recovery, and we'd leave it off.

Proving the vault to an auditor

This part comes from our own SOC 2 readiness. Having a control, documenting it, running it consistently and being able to produce evidence of it are four different things. The question that decides whether a control is real is where its record lands without anyone deciding to save it.

For a vault that means three records, each landing on its own. The backup jobs and their results stay in Azure Backup's job history. The restore drill writes its timing somewhere a person can find a year later. Every change to the policy or the Resource Guard would go through the same reviewed pull request as the landing zone. The Resource Guard gets a named owner, a person and not a team, because a Type II window covers the quarter that person was on leave.

v1 or the v2 preview

We'd pick by size. A server can be on only one version (v2 support matrix), and v1, the generally available one, takes a weekly pg_dump of servers up to 1 TB. Anything bigger, or on Premium SSD v2, needs v2: daily or weekly disk snapshots, incremental after the first, on PostgreSQL 15 or later and never on a Burstable tier.

A server under 1 TB that only needs a monthly or yearly point for an auditor stays on v1. We wouldn't move it during the preview, because the move is one-way and going back means deleting the backup instance and its history.

The catch with v2 is the archive. A v2 point restores only onto the PostgreSQL major version it was taken on, so for a seven-year retention clause on a PostgreSQL 15 server we'd keep a yearly logical export beside it.

What it costs

A vault bills a fee per 250 GB of server size and a fee for the storage it holds (Azure Backup pricing). As a worked example on East US list prices, $7.50 per unit and $0.0224 per GB-month on LRS (Azure retail prices), a 2,000 GB server costs $60 a month to protect. A vault holding 4,000 GB adds about $90 a month, or $179 on GRS.

The size fee is fixed. The server's own change rate decides the storage, so we'd keep daily points for a few months and carry long retention on monthly and yearly ones, as Microsoft's v2 overview advises. Thirty daily, 12 monthly and 7 yearly points cover seven years with 49 recovery points, where keeping every daily point would mean roughly 2,555.

How we'd set it up

The vault has to sit in the server's region, but it can live in another subscription of the same tenant. We'd put it in one the application team can't administer, declared in the same landing-zone code as everything else. Keeping it away from the people and credentials that run the server is half the reason to have a vault.

Application subscription: Postgres flexible server

Scheduled v2 snapshot

Backup subscription: vault with soft delete

Resource Guard owned outside the backup team

Immutability locked after sign-off

Restore onto a server defined in Bicep or Terraform

Where we'd put the pieces: the Postgres flexible server's snapshots go to a vault in a backup subscription the application team can't administer, guarded by someone else, with immutability locked after sign-off and the restore target kept in Bicep or Terraform.

The vault's managed identity needs roles on the server, and where backup and database rights sit with different people, the portal hands over a role assignment template for a database administrator to run. A Resource Guard, owned by someone other than the backup admin, goes in front of deleting a backup instance or disabling immutability, and that answers the management-lock problem. We'd turn it on with soft delete before the first backup.

Immutability goes last. Once it's locked, nobody can delete a recovery point before its retention ends, vault administrators included. That's what an auditor wants, and it also makes a retention mistake permanent. We'd let the policy run for a few weeks, have someone accountable sign off the numbers, then lock.

Restore limits to plan for

Azure Backup won't provision the restore target. It has to exist already, empty, on the same PostgreSQL major version, disk type and disk size as the source, not Burstable and with high availability off. So the disaster recovery runbook needs a server definition ready to deploy, and we'd keep it in the same Bicep or Terraform as the landing zone, with high availability switched back on after the restore.

Restore time grows with the size of the recovery point, and Microsoft says to plan in hours to days on multi-terabyte servers. If the business expects a large database back within the hour, a vault can't meet that, and the first line of the plan is a replica or the built-in point-in-time restore. After a planned geo-failover the backup configuration stays with the old primary, so "reconfigure backup on the new primary" belongs in the failover runbook.

Where we'd start

On a server above 1 TB with a retention or isolation requirement, we'd configure v2 on a staging copy and run a restore drill. Protect it with a short policy, take an on-demand backup, create the matching empty target from code, restore into it, and time the whole thing. That number, set against the recovery time the business has written down, says whether v2 can carry the plan when it reaches general availability.

On production during the preview, the built-in backups stay the operational recovery path and the vault is the long-term, isolated copy.

Frequently asked questions

Which Azure PostgreSQL servers don't need a backup vault?

Servers whose only requirement is a recent restore point. The built-in backups restore to within about five minutes across 7 to 35 days, so a server with no long retention clause, no deletion or insider-risk requirement and no immutability need gets nothing from a vault except a bill.

Would you move a server from v1 to the v2 preview?

Not during the preview, unless it's over 1 TB or on Premium SSD v2 and so has no other vaulted option. The move is one-way, and going back means deleting the backup instance along with the history it holds.

What should a restore drill for a vaulted Postgres backup measure?

The whole time from the decision to restore until the application reads from the new server, including creating the empty target from code and turning high availability back on. Set against the recovery time the business has written down, that number decides whether the vault can be the recovery plan or only the archive.

Where we do this work