Hello,
Welcome to Microsoft Q&A,
I would suggest you the Azure Backup, Please find the steps below,
- Use Azure backup to take a backup of your SQL -
- Export backups to external storage (Optional)
- Before deleting the VM, Make sure to back up any other files/services in the VM
- Delete the VM and associated resources like Public IP, NIC, Disk, etc.,
- Steps to restore and manage can be found in the below link
Please Upvote and Accept this as an Answer if it helps!