Hi @Vincent Li ,
Thanks for posting this question in Microsoft Q&A platform.
Sorry for the inconvenience, but by design, Azure MySQL server will restart itself after 7 days even when stopped. Since it is a fully managed production-ready database service, to perform management operations this configuration is set.
Reference Link: sample-cli-restart-stop-start
However, there is a workaround using Powershell script, please take a look at: Auto Stop and Start your Azure Database for MySQL Single Server using PowerShell runbook
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification