What is backup and restore in Azure HorizonDB?
Imagine a developer runs a clean-up script on Friday evening. It was meant for the test database, but the connection string pointed at production, and 40,000 customer rows are gone. Nothing failed, so high availability doesn’t help – the standby faithfully has the same deleted rows. What you need now is a way to go back to 6:55 PM, just before the script ran, and get those rows back without losing the whole evening’s orders.
That’s what backups and point-in-time restore (PITR) are for. Azure HorizonDB backs up every cluster automatically, keeps the backups for 1 to 35 days, and lets you restore to any moment in that window as a new cluster. If you also turn on geo-redundant backup when you create the cluster, you can bring the database back up in the paired region if the whole primary region is unavailable.
This is the fourth article in my Azure HorizonDB series. In Article 1 I explained the architecture, in Article 2 we created the demo cluster, and in Article 3 we looked at high availability and failover. In this article we look at how backups work, set the retention, discuss geo-redundant backup, run a real point-in-time restore of the demo cluster in the portal and finish with an RPO/RTO planning table. No code – just concepts and the portal.
Status and docs
- HorizonDB is generally available since 17 November 2026. The backup, business continuity, point-in-time restore and geo-restore pages on Microsoft Learn were all refreshed for GA (18–19 November 2026), and Microsoft announced geo-redundant backup and restore as generally available at the same time.
- The portal is slightly different from the docs in a few places, which I point out as we go. This article describes what the portal showed me on 4 December 2026.
Step 1 – Understand how HorizonDB backups work
HorizonDB doesn’t run nightly pg_dump jobs or copy data files to a backup server. Because compute and storage are separate, backups are a job for the storage layer:
- Storage snapshots – the first one is taken straight after the cluster is created, then periodically. They’re incremental and complete almost instantly, whatever the database size.
- Continuous WAL archiving – every write-ahead log record is archived to Azure Blob storage as transactions commit.
- No impact on the database – both run in the storage layer, independently of the compute nodes, so there’s no backup window and no performance hit.
- Always zone-redundant and encrypted – backups are kept in zone-redundant storage in the region and encrypted at rest with AES-256.
A restore uses both: it takes the most recent snapshot before your chosen time and replays WAL up to that exact moment. For example, if the last snapshot was at 6:00 PM and you restore to 6:55 PM, the service restores the 6:00 PM snapshot and replays 55 minutes of WAL.
1.1 Compared with Flexible Server
| Aspect | Azure Database for PostgreSQL Flexible Server | Azure HorizonDB |
|---|---|---|
| Backup method | Daily snapshot of data files plus WAL archiving | Storage-layer snapshots plus continuous WAL archiving |
| Retention | 7–35 days | 1–35 days (default 7) |
| Impact on the server | Snapshots taken from the server’s disks | None – handled by the storage layer, not the compute nodes |
| Restore target | New server | New cluster |
| Restore time | Depends on data size and WAL to replay | Not mainly driven by size – Microsoft says a same-region restore typically completes in minutes, even for multi-terabyte databases |
| Geo-redundant backup | Choose at creation | Choose at creation; geo-restore uses the latest backup in the paired region |
1.2 Backups vs high availability
It’s worth being clear about this, because people often mix them up:
| Problem | High availability (Article 3) | Backup and restore (this article) |
|---|---|---|
| Node or zone failure | Yes – automatic failover in about a minute | Not needed |
| Someone deletes or corrupts data | No – the standby has the same bad data | Yes – restore to a point before the mistake |
| Whole region unavailable | No – all nodes are in one region | Only with geo-redundant backup (geo-restore) |
| Cluster deleted | No | No – a deleted cluster can’t be restored, so use resource locks |
Step 2 – Check and set backup retention
Open your cluster and, under Settings, select Backup and restore. The page is simple: a toolbar with Save, Discard, Restore and Refresh, the line “Clusters are backed up automatically”, and a Backup retention period (in days) slider from 1 to 35. Our demo cluster uses the default of 7 days.

