How do you use cloud databases? Take the survey.
Options
Schedule monitoring of Azure SQL DB serverless databases
Severn
Posts: 8 Bronze 1
We have a few serverless Azure SQL databases that automatically pause after 1 hour of inactivity. However SQL monitor seems to keep them awake.
Is there anyway that we could automatically schedule SQL monitor to stop monitoring selected databases outside of office hours so they can pause (and we can save some money!)
Is there anyway that we could automatically schedule SQL monitor to stop monitoring selected databases outside of office hours so they can pause (and we can save some money!)
Best Answer
-
OptionsRobyn Posts: 179 Silver 5Hi,
Thanks for your post.
As SQL Monitor licensing for Azure SQL Databases is per database, it makes no difference if it's a serverless database or not.
You can use the Powershell API and create a script that suspends and unsuspends those databases at a set time.
Answers
Have found an example that does just what I want and will give it a go.