deadlock-analysis-azuresql
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFE
Full Analysis
- [Diagnostic SQL Query Implementation]: The skill utilizes standard T-SQL queries to retrieve deadlock information from Extended Events (XE) sessions and Query Store. These operations are restricted to performance-related system views (e.g.,
sys.dm_xe_database_sessions,sys.query_store_plan) and follow standard database administration practices for Azure SQL Database. - [Least-Privilege Guidance]: The instructions explicitly recommend using a diagnostic login with minimal permissions, such as
VIEW DATABASE PERFORMANCE STATE, ensuring the agent operates within a restricted security context. - [Platform-Specific Guardrails]: It includes logic to verify the database engine edition before execution, ensuring that the queries are only run against compatible Azure SQL or Fabric SQL environments, which prevents accidental execution on unsupported platforms.
- [Resource Management]: The skill includes explicit warnings against reading from the built-in
dlsession to avoid potential memory issues (OOM) on the target server, demonstrating an awareness of operational stability and resource safety.
Audit Metadata