Restore Azure Managed Instance to Azure SQL Database

Nigel Morse 191 Reputation points
2020-11-16T17:57:59.3+00:00

Is it possible to take a restore a backup from a managed instance to an Azure SQL database? Sometimes I'd like to be able to restore a copy of a large database for a few days, or for testing some new functionality. We'd like to separate this from the managed instance so being able to restore a copy to a Azure SQL Database easily would be awesome.

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anurag Sharma 17,606 Reputation points
    2020-11-17T04:17:54.127+00:00

    Hi @Nigel Morse , welcome to Microsoft Q&A forum.

    The easiest approach would be to store the database backup from bacpac to Azure SQL Database:

    1). Export Azure SQL Managed Instance to a bacpac file
    https://learn.microsoft.com/en-us/azure/azure-sql/database/database-export

    2). Import from the bacpac file to Azure SQL Database
    https://learn.microsoft.com/en-us/azure/azure-sql/database/database-import?tabs=azure-powershell

    But this is an approach that will create database from scratch.

    Please let me know if this helps or else we can discuss further on the same.

    ----------

    If the answer helps, please select 'Accept answer' as this could help others having similar queries.


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.