title | description | services | documentationcenter | author | manager | editor | ms.assetid | ms.service | ms.custom | ms.devlang | ms.date | ms.author | ms.workload | ms.topic | ms.tgt_pltfrm |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Azure portal: Export an Azure SQL database to a BACPAC file | Microsoft Docs |
Export an Azure SQL database to a BACPAC file using the Azure Portal |
sql-database |
CarlRabeler |
jhubbard |
sql-database |
migrate and move |
NA |
02/07/2017 |
carlrab |
data-management |
article |
NA |
This article provides directions for exporting your Azure SQL database to a BACPAC file (stored in Azure blob storage) using the Azure portal. For an overview of exporting to a BACPAC file, see Export to a BACPAC.
Note
You can also export your Azure SQL database file to a BACPAC file using SQL Server Management Studio, PowerShell or SQLPackage.
To complete this article, you need the following:
- An Azure subscription.
- An Azure SQL Database.
- An Azure Standard Storage account with a blob container to store the BACPAC in standard storage.
-
Go to the Azure portal.
-
Open the SQL Database blade for the database you want to export.
-
Ensure that no transactions will occur during the export.
[!IMPORTANT] To guarantee a transactionally consistent BACPAC file, a good method is to create a copy of your database and then export from the database copy.
-
Click SQL databases.
-
Click the database to archive.
-
In the SQL Database blade, click Export to open the Export database blade:
-
Click Storage and select your storage account and blob container to store the BACPAC:
-
Select your authentication type.
-
Enter the appropriate authentication credentials for the Azure SQL server containing the database you are exporting.
-
Click OK to export the database. Clicking OK creates an export database request and submits it to the service. The length of time the export takes depends on the size and complexity of your database, and your service level.
-
View the notification you receive.
-
Click SQL servers.
-
Click the server containing the original (source) database you archived.
-
Scroll down to Operations.
-
In the SQL server blade click Import/Export history:
-
Click Storage accounts.
-
Click the storage account where you stored the BACPAC archive.
-
Click Containers and select the container you exported the database into for details (you can download and save the BACPAC from here).
- To learn about long-term backup retention of an Azure SQL database backup as an alternative to exported a database for archive purposes, see Long term backup retention
- To learn about importing a BACPAC to a SQL Server database, see Import a BACPCAC to a SQL Server database