SQL Server error 1133 means the managed instance has reached its allocated storage limit, so the service can no longer write data, logs, or backups until space is freed or the limit is raised. The direct fix is to delete unneeded data or files, shrink large logs where possible, and then increase the instance's storage limit in the Azure portal if the workload genuinely needs more room. You cannot fix this by restarting the instance; restarting does not add storage and may make the problem worse if logs are already full.

What You'll Need

  • Access to the Azure portal with permission to view and modify the managed instance (Owner, Contributor, or SQL Managed Instance Contributor role).
  • The name of the resource group and the managed instance.
  • A SQL login with enough privileges to run DBCC commands and delete data (sysadmin or db_owner as appropriate).
  • A maintenance window or agreement with users, because deleting data and changing storage can affect availability.
  • An understanding of which databases and files are consuming the most space, so you do not delete the wrong thing.

Step-by-Step

  1. Confirm the error is storage-related. Connect to the managed instance with SQL Server Management Studio (SSMS) or Azure Data Studio and check the error message. Error 1133 typically appears when a database or log file cannot grow. Run SELECT name, size/128.0 AS size_mb FROM sys.master_files ORDER BY size_mb DESC; to see which files are largest. This query works on SQL Server and Azure SQL Managed Instance.
  2. Check the instance storage limit in the Azure portal. Open the Azure portal, go to your managed instance, and look at the Overview or Compute + storage page. The storage limit is shown there. Note the current maximum; labels and placement can differ slightly by portal version and region.
  3. Free space inside the databases first. Identify large tables with SELECT TOP 20 t.name AS table_name, SUM(a.total_pages) * 8 / 1024 AS size_mb FROM sys.tables t JOIN sys.indexes i ON t.object_id = i.object_id JOIN sys.partitions p ON i.object_id = p.object_id AND i.index_id = p.index_id JOIN sys.allocation_units a ON p.partition_id = a.container_id GROUP BY t.name ORDER BY size_mb DESC;. Delete or archive rows you no longer need, then rebuild or reorganize indexes to reclaim internal space. Deleting rows does not always shrink files; it frees pages inside them.
  4. Shrink data files only if you have a good reason. Use DBCC SHRINKFILE (logical_file_name, target_size_MB); for a specific file. Shrinking is not a routine maintenance task and can fragment indexes, so prefer deleting data and rebuilding indexes. If you shrink, do it during a low-activity window.
  5. Manage the transaction log. If the log file is the largest consumer, check the recovery model. In full recovery model, log truncation depends on log backups. Take a log backup if your recovery plan allows, or switch to simple recovery model only if you accept the loss of point-in-time restore for that database. Then shrink the log file with DBCC SHRINKFILE. Never shrink the log to a size smaller than it will immediately need to grow again.
  6. Remove unnecessary files and backups stored inside the instance. Managed Instance storage includes user databases, system databases, and any files you have placed on the instance. Delete old backup files, export files, or staging data that live on instance storage. Do not delete files you do not recognize; check with the application owner first.
  7. Increase the storage limit if you still need more room. In the Azure portal, open the managed instance and go to Compute + storage (or the equivalent pricing tier page). Increase the storage value and save. The change may take some time and may require a brief failover or restart depending on the service tier and configuration. Plan for a maintenance window. Storage can be increased but not decreased below the used amount, so size it realistically.
  8. Verify the fix. Re-run the file-size query and check the Azure portal storage usage. Try the operation that failed and confirm it now succeeds. Monitor for a few days to make sure the instance is not growing toward the limit again.

Common Mistakes

  • Restarting the managed instance and expecting storage to free up. A restart does not delete data and can cause downtime.
  • Shrinking every database file on a schedule. This causes fragmentation and can hurt performance; shrink only when you have a specific reason.
  • Deleting rows without rebuilding indexes or checking file usage, then assuming space was reclaimed. File size may not change until you shrink or rebuild.
  • Switching a database to simple recovery model without understanding the backup and restore implications.
  • Increasing storage without investigating what is consuming it, so the instance fills up again quickly.
  • Deleting files from instance storage that belong to an application or to SQL Server itself.

Tips

  • Set up alerts in Azure Monitor for storage percentage so you get warned before the instance hits the limit.
  • Keep transaction log backups running regularly if you use full recovery model; log growth is often the first sign that backups have stopped.
  • Archive old data to a separate database or storage account rather than keeping everything in the managed instance.
  • Review index maintenance and rebuild large indexes during low-activity periods to reclaim space efficiently.
  • Document the storage limit and growth trend so you can plan an increase before users see errors.

Troubleshooting

If you still see error 1133 after freeing space, check whether the space was actually reclaimed at the file level. Deleting rows frees pages inside a file but does not reduce the file size; the instance storage usage may stay the same until you shrink the file or rebuild the index. Run the file-size query again and compare it with the Azure portal usage. If the portal still shows the limit reached, the storage increase may not have completed; check the deployment status in the portal. If you cannot increase storage because of quota or policy, contact your Azure administrator or support. If the log file keeps growing immediately after a shrink, log backups are probably not running or are failing; fix the backup chain before shrinking again. If a database is in an unusable state because the log is full, do not detach or delete it without a backup you can restore. In that case, free space elsewhere first or raise the storage limit, then take a backup. If the portal shows the instance as unavailable, wait for the operation to finish and check the activity log for errors.

Frequently Asked Questions

Can I fix error 1133 by restarting the managed instance?

No. Restarting does not free storage. It may briefly interrupt service and does not change the storage limit. Free space or increase the limit instead.

Does deleting rows reduce storage usage immediately?

Not necessarily. Deleting rows frees pages inside the data file, but the file size and instance storage usage may stay the same until you shrink the file or rebuild indexes.

Can I decrease storage after increasing it?

You can increase storage, but you cannot reduce it below the amount currently used. Plan the increase carefully.

Will increasing storage cause downtime?

It can cause a brief interruption or failover depending on the service tier and configuration. Schedule the change during a maintenance window.

What usually fills up managed instance storage first?

Transaction logs and large tables are common causes, along with files and backups stored on the instance. Check file sizes and backup status first.

Is shrinking the database a good regular maintenance step?

No. Shrinking causes fragmentation and is not a routine task. Use it only when you need to reclaim space after a large deletion or log growth event.