Figure 1: The Backup and restore page – retention is 7 days, and backup redundancy is fixed at creation
An information banner at the top says: “For HorizonDB Cluster, backup storage redundancy can only be configured at database creation time. Existing databases can migrate to different backup redundancy using point in time restore.” We’ll come back to that second sentence in Step 3.
You can change retention at any time: move the slider (or type a number) and select Save. Things to know:
- Retention decides how far back you can restore. With 7 days, you can’t go back to something that happened 8 days ago.
- Longer retention keeps more snapshots and WAL, so it can increase backup storage cost (see Pricing and limitations).
- If you shorten retention, the oldest restore points drop out of the window.
- Microsoft Learn doesn’t describe any long-term retention (beyond 35 days) for HorizonDB. For monthly or yearly archives, keep your own logical exports.
My recommendation: keep 7 days for dev/test, and use at least 14 days – often the full 35 – for production. Mistakes are often found days later, for example when a monthly report looks wrong, and 35 days of backups usually costs much less than the compute.
Step 3 – Decide on geo-redundant backup
By default, backups stay in the cluster’s region (in zone-redundant storage). Geo-redundant backup also copies the backup data and WAL records asynchronously to the paired region. If the whole primary region goes down, you can geo-restore the cluster in the paired region.
3.1 What the docs say
- Only at creation time. You enable geo-redundant backup on the Basics tab of the create wizard (the Geo-redundancy check box we saw in Article 2). You can’t switch it on for an existing cluster.
- RPO up to one hour. Because replication is asynchronous, the paired region can be up to an hour behind.
- Latest backup only. A geo-restore uses the latest backup data in the paired region. Point-in-time restore to the paired region isn’t supported.
- Wait an hour after creating a geo-redundant cluster before you rely on geo-restore, so the first backups can replicate.
- Not with customer-managed keys. A cluster can use geo-redundant backup or a customer-managed key (CMK), not both.
- Selected regions only. The business-continuity page says geo-redundant backup is enabled in selected regions, so check your region in the create wizard.
3.2 What the portal shows
Our demo cluster was created without geo-redundancy. The Backup and restore page has no setting to change it, which matches the docs. The banner in Figure 1, however, says existing databases can migrate to a different backup redundancy using point-in-time restore – in other words, restore into a new cluster that has geo-redundancy turned on. When I opened the Restore wizard, though, the Geo-redundancy check box in its Backups section was greyed out (Figure 6). So on 4 December 2026 I couldn’t move the demo cluster to geo-redundant backup through a restore. If you need geo-redundant backup on an existing cluster, check the restore wizard in your region or plan to create a new cluster with it enabled and migrate.
My recommendation: turn on geo-redundant backup when you create any production cluster that needs a regional disaster recovery plan – it’s the only chance you get. Leave it off for dev/test. If you need customer-managed keys, you’ll have to choose between CMK and geo-backup for now.
Step 4 – Run a point-in-time restore in the portal
A restore never overwrites the existing cluster. It always creates a new cluster next to it, which you then connect to, check, and either switch your application to or copy the missing rows from. That also means a restore is billable from the moment it’s created – remember to delete the restored cluster when you’re done.
4.1 Start the restore
You can start a restore from the Restore button on the cluster’s Overview toolbar or on the Backup and restore page. Both open the same wizard.

Figure 2: The Restore button on the Overview toolbar (identifiers redacted)
The wizard is called Create an Azure HorizonDB – Restore and has the same tabs as the create wizard from Article 2: Basics, Networking, Security, Tags and Review + create. The subscription and resource group default to the source cluster’s; you can choose another resource group.

Figure 3: The Restore wizard opens on the Basics tab
4.2 Source details and the restore point
The Source details section shows the source cluster region and source cluster (both locked to the cluster you started from), a Geo-redundant restore – Restore to target region check box, and the Point-in-time-restore (PITR) date and time picker.
- The restore point is in UTC – convert from your local time carefully. I’m in India (UTC+5:30), so 8:16 PM IST is 14:46 UTC.
- The restore point must be at least five minutes before the current time, and inside the retention window.
- The docs describe a “Select a custom restore point” option; in my portal there was simply a date and a time field, pre-filled with a recent time.
- Restore to target region was greyed out, because the demo cluster doesn’t have geo-redundant backup. On a geo-redundant cluster this is where you’d choose a geo-restore and the target region.

Figure 4: Source details: the restore point is a date and time in UTC
In a real incident, this is the important decision. Pick a time just before the mistake. If you’re not sure exactly when it happened, restore to a slightly earlier time – you can always copy newer rows across from the live cluster afterwards.
4.3 Cluster details, compute and HA
Give the new cluster a name – I used hdb-series-demo-restore. The Compute pool card copies the source settings (1 read/write node, 2 vCores, 16 GiB RAM) and you can select Configure to change the vCores or add readers. Storage auto-scales, up to 128 TiB.

