You restore an Azure SQL Database backup in one of two ways, and the right path depends on where you need the data. To bring a database back on the same logical server, use point-in-time restore (PITR) into a new database on that server. To move a copy to another server, subscription, or tenant, export a BACPAC and import it there. The portal, T-SQL, PowerShell, and CLI all support these flows, and every restore creates a new database rather than overwriting the original. That last detail trips people up: there is no in-place "restore over" command in Azure SQL Database, so plan for a rename or connection-string change after recovery succeeds.
This guide assumes you have access to the Azure portal and either the SQL Database Contributor role on the server or the server admin login. Timeframes reflect the built-in automated backup retention that applies to Azure SQL Database as documented through 2026: seven days by default, configurable up to 35 days for the vCore and DTU purchasing models.
What "Azure SQL backup" actually means before you restore anything
Azure SQL Database runs backups for you, and the service keeps three kinds. Full backups happen roughly weekly, differential backups roughly every 12 to 24 hours, and transaction log backups every 5 to 10 minutes. Those numbers drive the recovery point objective: a point-in-time restore can land within about ten minutes of the chosen time, which is why the window matters when you are racing to recover from a bad deployment or a mistaken delete.
System databases like master are not covered by the same automated backup and restore model you use for user databases, so keep a scripted copy of logins, firewall rules, and agent jobs elsewhere. Restores also cannot cross into a different logical server through PITR, and PITR does not exist for Azure SQL Managed Instance the same way—Managed Instance uses its own backup and restore semantics with T-SQL BACKUP/RESTORE support. If you are on Managed Instance, the steps below differ; confirm your service tier first.
Two restore categories matter here. Same-server recovery means PITR, which produces a new database on the same server from automated backups. Portable copy means export to a .bacpac file and import elsewhere, which does not preserve transaction log continuity but is the only practical route across servers or tenants. There is also a third, often-ignored route: geo-restore, which rebuilds a database from the geo-replicated backup in a paired region when the primary region is unavailable. That one is for disaster recovery, not routine mistakes.
Prerequisites: permissions, retention, and a target name
Check these before you start, because each one can block an otherwise simple restore.
1: Permission to create databases on the target server. PITR requires the ability to create a database on the same server. The server admin, or a principal with SQL DB Contributor or higher at the server scope, can do this. If you are a contained database user, you cannot restore. 2: Retention window that covers your recovery point. Default retention is 7 days. If the damage happened 12 days ago and retention is at the default, PITR will not reach it. Raise retention to the maximum of 35 days before you need it, not after. 3: A target database name that does not exist. Every restore creates a new database. Pick a name like SalesDB_restore_20261113, and do not reuse the live database name. 4: Matching service tier and compute for the restore target. You can restore into a different tier, but the source database's size sets a floor unless you are deliberately shrinking. Cross-tier restores work but may take longer. 5: A known recovery point. Note the exact UTC timestamp of the last good state. Azure shows times in the portal in your local time zone by default, so convert before you submit. Mistakes here are the single most common cause of "restored the wrong data" support tickets.
For cross-server moves, add these: a storage account the source and target can both reach, permission to export and import, and awareness that firewall rules, logins, and server-level objects do not travel with a BACPAC. Those must be recreated on the destination.
Restoring to the same server with point-in-time restore in the portal
This is the fastest path for the common case: someone dropped a table or ran a bad update, and you want the database back as it looked an hour ago.
1: Open the Azure portal and go to your SQL server (not the database). Under Data management, select Backups, then Restore. 2: Choose the source database from the list. The portal shows its earliest and latest restorable times. 3: Pick a restore point. The default is the latest available. Use Custom to enter a specific UTC time. If you know the bad change happened at 14:05 UTC, pick 14:03 or earlier—landing inside the transaction log backup interval means the change may already be captured. 4: Enter the target database name. This must be new. 5: Choose the target server. For PITR it must be the same logical server. 6: Review the estimated cost and time, then start the restore.
The portal returns you to the database list, and the new database shows Restoring status. A few-hundred-gigabyte database may take from minutes to well over an hour depending on size, tier, and service load. When status flips to Online, the restore is complete. Verification: connect to the new database, run a row count on the affected table, and compare a known value against your memory of the good state. Do not trust the Online status alone.
Doing the same restore with T-SQL, PowerShell, or the CLI
Scripted restores matter when the clock is tight or when you want an auditable trail.
T-SQL (the modern syntax):
Run this against the master database on the logical server. An older CREATE DATABASE ... AS COPY OF syntax exists for database copy, but it is a copy operation, not a point-in-time restore, and the two are not interchangeable. Use the syntax above for recovery.
PowerShell:
CLI:
All three are asynchronous. Poll with Get-AzSqlDatabase (PowerShell) or az sql db show (CLI) and wait for Status to read Online. Success check: a failed restore returns an error naming the reason—usually a retention miss, an existing target name, or a permission denial. Read the actual error before retrying rather than re-running the same command.
Moving a backup to another server, subscription, or tenant
PITR cannot cross servers. If you need the data on a different logical server, you export and import a BACPAC through the portal, SqlPackage, or the Export-AzSqlDatabase/Import-AzSqlDatabase cmdlets.
1: Export from the source. In the portal, open the database, choose Export, set the storage account and container, provide the admin login, and pick a filename. For databases larger than about 1 GB, use SqlPackage locally or in a VM rather than the portal, which times out on large exports. 2: Download or share the BACPAC. If the target is another tenant, download the file from storage and upload it to a storage account the destination can reach. 3: Import on the destination. In the target server, choose Import, point to the BACPAC, and set the database name and tier. SqlPackage on a machine with network access to the server also works and gives better control. 4: Recreate what the BACPAC does not carry. Logins, server-level firewall rules, elastic pool membership, geo-replication configuration, and auditing settings are not in the file. Recreate them deliberately. 5: Verify with a schema compare and row counts on key tables before switching any application connection string.
The BACPAC route is a logical export, not a physical backup. It preserves schema and data but not transaction log, identity current values beyond the exported sequence, or security principals. Treat the resulting database as a new one.
Geo-restore: the disaster recovery path
When the primary region is down or regionally unavailable, PITR is unavailable because the service itself is degraded. Geo-restore rebuilds a database on any server in the paired region from the geo-replicated backup. In the portal it appears under Restore with a Geo-restore option; the recovery point is the most recent replicated backup, so expect some lag, typically under an hour but potentially longer.
Two things make geo-restore different. First, it is the only route available during a regional outage, and its recovery point is not user-selectable. Second, it restores to a server in the paired region, so you must have one there, or create one. Test this once: knowing the portal path under stress is worth more than any checklist.
Restore failures, limits, and what to check first
"The requested restore point is outside the retention window." You are asking for a time before the earliest restorable time. Check retention on the server and the timestamp. If the data is truly gone from automated backups, a different recovery source—a BACPAC you exported earlier, or a data export in storage—is the only path.
"Database with the name already exists." Restore always creates a new database. Rename or delete the target, or pick a new name.
Import fails with a schema or user error. BACPAC exports can fail on databases with certain features, and database-scoped credentials referencing external identities do not always import cleanly. The error message usually names the object. Fix it in the source export or adjust the import.
Restore takes much longer than expected. Time scales with database size and service tier, and a restore into a smaller compute tier takes longer than one into a matching tier. A 500 GB database can take hours, not minutes. Do not cancel a slow restore unless you have evidence it is stuck; cancellation restarts the clock.
You restored the wrong point or the data is still bad. Re-run the restore to a new name with an earlier timestamp. Old restores do not block new ones, and keeping the failed attempt until you confirm the new copy is correct costs only storage while it sits there.
A useful stop condition: if you cannot identify a recovery point that contains the data you need, or if the failure is in system-level objects such as logins and server roles that you did not script, stop and involve the team that owns server administration. Recovering data is routine; reconstructing server identity objects under pressure is not.
How to pick the right method without second-guessing
| Situation | Method | Creates new database? | Crosses servers? |
|---|---|---|---|
| Accidental delete or bad update today | Point-in-time restore | Yes, same server | No |
| Need a copy for testing on the same server | PITR to a test target | Yes | No |
| Migration to a new server or tenant | BACPAC export/import | Yes, destination | Yes |
| Primary region outage | Geo-restore | Yes, paired region | Yes |
| Recovery point older than retention | External export file | Yes | Depends on file source |
The table is a starting point, not a rule: a stale recovery point sometimes survives only in a BACPAC someone exported before the incident, and that file is worth more than any built-in feature when retention has lapsed. Build a habit of exporting a BACPAC before major schema changes on databases where the built-in window is too thin, and set retention to 35 days on anything production-critical before you need it.
A recovery sequence you can run in order
1: Record the incident time in UTC and identify the last known-good point, rounding down by at least one log backup interval. 2: Confirm the point falls inside the retention window in the portal's Backups view. 3: Decide same-server versus cross-server. If same-server, run PITR. If cross-server, export the BACPAC at or before the good point—exporting from a restored copy, not the damaged database, is safer. 4: Restore or import into a clearly named new database. 5: Verify data, then re-point the application connection string or rename as your deployment process allows. 6: Only after verification, clean up failed attempts, and extend retention if the incident exposed a gap.
The bottleneck in almost every SQL Azure restore is not the restore itself but deciding which recovery point is correct. The second bottleneck is forgetting that the original database remains untouched, so your application keeps talking to the damaged copy until someone changes the connection string. Put the rename or re-point check into whatever runbook you use for incidents, and the restore becomes a ten-minute step rather than an afternoon.