Cant get the Database Watcher to start collecting data from the Azure SQL DB

Jurica Smirčić 0 Reputation points
2025-06-03T20:03:31.79+00:00

We carefully configured a database watcher as per documentation. everything is setup (Key Vault with proper permissions, executed script to create login and grant permissions (script copy-pasted), created secrets in the vault).

But we don't get any data collection and portal dashboard shows 0 Databases.. Cant find any information about what is wrong (no logs, no diagnostics). Not sure how can we investigate the problem?

User's image

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. PratikLad 1,585 Reputation points Microsoft External Staff Moderator
    2025-06-11T11:59:56.8666667+00:00

    Hi @ Jurica Smirčić

    The document link shows the exact permission required by Watcher. You have to ensure that the user (because it is SQL Auth here) has exactly those permissions. Not less not more. You can do this via SMSS or the script (can be downloaded through the add target blade).

    To allow a watcher to collect SQL monitoring data, you must execute a T-SQL script that grants the watcher specific, limited SQL permissions. The user should not be assigned any additional permissions.

    
    CREATE LOGIN [login-name-placeholder] WITH PASSWORD = 'password-placeholder';
    
    ALTER SERVER ROLE ##MS_ServerPerformanceStateReader## ADD MEMBER [login-name-placeholder];
    
    ALTER SERVER ROLE ##MS_DefinitionReader## ADD MEMBER [login-name-placeholder];
    
    ALTER SERVER ROLE ##MS_DatabaseConnector## ADD MEMBER [login-name-placeholder];
    
    

    Check for Resource Locks

    • Go to the Azure Portal >> Watcher Resource >> Locks tab.
    • Remove any ReadOnly or Delete locks if present.

    Use Activity Logs and Support Diagnostics

    Go to Azure MonitorActivity Logs

    • Filter by the time you attempted to start/stop/delete the Watcher
    • Look for errors such as Conflict, Timeout

    Please review the scenarios mentioned above. If the issue still persists, feel free to reach out with the requested details so we can assist you further.


Your answer

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