I have a requirement to backup the SQL database present in Azure Managed instance and restore it on local server for root cause analysis. This needs to be performed whenever we encounter a certain error on the DB. Since the automated backups are TDE enabled, what are the available options to restore the db on local machine?
Upon browsing, I came across two options but need some guidance in them.
One option is to disable the TDE on the database, backup the db and then enable the TDE. But in this option, the backup file will not be in encrypted format and since we have confidential data, this doesn't seem to be a secure solution. Do we have any options to use our own encryption for backing up the database and use those for restore on local machine?
Second option to get the data is to use BACPAC files. But again they too suffer from the same security issue. Can we encrypt the bacpac files while creating and decrypt them while loading to local server?
Kindly advise if there are any other alternatives too.