Your agent is only as good as the data behind it. Join us to build a working agent that retrieves trusted context from operational PostgreSQL data in Azure HorizonDB. Create an AI pipeline, generate embeddings, combine vector and keyword retrieval, apply filters, and connect results to an agent workflow. Leave with a reusable architecture and working implementation.
Sign in to your lab VM with the following credentials:
Username: ++@lab.VirtualMachine(Win11-Pro-Base).Username++
Password: +++@lab.VirtualMachine(Win11-Pro-Base).Password+++
- Part 0 - Sign in to Azure and review your Azure resources
- Part 1 - Connect to your Azure HorizonDB database using VS Code Extension for PostgreSQL
- Parts 2 and 3 - Data setup and agentic app development
- On your own
In this section, we'll open Microsoft Edge in the lab environment and sign in to the Azure portal to review the resources we'll use in this lab.
Note
If you see a sign-in pop-up, select Not now.
-
To sign in to the Azure portal, enter the following credentials:
- Username: +++@lab.CloudPortalCredential(User1).Username+++
- TAP: +++@lab.CloudPortalCredential(User1).TAP+++
Note
This lab uses a Temporary Access Pass (TAP) instead of a password to sign in to Azure. If you need to access this TAP code again, use the Resources tab at the top of these lab instructions.
-
Once you've signed in to the Azure portal, select View all resources.
-
We'll be using these resources during this lab:
- A Microsoft Foundry instance
- An Azure HorizonDB database instance
Your HorizonDB resource has been provisioned along with a parameter group containing the server parameter configuration for your PostgreSQL extensions and the associated allowlist details. The parameter group is associated with the cluster's compute pool.
Parameter groups are a new concept in HorizonDB. They act as containers for PostgreSQL configuration values that can be applied to one or more compute pools. Instead of managing configuration settings for each pool individually, you can define them in a parameter group and associate that group with multiple pools to ensure consistency across your environment. This lab has only one cluster and one pool, but we still need to confirm that the parameter group has been enabled.
Parameter groups are first-class resources in Azure and are surfaced within the specific resource group and subscription defined in their resource identifier.
-
Select the HorizonDB instance in the portal.
-
Expand Settings in the left navigation and select Parameters.
-
Confirm that your parameter group has been enabled for your HorizonDB instance.
-
Go to your desktop and double-click the VS Code icon to open VS Code on your lab VM.
-
Select the VS Code Extension for PostgreSQL icon in the activity bar to open the extension.
-
Most connection details have been populated for you. Select the server connection and, when prompted, enter your lab VM Password: +++@lab.VirtualMachine(Win11-Pro-Base).Password+++ to connect to your HorizonDB instance.
Note
During lab creation, we added a firewall rule to allow connections from the lab environment to your HorizonDB instance. When setting up your own environment, configure firewall rules to allow only trusted IP addresses to reach your HorizonDB resource.
Congratulations, you just signed in to your Azure HorizonDB database using the VS Code Extension for PostgreSQL!
-
Now that you've created a connection, let's explore the VS Code Extension for PostgreSQL and your HorizonDB database. Right-click your Ignite Lab HorizonDB connection and select Dashboard from the context menu.
-
When the dashboard loads, review the performance details, including wait events, disk I/O, transactions, and storage.
-
Expand the Databases node under the Ignite Lab HorizonDB connection. Right-click the postgres database and select New Query from the context menu.
-
Copy and paste the following SQL into the query editor, then select the green play arrow at the top right to execute it. This query demonstrates how to run queries and view results using the VS Code Extension for PostgreSQL.
During this lab, most SQL queries will be run programmatically using Python and the
psycopgpackage. You'll also run a few queries using the extension's query editor.SELECT current_database() AS database_name, current_user AS connected_user, now() AS server_time, version() AS postgres_version;
For the remainder of the lab, you'll work through two Python Jupyter notebooks in VS Code. Each notebook contains the instructions for that part of the lab. The first notebook covers data setup, and the second covers agentic application development.
Both notebooks are located in the instructions folder under C:\Users\LabUsers\source\repos\ignite26-LAB692:
An optional third notebook helps you verify server settings and configuration:
-
In VS Code, select the Explorer icon in the activity bar to return to the Explorer view.
-
The
C:\Users\LabUsers\source\repos\ignite26-LAB692folder should already be open. If not, select File > Open Folder... and chooseC:\Users\LabUsers\source\repos\ignite26-LAB692to open it in your workspace. -
Expand the instructions folder and double-click 1-data-setup.ipynb.
-
Select a Python kernel to execute the code cells in the notebook.
-
Once you've selected the Python 3.11.9 kernel, you can begin running the code cells in your notebooks.
-
Read each section of the notebook and follow its instructions.
Important
Continue the lab by following the instructions in Notebook 1 in VS Code.
If you're learning at your own pace:
- Clone this repository.
- Set up your environment using infra/0.0-deploy-hdb.bicep, then execute the PowerShell scripts in the
infrafolder in numeric order. - Follow the instructions above to open the Jupyter notebooks.
By the end of this session, you will be able to:
- Use HorizonDB's integrated AI model and AI pipeline features.
- Develop an agentic AI platform.
- Combine HorizonDB's AI capabilities with modern agentic application development to deploy a working proof of concept.
- HorizonDB
- HorizonDB parameter groups
- HorizonDB native extensions
- Microsoft Foundry with GPT and embedding models
- Modern AI development libraries, including mem0
Pick your next step based on your learning style:
| Resource | What you'll get |
|---|---|
| Ignite 2026 Next Steps | Additional session repos and materials from Microsoft Ignite 2026 |
| Microsoft AI Skills Navigator | Discover AI skills, learning paths, and resources for your next step |
| Microsoft Learn | Official documentation and guided learning paths on these topics |
| Microsoft Foundry Community | Connect with other learners and experts in our Discord community |
For more information, visit the Learn MCP Server repo.
Jared Meade 📢 |
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos is subject to the respective third party's policies.














