Lesson Learned #51: Managed Instance - Import via Sqlpackage.exe doesn't allow autogrow
Published Mar 13 2019 07:35 PM 9,013 Views
First published on MSDN on Dec 29, 2018
Some days ago, I have been working in a service request that our customer faced the following issue:

  • They've downloaded the newest version of Sqlpackage.exe tool (18.0) and they're trying to import a bacpac into their Azure SQL Managed Instance. It has started successfully but it's hanging while it reaches 32,768 MB size of primary filegroup of imported DB and the import process raised the following error:


' Could not allocate a new page for database 'customer_database' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup'.


Let me explain that when you create a database in Azure SQL Managed Instance the autogrowth is enabled but limited in space, so, you need to change it as follows:

  • Using SQL Server Management Studio and properties of the database ->Files, I was able to change the value of this max growth


Version history
Last update:
‎Mar 13 2019 07:35 PM
Updated by: