How to Restore a .bak File to a Cloud Database?

Nathan S 20 Reputation points
2025-06-05T21:41:05.3566667+00:00

How can a .bak file be restored to a cloud database? A backup was taken locally, and there is a need to work on it in the cloud with colleagues.

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2025-06-05T21:45:45.06+00:00

    Depends on what you mean with "cloud database".

    You can restore a .bak file to SQL Server running in an Azure VM.

    You can restore a .bak file to Azure SQL Managed Instance.

    You cannot restore .bak file to Azure SQL Database.

    In the first two cases, you would have to put the .bak file in Blob storage so that you can access it from the VM/MI.

    For Azure SQL Database, a .bacpac is probably the simplest option as long as the the database is not too big.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2025-06-05T21:55:52.6266667+00:00

    Azure SQL Database does not currently support that customers use bak file as a restore to generate a new database on Azure SQL Database. The only method used to restore in Azure SQL Database is to import from BACPAC files as explained here.

    You can also restore the .BAK file to a local computer SQL Server instance and from there you can migrate the database using Azure Tools as explained here or using SQL Server Management Tool (SSMS)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.