Microsoft Foundry is quickly becoming the engineering‑grade backbone for building, deploying, and operationalizing AI systems at scale. Unlike traditional “chatbot builders” or UI‑only agent platforms, Foundry is designed for real developers — people who care about versioning, reproducibility, security boundaries, and clean architecture.
At its core, Foundry gives you a unified place to define models, agents, tools, workflows, and evaluations, all backed by Azure’s enterprise‑grade infrastructure. But the real power shows up when you bring Foundry into Visual Studio Code, where everything becomes code‑first, scriptable, automatable, and production‑ready.
In this blog, we’ll walk through the setup steps to connect and use your Microsoft Foundry LLm models in VS Code.
Prerequistes:
- Download and install VS Code - https://code.visualstudio.com
- Set up GitHub Copilot in VS Code - https://code.visualstudio.com/docs/copilot/setup
- Create a Project for Microsoft Foundry - https://learn.microsoft.com/en-us/azure/foundry/how-to/create-projects
- Deploy Microsoft Foundry Models in the Foundry portal - https://learn.microsoft.com/en-us/azure/foundry/foundry-models/how-to/deploy-foundry-models
- Azure Resources
- AI Toolkit for Visual Studio Code
- Microsoft Foundry
- Open the Azure resources extension in VS Code, and Sign in to Azure.
- Sign in using your Microsoft account (same account used for Project creation and Model deployment in Microsoft Foundry). Complete multi-factor authentication if required.
- Choose Sign in for this app only (recommended)
- Set the Default Microsoft Foundry Project.
- VS Code should now be connected to your Azure account.
- Right Click on a project, and select Open in Foundry Toolkit Extension (a.k.a AI Toolkit)
- Open the GitHub copilot chat window, and click on the Pick model button.
- Next, click on the settings cogwheel.
- Right click on the name of model that you deployed on , click on Pin model.
- Close the 'Language models' window.
- Click on the Pick modelU button again, and select the model that you pinned earlier from the 'Language models' window.
- You should now be able to chat and interact with you Microsoft Foundry model directly from the GitHub Copilot chat window in your VS Code.
Comments
Post a Comment