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