Shrink Log
Azure SQL Managed InstanceAlthough we strongly discourage shrinking files of SQL databases, but it can be an absolute necessity at times. Below is a simple script you can use to shrink log files of all databases and quickly reclaim some space on the drive hosting log files (*.LDF).