An Azure relational database service.
Thanks for reaching out to Microsoft Q&A! Here’s a step-by-step guide to help you fix the issue.
It seems like you're running into some really critical behavior with Azure SQL Database BACPAC imports getting stuck at 100%. Let me break things down a bit and outline what might be going on, along with a few things you can try next.
Is This Normal?
In short, no. A BACPAC import shouldn’t get stuck at 100% for too long. If that’s happening, it usually means something in the background is causing a slowdown—especially if multiple imports are running at the same time.
What Does “100%” Actually Mean?
When the progress hits 100%, it typically means the data transfer itself is done. However, that’s not the end of the process. Azure might still be doing things like creating indexes, updating metadata, or finalizing the schema. If the database is under heavy load or there’s competition for resources, this is where things often get hung up.
How to Check If It's Truly Stuck
Instead of just relying on the Azure Portal, here are a couple of ways to get a clearer picture:
- Use Get-AzSqlDatabaseImportExportStatus in Azure PowerShell to track the import’s real-time status.
- Keep an eye on the database metrics to see if the CPU, DTUs, or storage are maxing out.
Avoid Stuck Imports
Given you're running parallel imports and using Managed Identity without pods, here are a few things you can try:
- Reduce Parallel Imports: If possible, space out your imports so they don’t all run at once.
- Temporarily Scale Up: Moving to a higher tier during imports can give you more resources to handle the load.
- Try SqlPackage: If you're dealing with larger BACPACs (especially over 150GB), SqlPackage is often more reliable than imports through the portal.
- Check for Clustered Indexes: Large tables without clustered indexes can really slow things down.
- Validate Source DB Settings: Ensure the source database doesn’t have unsupported configurations, logins, or settings that could cause issues during the import.
A Few Questions to help find the Issue:
- Have you checked your Azure SQL Database metrics for any CPU or DTU bottlenecks?
- Would staggering the imports be an option to reduce the load?
- What sizes are the BACPAC files you're working with?
Reference B articles -