Figure 5: Cluster details: name the new cluster and check the compute pool
Below that you set High availability (Disabled or Zone redundant, with the Any zone option) and a Backups section with retention and geo-redundancy for the new cluster. For a short-lived restore that you only need to copy data from, the smallest compute with HA disabled keeps the cost down. If you plan to make the restored cluster your new production cluster, configure it like production now.

Figure 6: HA and backup settings for the new cluster – Geo-redundancy was greyed out
4.4 Check the cost
The bottom of the Basics tab shows Estimated monthly costs. For our restore it showed INR 22,192 per month for one 2-vCore node – exactly the same as the source cluster, because a restored cluster is a full cluster in its own right.

Figure 7: The restored cluster costs the same as any other cluster
4.5 Networking and security
The Networking, Security and Tags tabs are the same as in the create wizard. Two things to check:
- Firewall rules and private endpoints – make sure the people or apps who need to read the restored data can reach it. In my review, private endpoints were 0, like the source.
- Authentication – the restored cluster contains the same database roles as the source at the restore point. Check that the Entra admin is set as you expect.
4.6 Review + create
Review + create lists everything, including Source cluster, Geo-redundant restore: Disabled and the exact Point-in-time-restore (PITR) timestamp, for example 2026-12-04T14:46:08.540Z. Select Create.

Figure 8: Review + create shows the source cluster and the exact restore point
Step 5 – Watch the deployment and check the restored cluster
After you select Create, the portal opens a normal deployment page. The deployment creates two resources: first the cluster itself (Azure HorizonDB), then its compute pool (Microsoft.HorizonDB/clusters/pools). In my test the cluster resource showed OK after about 8 minutes, and the whole deployment finished after about 17 minutes (8:24 PM to 8:41 PM IST).

Figure 9: The restore deployment is complete – the cluster and its compute pool were created
That’s longer than “in minutes” might suggest, but remember what the time includes. The data part of the restore – snapshot plus WAL replay – is fast because it doesn’t copy the database. Most of the 17 minutes is provisioning new compute, about the same as creating a new cluster (around 15 minutes in Article 2). For RTO planning, I’d count on 15–20 minutes for the restore itself for a small cluster, plus the time you need to decide on the restore point and reconnect or copy data.
Select Go to resource. The restored cluster hdb-series-demo-restore is an ordinary cluster: status Ready, 2 vCores and 16 GiB RAM, PostgreSQL 17 – and its own read-write and read-only endpoints, which are different from the source cluster’s. It also has its own Restore button, backups and retention from now on.

