[Step by Step] Restore a Database from Azure Blob to Azure SQL Server
In one of the requirements, we had to move a Database uploaded to ‘Azure Blob Storage’ to Azure SQL Server.
If you got a question, why we need to move SQL Database file from Azure Blob to Azure SQL Server, like me, below is a sample scenario
- Customer IT team, uploads their Database file to Azure Blob storage every week using AZcopy
- To consume the Data, we either have to restore the Database file to Azure SQL Server or to your local SQL server.
Below are the steps to restore Database file from Azure Blob to Azure SQL Server.
Prerequisites:
- Azure Subscription
- Create a ‘Storage Account’ with ‘Blob’. Refer my previous article for steps to create
- Database file uploaded in Azure Blob Storage
- SQL Server Management Studio (SSMS), as I am going to use this tool in next steps.
Steps to restore Database from Blob to Azure SQL Server:
- Connect to ‘Azure SQL Server’ using SQL Server Management Studio (SSMS)
- Right click on ‘Databases’ and choose ‘Import Data-tier Application…’
- In ‘Import Settings’ tab of the ‘Import Data-tier Application’ window
- Select ‘Import from Windows Azure’
- Click ‘Connect…’
- Provide ‘Azure Storage account’ name
- Account Key
- Click ‘Connect’
- In the next window, pick the Azure Database back up file upload in the Blob and click ‘OK’
- In ‘Database Settings’ tab, provide the ‘New database name’ and click ‘Next’
- That’s it, now the Restore process should start with ‘Progress’ window.
- Give it some time and once the process completed, you will see ‘Success’ Status
🙂
Categories: Azure
Azure, Database, Import Data tier application, Restore Blob, SQL Server
Comments (0)
Trackbacks (0)
Leave a comment
Trackback