- Design Azure Sql SchemaUse when creating, reviewing or porting tables for Azure SQL Database: key and string lengths, collation, identity gaps. Has verified behavior common answers miss, e.g. a unique index on nvarchar(1000) builds with only a warning.microsoft/microsoft-sql40
- Dev Container TemplatesUse when starting from the microsoft/azuresql-devcontainers templates (.NET, Aspire, Node, Python) or they misbehave: empty database, schema not deployed, behaviour unlike Azure docs. Their database is SQL Server.microsoft/microsoft-sql40
- Dev Container TemplatesUse when starting from the microsoft/azuresql-devcontainers templates (.NET, Aspire, Node, Python) or they misbehave: empty database, schema not deployed, behaviour unlike Azure docs. Their database is SQL Server.microsoft/microsoft-sql40
- Ef Core Azure SqlUse when EF Core targets Azure SQL Database: EnableRetryOnFailure, 'does not support user-initiated transactions', duplicate rows after a retry, UseAzureSql or UseSqlServer, AsSplitQuery, JSON columns.microsoft/microsoft-sql40
- Ef Core Azure SqlUse when EF Core targets Azure SQL Database: EnableRetryOnFailure, 'does not support user-initiated transactions', duplicate rows after a retry, UseAzureSql or UseSqlServer, AsSplitQuery, JSON columns.microsoft/microsoft-sql40
- Embeddings And External ModelsUse when generating embeddings in Azure SQL Database or reviewing that setup: CREATE EXTERNAL MODEL, AI_GENERATE_EMBEDDINGS, Azure OpenAI from T-SQL. Has verified behavior common answers miss, e.g. the model DDL succeeds with a credential that can never work.microsoft/microsoft-sql40
- Embeddings And External ModelsUse when generating embeddings in Azure SQL Database or reviewing that setup: CREATE EXTERNAL MODEL, AI_GENERATE_EMBEDDINGS, Azure OpenAI from T-SQL. Has verified behavior common answers miss, e.g. the model DDL succeeds with a credential that can never work.microsoft/microsoft-sql40
- Entra Id AuthUse when setting up passwordless Microsoft Entra ID or managed identity access to Azure SQL Database or the container (CREATE USER FROM EXTERNAL PROVIDER), or it fails: Msg 33134, 18456 login failed, 4060.microsoft/microsoft-sql40
- Entra Id AuthUse when setting up passwordless Microsoft Entra ID or managed identity access to Azure SQL Database or the container (CREATE USER FROM EXTERNAL PROVIDER), or it fails: Msg 33134, 18456 login failed, 4060.microsoft/microsoft-sql40
- Evaluate Azure Migration AssessmentUse when running or refreshing migration assessment for an Azure SQL Server instance and retrieving readiness and SKU results.microsoft/microsoft-sql40
- Evaluate Offline Migration ReadinessUse when running migration readiness assessment for a local or on-premises SQL Server with az datamigration on Windows.microsoft/microsoft-sql40
- Generate Migration Prerequisite PlanBuilds a sourced, scenario-specific prerequisite plan for a SQL Server to Azure migration path. Consumes the structured output of recommend-migration-path or works standalone from a known target and method, asks only unresolved path-specific questions, and returns a readiness summary plus detailed prerequisites as polished Markdown, structured JSON, or both. Trigger when the user asks what must be ready before executing a recommended SQL migration, wants a migration prerequisites checklist, or amicrosoft/microsoft-sql40
- Geo Dr Assessment Health CheckUse when the user asks whether geo-replication or a failover group is healthy and ready for a planned failover (GO/NO_GO), or what the geo-DR RPO/RTO is. For lag happening now, use `investigate-geo-dr-issues`.microsoft/microsoft-sql40
- Get Migration AssessmentUse when retrieving existing SQL Server migration assessment data from Azure Resource Graph with the required instance-level and database-level queries.microsoft/microsoft-sql40
- Github Actions For SqlUse when deploying schema to Azure SQL Database from GitHub Actions: azure/sql-action, dacpac publish, OIDC with no stored password, login failing after adding an environment, client IP or firewall errors.microsoft/microsoft-sql40
- Github Actions For SqlUse when deploying schema to Azure SQL Database from GitHub Actions: azure/sql-action, dacpac publish, OIDC with no stored password, login failing after adding an environment, client IP or firewall errors.microsoft/microsoft-sql40
- Ha Assessment Health CheckUse when the user wants a proactive Always On availability group health check before an audit, go-live or change: sync, listeners, failover readiness. For an active incident, use `investigate-ha-issues`.microsoft/microsoft-sql40
- Health Audit SqlserverUse when the user asks for a health audit of a SQL Server or Managed Instance (not Azure SQL Database): what is failing or risky now: availability, integrity, resources, storage, backups, HA, jobs, security.microsoft/microsoft-sql40
- Improve Query PerformanceUse when the user asks to optimize, tune, speed up or improve a specific SQL query ('make this faster'), with or without a plan; default when no technique is named. For a rewrite only, use `query-rewrite`.microsoft/microsoft-sql40
- Investigate Geo Dr IssuesUse when a geo-secondary lags behind the primary right now, a geo-replication link is suspended, or a failover group fails over unexpectedly. For a readiness check, use `geo-dr-assessment-health-check`.microsoft/microsoft-sql40
- Investigate Ha IssuesUse when an availability group has sync or failover problems: replica suspended, NOT SYNCHRONIZING or RESOLVING, growing redo queue, lease timeout, failed seeding. For a readiness check, use `ha-assessment-health-check`.microsoft/microsoft-sql40
- Investigate Sql Cpu PressureUse when CPU is high on SQL Server or Azure SQL (alerts, throttling, SOS_SCHEDULER_YIELD waits) and the user wants the queries responsible. For a broad resource snapshot, use `resource-usage-sqlserver`.microsoft/microsoft-sql40
- Investigate Sql Cpu PressureUse when CPU is high on SQL Server or Azure SQL (alerts, throttling, SOS_SCHEDULER_YIELD waits) and the user wants the queries responsible. For a broad resource snapshot, use `resource-usage-sqlserver`.microsoft/microsoft-sql40
- Investigate Sql Data Io PressureUse when data-file reads are slow or heavy: PAGEIOLATCH waits, high read latency, many physical reads, Azure SQL data IO throttling. For WRITELOG or log latency, use `investigate-sql-log-io-pressure`.microsoft/microsoft-sql40
- Investigate Sql Data Io PressureUse when data-file reads are slow or heavy: PAGEIOLATCH waits, high read latency, many physical reads, Azure SQL data IO throttling. For WRITELOG or log latency, use `investigate-sql-log-io-pressure`.microsoft/microsoft-sql40
- Investigate Sql Log Io PressureUse when commits are slow or log writes lag: WRITELOG waits, high log write percent, log throughput throttling, too many VLFs. For PAGEIOLATCH or data-file reads, use `investigate-sql-data-io-pressure`.microsoft/microsoft-sql40
- Investigate Sql Log Io PressureUse when commits are slow or log writes lag: WRITELOG waits, high log write percent, log throughput throttling, too many VLFs. For PAGEIOLATCH or data-file reads, use `investigate-sql-data-io-pressure`.microsoft/microsoft-sql40
- Investigate Sql Memory IssuesUse when queries wait on memory grants (RESOURCE_SEMAPHORE), spill to tempdb, hit out-of-memory errors (701, 802, 8645), or PLE drops. For a broad resource snapshot, use `resource-usage-sqlserver`.microsoft/microsoft-sql40
- Investigate Sql Memory IssuesUse when queries wait on memory grants (RESOURCE_SEMAPHORE), spill to tempdb, hit out-of-memory errors (701, 802, 8645), or PLE drops. For a broad resource snapshot, use `resource-usage-sqlserver`.microsoft/microsoft-sql40
- Investigate Statistics IssuesUse when row estimates are far from actual rows, statistics may be stale, or the user asks which to update or if auto-update keeps up. Has tested queries and rules common answers miss, e.g. the sqrt threshold needs compat level 130+. For missing indexes, use `missing-index-analysis`.microsoft/microsoft-sql40
- Langchain And Llamaindex On Azure SqlUse when using LangChain or LlamaIndex with Azure SQL Database: SQL agent or text-to-SQL emits LIMIT, read-only agent, SQLDatabaseToolkit, langchain-sqlserver vector store, vector index refused.microsoft/microsoft-sql40
- Langchain And Llamaindex On Azure SqlUse when using LangChain or LlamaIndex with Azure SQL Database: SQL agent or text-to-SQL emits LIMIT, read-only agent, SQLDatabaseToolkit, langchain-sqlserver vector store, vector index refused.microsoft/microsoft-sql40
- Ledger TablesUse when the user asks about ledger tables: whether ledger fits a tamper-evidence need, creating updatable or append-only ones, or listing them and their history. SQL Server 2022+ and Azure SQL Database.microsoft/microsoft-sql40
- Missing Index AnalysisUse when the user asks which indexes are missing, whether a table needs one, or whether index suggestions are worth creating. Has tested queries and rules common answers miss, e.g. rank suggestions by seeks x cost x impact. Not for Synapse dedicated pools.microsoft/microsoft-sql40
- Partitioned TablesUse when the user asks about partitioned tables: skew or hot partitions, boundaries or missing future partitions, per-partition fragmentation, index alignment, or partition elimination.microsoft/microsoft-sql40
- Plan AnalysisUse when the user supplies an execution plan (showplan XML, .sqlplan) or asks to explain or check one: costly operators, spills, misestimates. Has tested rules common answers miss, e.g. subtree costs are inclusive. For end-to-end tuning, use `improve-query-performance`.microsoft/microsoft-sql40
- Plan Cache AnalysisUse when the user asks about plan cache bloat, single-use or ad hoc plans, poor plan reuse, SET option pollution or parameter sniffing suspects. For one query's plans, use `plan-cache-qds-bridge`.microsoft/microsoft-sql40
- Plan Cache Qds BridgeUse when the user needs one query's cached plan and Query Store history, by text, query_hash, query_id or plan handle, including a query gone from cache. For cache-wide bloat, use `plan-cache-analysis`.microsoft/microsoft-sql40
- Prevent Sql InjectionUse when writing or reviewing dynamic SQL on Azure SQL Database for injection: sp_executesql vs EXEC, dynamic ORDER BY or table names. Has verified behavior common answers miss, e.g. QUOTENAME returns NULL past 128 characters.microsoft/microsoft-sql40
- Prevent Sql InjectionUse when writing or reviewing dynamic SQL on Azure SQL Database for injection: sp_executesql vs EXEC, dynamic ORDER BY or table names. Has verified behavior common answers miss, e.g. QUOTENAME returns NULL past 128 characters.microsoft/microsoft-sql40
- Prisma Azure SqlUse when using Prisma with Azure SQL Database: schema.prisma, prisma migrate failing in Azure (P3020, shadow database), no Json type or enums, url unsupported in Prisma 7, driver adapter.microsoft/microsoft-sql40
- Prisma Azure SqlUse when using Prisma with Azure SQL Database: schema.prisma, prisma migrate failing in Azure (P3020, shadow database), no Json type or enums, url unsupported in Prisma 7, driver adapter.microsoft/microsoft-sql40
- Provision Azure Sql DbUse when creating an Azure SQL Database: a free SQL database in Azure, provision SQL for this app, give me a connection string, firewall rule, Entra-only admin, or created but nothing connects.microsoft/microsoft-sql40
- Provision Azure Sql DbUse when creating an Azure SQL Database: a free SQL database in Azure, provision SQL for this app, give me a connection string, firewall rule, Entra-only admin, or created but nothing connects.microsoft/microsoft-sql40
- Provision HyperscaleUse when choosing or moving to Hyperscale in Azure SQL Database: should I use Hyperscale, convert or move back, near 4 TB, vCores, serverless, read replicas, outgrowing the free offer.microsoft/microsoft-sql40
- Provision HyperscaleUse when choosing or moving to Hyperscale in Azure SQL Database: should I use Hyperscale, convert or move back, near 4 TB, vCores, serverless, read replicas, outgrowing the free offer.microsoft/microsoft-sql40
- Query Hint TuningUse when the user wants to try query hints on a slow SELECT: compare join, parallelism or cardinality estimation hints by estimated cost or measured runtime. For a hint-free rewrite, use `query-rewrite`.microsoft/microsoft-sql40
- Query RewriteUse when the user explicitly asks to rewrite or restructure a SQL query or predicate, e.g. make a WHERE clause SARGable, keeping results and NULL semantics. For 'make this faster', use `improve-query-performance`.microsoft/microsoft-sql40
- Query Store InvestigationUse when the user asks for top or regressed queries in Query Store: what got slower since a deploy versus a baseline, or which earlier plan to force. When Query Store is off, use `top-queries-noqds`.microsoft/microsoft-sql40
- Query Store Volatile Historical Slow Queries ComparisonUse when queries have erratic durations in Query Store, the user wants one query_id's timeline, or suspects parameter sniffing or failing forced plans. For baseline regressions, use `query-store-investigation`.microsoft/microsoft-sql40
- Rag On Azure SqlUse when building a RAG pipeline end to end on Azure SQL Database: chat with my documents, semantic search over my data, keep embeddings in sync, answers worse after switching models, other tenants' chunks returned.microsoft/microsoft-sql40
- Rag On Azure SqlUse when building a RAG pipeline end to end on Azure SQL Database: chat with my documents, semantic search over my data, keep embeddings in sync, answers worse after switching models, other tenants' chunks returned.microsoft/microsoft-sql40
- Read Execution PlanUse when reading an Azure SQL Database execution plan: what is expensive, why a scan, actual vs estimated rows, warnings, missing-index hints, getting the actual plan, a plan returned as NULL.microsoft/microsoft-sql40
- Read Execution PlanUse when reading an Azure SQL Database execution plan: what is expensive, why a scan, actual vs estimated rows, warnings, missing-index hints, getting the actual plan, a plan returned as NULL.microsoft/microsoft-sql40
- Recommend Migration PathPreliminary SQL Server to Azure migration disposition and recommended assessment path. Runs a short guided interview, then applies a source-verified knowledge base to pre-select candidate targets (SQL VM, AVS, SQL MI, SQL DB, Fabric SQL DB, Arc SQL MI, container or Arc in-place), migration methods (MI Link, LRS, backup/restore, DAG/AG, modern DMS, transactional replication, BACPAC, Fabric Migration Assistant), blockers, evidence gaps, cost levers and Microsoft program fit. Trigger when the user microsoft/microsoft-sql40
- Recommend Sku SizingCalculate configuration-based or performance-based Azure SQL SKU recommendations after the source is explicitly confirmed local/on-premises. Ask for the sizing mode unless already selected; configuration-based is the preselected picker choice. Route unresolved sources and bare server names through run-migration-assessment.microsoft/microsoft-sql40
- Resource Usage SqlserverUse when many queries time out under load, or SQL Server or Azure SQL is slow overall and it's unclear whether CPU, memory, IO, TempDB or disk is the cause. For one slow query, use `slow-query-investigation`.microsoft/microsoft-sql40
- Resource Usage SqlserverUse when many queries time out under load, or SQL Server or Azure SQL is slow overall and it's unclear whether CPU, memory, IO, TempDB or disk is the cause. For one slow query, use `slow-query-investigation`.microsoft/microsoft-sql40
- Restore And RecoverUse when Azure SQL Database data is lost: restore to before a bad deployment, a dropped table or database, point-in-time restore, geo-restore, long-term retention, RESTORE DATABASE refused.microsoft/microsoft-sql40
- Restore And RecoverUse when Azure SQL Database data is lost: restore to before a bad deployment, a dropped table or database, point-in-time restore, geo-restore, long-term retention, RESTORE DATABASE refused.microsoft/microsoft-sql40