Stop Azure Backup for multiple SQL on Azure VM Databases with Powershell
link: https://learn.microsoft.com/en-us/azure/backup/backup-azure-sql-automation#stop-protection
I had a case where I did need to migrate a lot of databases from one SQL Server on a Azure VM to another VM. After the successful migration there were a lot of old databases on the “old SQL Server” offline and I got a lot of Azure Backup Alerts. Because I was to lazy to disable the backup for each database by hand, I created the following small script which will do that job.