Figure 10: The restored cluster is Ready, with its own endpoints (identifiers redacted)
5.1 What to do with the restored cluster
| Situation | What to do |
|---|---|
| A few rows or tables were deleted or damaged | Connect to the restored cluster, export just the affected data and load it back into the live cluster. Then delete the restored cluster |
| The whole database is damaged | Point the application at the restored cluster (update the host name in app settings or Key Vault), recreate firewall rules or private endpoints, then retire the old cluster |
| You only want to investigate | Query the restored cluster read-only, compare with production, then delete it |
Because the endpoints change, it helps a lot if your applications read the database host from configuration (App Service settings, Azure App Configuration or Key Vault) instead of hard-coding it.
5.2 Clean up
When you’re done, open the restored cluster and select Delete on the Overview toolbar. The delete pane warns that it “will permanently delete this cluster and all replicas” and you have to tick the acknowledgement before the Delete button works. I deleted hdb-series-demo-restore straight after taking the screenshots; it ran for about 20 minutes, which cost roughly INR 10.
Step 6 – Plan for RPO and RTO
Two numbers drive every recovery plan:
- RPO (recovery point objective) – how much data you can afford to lose, measured in time.
- RTO (recovery time objective) – how long you can afford to be down.
Here’s how HorizonDB’s features map to common scenarios. The RPO and RTO figures come from Microsoft Learn where Microsoft publishes them; the rest are from my own tests and are a guide, not an SLA.
| Scenario | What protects you | RPO | RTO | What you do |
|---|---|---|---|---|
| Node failure | High availability (2+ nodes) | 0 – committed data is on shared storage | About a minute with HA; longer without (restart or new compute) | Nothing – automatic |
| Availability zone outage | Zone-redundant HA + always zone-redundant storage and backups | 0 | About a minute with zone-redundant HA | Nothing – automatic |
| Accidental delete or bad update | Point-in-time restore | Down to the moment before the mistake (at least 5 minutes ago) | About 15–20 minutes for the restore in my test, plus the time to choose the restore point and copy data back | Restore to a new cluster, copy rows back or switch the app |
| Logical corruption found days later | Point-in-time restore within retention | Depends on when you find it | Same as above | Restore to a time before the corruption – only if it’s within retention (1–35 days) |
| Whole region unavailable | Geo-redundant backup + geo-restore | Up to 1 hour | A few minutes to a few hours (Microsoft’s figure) | Geo-restore to the paired region, update app connection strings and DNS |
| Cluster deleted | Resource lock (prevention only) | – | – | Can’t be restored – prevent it with a CanNotDelete lock |
6.1 Disaster recovery checklist
| Do this | Why |
|---|---|
| Set retention to match how late mistakes are found | You can’t restore beyond the retention window |
| Enable geo-redundant backup on production at creation | It can’t be turned on later |
| Decide between CMK and geo-backup up front | They can’t be combined today |
| Write down the restore steps and who can run them | In an incident, nobody wants to discover the wizard for the first time |
| Plan the network for a restored cluster | A new cluster gets new endpoints and its own firewall and private endpoint settings |
| Use a logical name (DNS CNAME or app config) for the database host | Switching to a restored or geo-restored cluster becomes a config change, not a code change |
| Test a restore every quarter and time it | You only know your real RTO when you’ve measured it |
| Delete test restores afterwards | Every restored cluster is billed like any other cluster |
Governance and operations
- Who can restore: a restore creates a new cluster, so it needs permission to create HorizonDB clusters in the target resource group (for example Contributor). Restrict that on production subscriptions.
- Who can change retention: anyone who can write to the cluster can shorten retention. Use Azure Policy or limit Contributor so retention isn’t reduced by accident.
- Protect against deletion: backups don’t help once a cluster is deleted. Put a CanNotDelete resource lock on every production cluster.
- Monitor backup storage: the Backup Used metric (Monitoring → Metrics) shows snapshot plus WAL storage. Compare it with Storage Used to see when you’re beyond the free allowance. Article 7 covers alerts.
- Audit: retention changes and restore deployments appear in the Activity log.
- Service outages: for regional incidents, watch Azure Service Health and set up Service Health alerts – they tell you when to consider a geo-restore.
Pricing and limitations
| Item | Detail (checked 4 December 2026) |
|---|---|
| Backup storage | Free up to 100% of the cluster’s storage size, then about USD 0.12 per GiB-month. Billable backup = incremental snapshots + retained WAL; the data itself isn’t billed twice |
| What increases it | Longer retention and write-heavy workloads (more changed pages and more WAL) |
| Restored cluster | Billed like any new cluster – the portal showed INR 22,192/month for one 2-vCore node (about INR 30 per hour) plus storage |
| Retention | 1–35 days, default 7; no built-in long-term retention |
| PITR | Same region only, new cluster, restore point at least 5 minutes in the past |
| Geo-redundant backup | Only at creation; RPO up to 1 hour; latest backup only (no PITR in the paired region); selected regions; not with CMK |
| Geo-restore in an outage | You can geo-restore an existing geo-redundant cluster, but you can’t create a new geo-redundant cluster in the paired region while the primary region is down |
| Deleted clusters | Can’t be restored |
Summary
In this article, we learnt how Azure HorizonDB backs up clusters with storage snapshots and continuous WAL archiving, how to set retention, when to use geo-redundant backup, how to run a point-in-time restore into a new cluster in the portal, and how to plan RPO and RTO for common failure scenarios.
| Topic | What to Remember |
|---|---|
| Backups | Automatic storage snapshots + continuous WAL archiving; no impact on performance; zone-redundant and AES-256 encrypted |
| Retention | 1–35 days (default 7), changed any time on Settings → Backup and restore |
| Point-in-time restore | Always creates a new cluster in the same region; restore point in UTC, at least 5 minutes ago |
| Restore time | About 17 minutes end-to-end in my test, mostly provisioning compute; data restore uses snapshots + WAL replay, not a full copy |
| Geo-redundant backup | Only at creation; RPO up to 1 hour; geo-restore uses the latest backup in the paired region |
| CMK | Can’t be combined with geo-redundant backup |
| HA vs backup | HA handles node and zone failures; backups handle mistakes, corruption and regional disasters |
| Cost | Backup storage free up to the cluster size; every restored cluster is billed – delete test restores |
| Deleted clusters | Can’t be restored – use CanNotDelete locks |
Do you like this article? If you want to get more updates about these kind of articles, you can join my Learning Groups
Discover more from Praveen Kumar Sreeram's Blog
Subscribe to get the latest posts sent to your email.
One comment