Add Azure SQL MCP quickstart with azd deployment templates#1485
Conversation
…l-mcp`. The sample deploys a hosted `mcp-sql` server in Azure Connector Namespace backed by Azure SQL Database Adds a new Azure SQL MCP sample under `samples/applications/azure-sql-mcp`. The sample deploys a hosted `mcp-sql` server in Azure Connector Namespace backed by Azure SQL Database, using `azd` and Bicep. ### Whatâ��s included - Provisions Azure SQL Database with a seeded `dbo.BlogPosts` table - Deploys Azure Connector Namespace and a hosted SQL MCP server - Configures Data API Builder through the included `dab-config.json` - Passes SQL and Application Insights connection strings as hosted MCP configuration values - Grants the Connector Namespace managed identity access to the SQL database - Adds Application Insights and Log Analytics for telemetry - Includes post-provision scripts for database seeding, firewall setup, and managed identity grants - Provides README instructions for deployment, VS Code MCP setup, Azure Portal inspection, cleanup, and related docs
fc25edb to
c251425
Compare
Testing feedback: 3 fixes needed for
|
|
@lilyjma Pushed an update addressing the comments. Testing on windows looks good for me. |
|
Follow-up on issue #2 (non-executable scripts) — who it affects Just to clarify the impact, since it's easy to miss: this one specifically hits macOS/Linux users, and it blocks their first Git stores the executable bit in the commit. The scripts are currently committed as Until it's fixed in the PR, every macOS/Linux user would have to manually run Windows users are unaffected (azd runs the I re-tested against the latest PR head: with the scripts at |
The pre-/post-provision .sh scripts were committed as 100644, causing azd to fail with 'Permission denied' (exit 126) when invoking them directly. Marking them 100755 lets users run 'azd up' without a manual chmod. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
LGTM. Approved. |
croblesm
left a comment
There was a problem hiding this comment.
Please go over the recommendations. Feel free to ping me if you have questions.
- Rename title to 'Hosted MCP in Connector Namespace - Azure SQL Database' - Rewrite intro to describe what the sample does first, then the tech - Add VS Code + GitHub Copilot to prerequisites - Add cross-platform deployment note (azd works on Windows/macOS/Linux) - Add 'Try it out' section with example Copilot Chat prompts - Replace ASCII architecture diagram with Mermaid - Fix Azure service names: 'Azure SQL Database logical server', 'Microsoft Entra ID', 'Data API builder' (lowercase b) - Add documentation links for user-assigned MI and VS Code MCP setup - Clarify seeding mechanism (post-provision SQL script) - Update deploy.ps1 synopsis to note PowerShell requirement and cross-platform alternative via azd Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Summary
Adds a new Azure SQL MCP sample under
samples/applications/azure-sql-mcp. The sample deploys a hostedmcp-sqlserver in Azure Connector Namespace backed by Azure SQL Database, usingazdand Bicep.https://learn.microsoft.com/en-us/azure/logic-apps/connector-namespace/hosted-mcp-quickstart?pivots=sql
What's included
dbo.BlogPoststabledab-config.jsonValidation