Can't find what is preventing auto-pause from working

P Christel 20 Reputation points
2025-12-12T17:34:22.59+00:00

I have a General Purpose - Serverless database set-up. Auto-pause was initially working, but as of sometime yesterday, it will not pause. I initially found that I had SSMS open and suspected that was the issue. However, it has been closed for hours now and the database remains online with no activity. I have confirmed there are no active connections or queries. There are no replicatas or syncs. I didn't find any locks. I'm also not able to manually pause the database.

Azure SQL Database
0 comments No comments
{count} votes

Answer accepted by question author
  1. VRISHABHANATH PATIL 3,060 Reputation points Microsoft External Staff Moderator
    2025-12-16T02:06:42.6766667+00:00

    Hi @P Christel

    It sounds like you're having some trouble with the auto-pause feature on your Serverless database. Here are a few things you can check:

    Connections: Even if SSMS is closed, ensure there are no lingering connections. Sometimes, background processes or applications might still maintain a connection to the database.

    Database Activity: Verify if there are any scheduled jobs, integrations, or functionalities (like Azure Functions or Logic Apps) that may be interacting with your database, which could prevent it from auto-pause and might not show up as active queries.

    Resource Configuration: Check your database's serverless configuration settings. Make sure everything is set up correctly according to the best practices for enabling auto-pause.

    Diagnostic Logs: Look into your Azure SQL Database diagnostic logs, which can provide insights into what's keeping the database active.

    Manual Pause Issues: If you're unable to manually pause the database, check for any error messages that might provide more context into the issue.

    If all these checks are clear and the issue persists, it might be worth reaching out to Azure support for more in-depth troubleshooting.

    Hope this information helps you resolve the issue!

    Reference:

    Let me know if you need more assistance!


Answer recommended by moderator
  1. P Christel 20 Reputation points
    2025-12-12T20:01:14.13+00:00

    Thanks for everyone's help I was able to determine that SSMS was not properly disconnecting from the database even though it was no longer showing in the object explorer panel. I had to manually kill the session, which I don't understand. I'm also not sure why I wasn't able to identify this earlier. On a side-note, is there no way to bring an Azure DB offline like in on-premises?


1 additional answer

Sort by: Most helpful
  1. hossein jalilian 13,285 Reputation points Volunteer Moderator
    2025-12-12T17:38:31.81+00:00

    Thanks for posting your question in the Microsoft Q&A forum.Azure SQL Serverless may refuse to auto-pause or manual pause if any session or required feature is keeping the database active, or if Azure is performing maintenance that temporarily blocks pausing. Even if the portal shows no active connections hidden or background sessions, or enabled features like geo replication or Data Sync, can prevent pausing.

    Check for active sessions using the recommended query, ensure no blocking features are enabled, disconnect all clients, and optionally toggle compute settings or disable/re enable auto pause.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.