BRK450 · Breakout
No cloud required: Build AI apps with SQL Server on Azure Local
Speakers: Bob Ward
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
Bob Ward explains Azure Local as cloud-consistent infrastructure on OEM hardware with connected (Azure Arc) and fully disconnected, air-gapped modes, and compares it with VMware and Windows Server. Using a fictional care transfer center app, he shows SQL Server 2025 in an Azure Local VM using vectors, in-engine RAG via REST calls to GPT models hosted by Foundry Local on AKS, PII masking, skills and endpoints stored in tables, and an append-only ledger table auditing every AI call. He also demonstrates GitHub Copilot in SSMS and the VS Code MSSQL extension running against a local Foundry Local model. The session closes with licensing for connected and disconnected modes and shows the same code running on Azure SQL Hyperscale with Microsoft Foundry.
Best for: SQL Server DBAs, data architects and developers building AI on SQL Server 2025 in regulated, sovereign or disconnected on-premises environments.
New material starts at 03:46. After the speaker intro and customer motivations, the session moves at 03:46 into what Azure Local is, including the connected and air-gapped modes.
Where to skip: Skip to 03:46; 06:52–09:54 (VMware comparison) can be skimmed. The core is the T-SQL and in-engine RAG part from 17:28 to 30:19 (vectors, briefing procedure, ledger audit), plus the GitHub Copilot with local models demos in SSMS at 30:19 and VS Code at 32:29. Licensing at 34:22 is useful for planning; the Copilot-related content is limited to about 4 minutes.
Chapters (15)
- 00:00 Recap Depth 100 · Novelty 0/3
Speaker introduction, session goals and where to get the deck and demo code
Bob Ward, Principal Architect on the Azure Data team, mentions his 33 years at Microsoft and describes customers who want to stay on-premises, modernise, bridge to Azure, or temporarily move back from Azure. He outlines the agenda: what Azure Local is, what SQL Server on Azure Local means, the options, and technical demos. The deck is at BobWardMS, and all demo code (app and SQL) is in the BobSQL repository under the examples folder (SQL Local). Questions are taken at the end and at the booth.
- 02:16 Recap Depth 100 · Novelty 0/3
Why customers look at modernising on-prem SQL Server estates
Ward describes three customer situations: modernising the on-prem estate (latest software, secure AI, easier maintenance and high availability), needing a bridge before moving to the cloud, and Azure customers (notably in Europe) wanting the ability to run the same workload on-premises if something happens. He positions Azure Local with SQL Server and Foundry Local as covering all of these options.
- 03:46 Deep dive Depth 200 · Novelty 2/3
What Azure Local is: cloud-consistent infrastructure, connected vs. air-gapped modes
Azure Local is described as cloud-consistent infrastructure deployed on OEM hardware (Lenovo, Dell, HP and others) that brings the Azure portal, CLI and Resource Manager experience on-premises. It runs VMs (including marketplace images), Azure Virtual Desktop and Azure Kubernetes Service, with AKS being the basis for running AI. Ward explains the connected mode via Azure Arc (billing, Arc services) and the newer fully disconnected, air-gapped mode where images are downloaded to a network share and deployed with Azure CLI and Resource Manager locally; some capabilities are not available disconnected.
- 06:52 Deep dive Depth 200 · Novelty 1/3
Azure Local compared with VMware and Windows Server
Ward compares three approaches: Windows Server where the customer manages everything (Admin Center, Hyper-V, AKS, RDS), VMware as a managed hypervisor platform under a Broadcom contract, and Azure Local as a fully managed infrastructure on OEM hosts with a portal-like experience inside the data center. The Azure Local OS is based on Windows Server with Hyper-V elements, but this is hidden from the user, and Azure Update Manager updates Azure Local and guest components. Migration tooling and teams exist for moving from VMware to Azure Local.
- 09:54 Deep dive Depth 300 · Novelty 1/3
Scenario: local-only care transfer center app architecture with SQL and Foundry Local
Ward introduces a fictional (non-certified) regional care transfer center where incoming patient data from paramedics must stay inside a compliance boundary, with no cloud allowed. The architecture: staff use Azure Virtual Desktop to reach a browser app, which connects to SQL Server 2025 in an Azure Local VM, and Foundry Local runs AI models on a separate GPU-backed AKS cluster; the Azure connection is for management only. The app shows an incoming patient queue, vitals and narrative, extracted signals, natural-language history search, an AI-generated receiving briefing and an audit history stored in SQL Server. The architecture diagram was built with help from GitHub Copilot.
- 14:48 Demo Depth 200 · Novelty 1/3
Tour of the Azure Local portal, SQL Server on Azure Local and Foundry Local
A recorded walkthrough shows the Azure Local portal running inside the data center: Azure Virtual Desktop, an Azure Local VM with Windows Server Datacenter and SQL Server 2025 connected via Azure Arc (enabling pay-as-you-go licensing), and an AKS cluster hosting an embeddings model and a chat completions model. Ward stresses that SQL Server on Azure Local is the same engine, validated with Storage Spaces Direct and Azure Local HA, and compatible with VMware or Windows Server deployments. Foundry Local brings Microsoft Foundry capabilities, notably AI model hosting on AKS exposed as endpoints, to Azure Local, powered by Azure Arc.
- 17:28 Deep dive Depth 300 · Novelty 1/3
AI inside the SQL Server 2025 engine: vectors, in-engine RAG, REST and security
Ward explains vector support in SQL Server 2025 as similarity search without exact keywords, exposed to the app via stored procedures, and a RAG pattern executed inside the engine that sends patient data and hospital policies to a GPT model in Foundry Local via REST. SQL Server security controls AI usage, model communication is encrypted even on-prem, models are isolated in Foundry Local, and Ledger provides an immutable record of AI operations. Embeddings are generated offline with a Nemotron model on GPU, while searching runs on CPU in the SQL Server VM. The app searches history with a natural phrase and returns matches like chest pressure.
- 20:17 Deep dive Depth 400 · Novelty 1/3
T-SQL walkthrough: JSON type, regex signals, model definition, vector type and index
Ward shows the T-SQL behind the app: a native JSON type for app data and regular expression functions to extract signals from the paramedic narrative. Vector search setup consists of a model definition pointing to the Foundry Local URL, a table with the vector data type, an INSERT…SELECT that calls the model to generate embeddings, and a vector index for fast search. The search stored procedure generates an embedding for the user prompt and uses vector search to return the most similar history entries.
- 22:35 Demo Depth 400 · Novelty 1/3
Receiving briefing: in-engine RAG with skills and endpoints stored in tables
The briefing stored procedure takes only a patient ID, runs the vector search, extracts signals and vitals, masks PII, and builds prompts for a GPT chat completion model in Foundry Local, returning JSON to the app. Skills (model instructions) are stored as versioned JSON in a table and endpoints in another table, so the model can be switched dynamically. A system stored procedure calls the REST endpoint, so GPT does not know it is SQL Server and the app does not know GPT is used. Ward notes the clinician decides whether to follow the recommendation.
- 26:43 Demo Depth 300 · Novelty 1/3
Auditing AI calls with an append-only SQL ledger table
Every AI interaction (skill, patient data, prompts and model response as JSON) is inserted into a ledger table that is tamper-evident and, as append-only, cannot be modified even by DBAs. The app's Audit view shows the raw request and response JSON. The table is created with a standard CREATE TABLE plus WITH LEDGER APPEND_ONLY, with columns for JSON, timestamp, model and return codes, and the insert is transactional within the briefing procedure. Ward notes GitHub Copilot helped him write the prompts, making SQL professionals AI programmers.
- 30:19 Demo Depth 300 · Novelty 2/3
SSMS with GitHub Copilot on a Foundry Local model: deadlock analysis
Ward shows SQL Server Management Studio with GitHub Copilot configured in agent (autopilot) mode to use a GPT model hosted in Foundry Local instead of cloud models. Asked to analyse a deadlock from the always-on System Health extended events session, it explains two tables updated in reverse order and supplies a query to retrieve the deadlock graph XML, which SSMS then visualises. He states the Management Studio capability was just launched.
- 32:29 Demo Depth 300 · Novelty 2/3
VS Code MSSQL extension: chat with your schema via GitHub Copilot and a local model
In Visual Studio Code running inside Azure Local, the MSSQL extension's Visualize Schema generates a diagram of all tables, and a Copilot button builds a prompt for GitHub Copilot chat using schema designer tools. Using the local GPT model in Foundry Local, Copilot summarises the schema and, on request, details the AI-related schema including vector types and foreign keys. Ward concludes that SQL Server, SSMS and VS Code together form a complete local environment with private models.
- 34:22 Deep dive Depth 200 · Novelty 1/3
Disconnected architecture and licensing for Azure Local, Foundry Local and SQL Server
The same solution can run fully disconnected, with Azure portal, Resource Manager and CLI provided locally through Arc, though not everything is available disconnected. In connected mode Azure Local is billed per core through Azure, waived with Azure Hybrid Benefit for Windows Server Datacenter with Software Assurance, but requiring connection to Azure every 30 days. Foundry Local's AKS is free, many models are free open-source, and some catalog models carry their own licence. SQL Server uses existing licences or Arc-enabled pay-as-you-go; disconnected mode has no hybrid benefit and is billed on physical cores.
- 38:20 Deep dive Depth 200 · Novelty 1/3
Same app on Azure SQL Hyperscale and Microsoft Foundry; customer references
Ward shows the solution is compatible with Azure: the same code runs on Azure SQL Hyperscale with the app in Azure App Service and the model endpoint in Microsoft Foundry, changing only the skill and endpoint rows in tables. This lets customers move to the cloud or move temporarily back to Azure Local. He points to customer stories on the Azure Local documentation page and from OEM partners and notes increasing interest.
- 40:04 Closing Depth 100 · Novelty 0/3
Resources slide and wrap-up
Ward points to the clickable resources slide in the deck at BobWardMS with documentation links for Azure Local, SQL Server, Foundry Local, connected setup and building the AI solution. He recaps the session goals: what Azure Local is, how SQL Server works on it, and modernising with secure in-engine AI on-premises, connected, cloud-bound or disconnected, and invites questions.
Announcements (2)
-
Azure Local disconnected (air-gapped) operations
Runs Azure Local fully disconnected, with images downloaded to a local network share and deployment via local Azure CLI and Resource Manager enabled by Azure Arc.
Speaker’s quote (at 05:57)
„That's the connected scenario, but new is this air-gap scenario, totally disconnected.“
-
GitHub Copilot in SQL Server Management Studio with local Foundry Local models
Lets GitHub Copilot in SSMS use a model hosted in Foundry Local instead of cloud AI models.
Speaker’s quote (at 30:44)
„You can, and I'll show you how. So first of all, we just launched this for Management Studio.“
Demos (6)
-
Shows infrastructure administrators what the locally hosted Azure portal looks like for the care transfer solution components.
Steps (4)
- Open the Azure Local portal running inside the data center in a browser.
- Open the Azure Virtual Desktop resource deployed on Azure Local.
- Open the Azure Local VM (marked with the Azure Local VM icon) running Windows Server Datacenter and SQL Server 2025, connected via Azure Arc.
- Open the Azure Kubernetes Service cluster hosting the embeddings model and the chat completions model for Foundry Local.
Prerequisites: Azure Local deployed on OEM hardware, Azure Arc connection, an AKS cluster with GPUs for the models; demo code is available in the BobSQL repository.
-
Clinical staff search a patient's history in natural language without knowing the exact keywords.
Steps (4)
- Generate embeddings offline for the patient history text with the Nemotron model in Foundry Local (GPU).
- In the app, type a natural-language description into the history search box.
- The app calls a stored procedure that performs vector search on CPU inside SQL Server.
- Review results such as chest pressure or chest discomfort.
Prerequisites: SQL Server 2025, an embeddings model hosted in Foundry Local on GPU-backed AKS.
-
Generate an AI receiving briefing with treatment recommendations for an incoming patient entirely inside SQL Server using a local GPT model.
Steps (6)
- In the app, select the incoming patient and check the box to include patient history.
- Click Generate briefing; the app calls the briefing stored procedure with the patient ID.
- The procedure looks up patient data, calls the vector search procedure and extracts signals.
- The invoke transfer skill procedure reads the versioned skill JSON and the model endpoint from their tables.
- It builds the prompts and calls the system REST stored procedure against the GPT endpoint in Foundry Local.
- The JSON recommendation is returned to the app for review by a clinician.
Prerequisites: SQL Server 2025 with REST endpoint invocation, a GPT chat completion model in Foundry Local, skill and endpoint tables; code in the BobSQL repository.
-
Provide an immutable audit trail of all AI model interactions for compliance reviews.
Steps (4)
- Create the audit table with CREATE TABLE … WITH (LEDGER = ON, APPEND_ONLY = ON) and JSON, date-time, model and return code columns.
- In the briefing stored procedure, insert the request and response JSON into the ledger table as part of the transaction.
- In the app, open the Audit view to list recorded interactions.
- Click Request JSON to inspect the skill, patient data and prompts sent, and view the model response.
Prerequisites: SQL Server with ledger table support; code in the BobSQL repository.
-
A DBA in an isolated environment analyses a deadlock using GitHub Copilot backed by a local model.
Steps (5)
- In SSMS (running in a VM or virtual desktop in the Azure Local environment), configure GitHub Copilot to use the GPT model deployed in Foundry Local in agent mode.
- Ask Copilot to analyse the deadlock recorded by the System Health session.
- Review the explanation of tables locked in reverse order.
- Run the query Copilot provides to retrieve the deadlock graph XML.
- Open the XML to visualise the deadlock graph in SSMS.
Prerequisites: SSMS with GitHub Copilot, a GPT model deployed in Foundry Local reachable from the client.
-
Developers explore and understand a database schema, including vector usage, with GitHub Copilot backed by a private local model.
Steps (4)
- In VS Code with the MSSQL extension (in a developer VM inside Azure Local), right-click the database and choose Visualize Schema.
- Click the Copilot button in the schema designer to generate a prompt in the Copilot chat window.
- Review the default schema summary produced with the local GPT model.
- Ask for more details about the AI schema and review the explanation of vector types and foreign key relationships.
Prerequisites: Visual Studio Code with the MSSQL extension and GitHub Copilot, a GPT model in Foundry Local.