Hi @ Fernando GutierrezRestoring an Azure SQL Database from one tenant to another can be challenging, especially when the tenants are isolated. Based on your steps, it seems you're on the right path with the BACPAC file method. However, the error during import could be caused by some common issues.
Here are few suggestions to help you troubleshoot:
Verify that the BACPAC file was uploaded successfully to the Azure Storage account in the destination tenant. Ensure the file is fully uploaded and there are no issues with its integrity.
In the destination tenant, you can use the Azure Portal to import the BACPAC file into a new Azure SQL Database. Follow these steps:
Navigate to the Azure SQL Server: In the destination tenant, go to the SQL server where you want to restore the database.
Import from BACPAC:
- Go to the SQL Databases section.
- Click + Add or Import.
- Select Import from BACPAC and specify the BACPAC file URL from the storage account in the destination tenant.
Ensure you select the correct database server and configure the appropriate settings (such as database name, resource group, etc.).
If you are using a private storage account or if the destination tenant doesn’t have full access to the storage account where the BACPAC file is located, you may need to provide access via a SAS token.
- Generate SAS token: In the storage account, generate a Shared Access Signature (SAS) token with the necessary permissions (Read and List).
- Attach the SAS token when specifying the BACPAC file’s URL during the import process.
If you could provide the specific error message, it might offer more insights. Common errors include schema compatibility issues, missing permissions, or unsupported features.