Azure managed instance backup encrypted database

Jaime Maccou 0 Reputation points
2024-11-13T21:19:07.77+00:00

How to backup Azure managed instance database that is TDE encryption enabled

Azure SQL Database
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,946 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luis Arias 7,531 Reputation points
    2024-11-13T22:35:46.3833333+00:00

    Hello ,

    For Azure SQL Managed Instance, no special operation is needed to back up or restore a TDE-enabled database, as TDE is managed natively by Azure:

    • Automated Backups: Azure SQL Managed Instance automatically backs up TDE-encrypted databases to geo-redundant storage. You don't need additional steps for backup, as TDE encryption is applied transparently.
    • Manual Backups (Optional): If you need manual backups (e.g., BACKUP TO URL), you can create them directly to Azure Blob Storage, and TDE encryption remains in place without additional actions. The backup file is encrypted and can only be restored on compatible instances.
    • Restoration: When restoring, the instance will automatically manage TDE. No decryption or re-encryption is required, as Azure handles the encryption keys and settings.

    References

    If this clarifies your question, please accept the answer.

    Luis

    0 comments No comments

  2. ShaktiSingh-MSFT 15,761 Reputation points
    2024-11-18T09:12:48.9866667+00:00

    Hi Jaime Maccou •,

    Thanks for the details and sorry about the inconvenience you are facing.

    • If you're exporting to blob storage, the maximum size of a BACPAC file is 200 GB. To archive a larger BACPAC file, export to local storage with SqlPackage.
    • For larger databases, BACPAC export/import might take a long time, and might fail for various reasons.

    BACPACs are not intended to be used for backup and restore operations. Azure automatically creates backups for every user database. For details, see business continuity overview and Automated backups in Azure SQL Database or Automated backups in Azure SQL Managed Instance.

    Azure SQL Managed Instance doesn't currently support exporting a database to a BACPAC file using the Azure portal or Azure PowerShell. To export a managed instance into a BACPAC file, use SQL Server Management Studio (SSMS) or SQLPackage.

    Please try SQLPackage if that helps and let us know the result.

    Thanks

    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.