Concept 2 of 16 · 11 min read

Where you work in Microsoft Foundry

How to work in Foundry: the portal, the SDK, the Azure Developer CLI, and the VS Code toolkit, with a first-hour setup from project to agent.

Hello, I am Alex, your Article Narrator. I can walk you through this article, so you can follow it with me in narration.

Where you work in Foundry

Microsoft Foundry is not a single screen. It is a set of places to work—portal pages, playgrounds, SDKs, and editor tools—where you create projects, deploy models, build agents, and later watch many agents across your organization. This concept maps those places so you know where to click or which tool to open.

Concept 1 introduced the two-level layout. A Foundry resource is the top-level account where admins set networking, security, and shared model deployments. A Foundry project is the workspace where your team builds: agents, uploaded files, and evaluations live there. Most everyday tasks happen inside a project; a few older features still apply to the whole resource. Switch projects with the project name dropdown in the upper left of the Microsoft Foundry portal.

Your subscription and region still matter. Which models you can deploy, which deployment options you see, and whether Agents or evaluations are offered can differ by Azure region, so check before you create resources. Storage, Key Vault, and Azure AI Search connect as separate Azure services with their own security rules.

Four ways to build and test

You can stay in the browser, write code that calls web APIs, scaffold from a terminal, or work inside Visual Studio Code. Teams mix these every day; none replaces the others.

Foundry build surfaces
SurfaceBest forTypical starting point
Microsoft Foundry portalExploring models, configuring prompt agents, running evaluations, and managing resources without a local setup.Agents playground to try a prompt agent.
Microsoft Foundry SDKs or REST APIApplications that call agents, automation, and release pipelines. SDKs ship for Python, C#, JavaScript, and Java.Foundry SDK quickstart after you copy the project endpoint.
Azure Developer CLI (azd) extensionsScaffolding, running, testing, and deploying agent projects from a command line.Develop agents with azd documentation.
Visual Studio Code extension (Foundry Toolkit)Day-to-day agent coding, debugging, and project navigation inside VS Code.Install the Microsoft Foundry Toolkit for VS Code.

Coding assistants such as GitHub Copilot can also work with Foundry through the Foundry Skill and, for tool access, the Foundry MCP Server. Use these after you understand the portal and how projects are organized.

Choosing a surface
If you need to…Start here
Compare prompts or models interactively before writing codeModel playground or Agents playground in the portal
Ship an agent inside your own app with version controlSDK or REST with the project endpoint from the welcome screen
Generate a hosted agent repo and deploy from the terminalAzure Developer CLI (azd)
Debug agent code beside your repositoryVS Code with the Foundry Toolkit, or Open in VS Code for the Web from a playground Code tab

Inside the Microsoft Foundry portal

The portal is the website where you discover models, deploy them, try them in playgrounds, save agent versions, run evaluations, and manage who has access. When you deploy a model in the portal, you land in that model's playground for interactive testing.

Use the Manage toolbar button for the project and parent Foundry resource you already selected. From Manage you can review Project details (resource ID, endpoint, subscription, location), open Resource details in the Azure portal, add or remove users on the Users tab, attach connected resources, add sibling projects, and configure quota or an AI gateway for the resource. Manage applies to your current project; switch projects first if you need another one.

Select Operate on the upper-right toolbar to see agents, models, and tools across projects in your subscription: inventory, monitoring, compliance, and security signals. These fleet-wide views are available in the portal today. Features marked preview in Microsoft documentation follow supplemental preview terms and are not recommended for production workloads.

Playgrounds in the portal
PlaygroundBest forWhat you can validate
Model playgroundPrompt engineering, model comparison, parameter tuningSystem prompts, tools such as web search or code interpreter, guardrails, and side-by-side model comparison (up to three models)
Agents playgroundMulti-turn agent prototyping with tools and knowledgeInstructions, tools, knowledge sources, memory, tracing, and evaluation through AgentOps
Images playgroundImage generation and editing flowsText-to-image prompts, inpainting, and model comparison for image models such as gpt-image-1
Video playground (preview)Generative video workflows with models such as Azure OpenAI Sora-2Prompt iteration and grid comparison; generated videos are retained for 24 hours unless you download them

Evaluations in the Agents playground are enabled by default for all Foundry projects and are included in consumption-based billing. To turn them off, select metrics in the upper right of the Agents playground and clear all evaluators.

Example: shop support assistant

Imagine an online shop called RiverMarket. You want a prompt agent that answers order-status questions, uses a friendly tone, and refuses to invent tracking numbers.

You would create a Foundry project for RiverMarket, deploy a chat model, and open the Agents playground. You write instructions that define how the agent should sound, which facts it may use, and that it must ask for an order ID when information is missing. You test a back-and-forth chat in the playground, turn on tracing to confirm behavior, then save a version once the answers look reliable.

When RiverMarket's web app needs the same agent, you copy the project endpoint from the welcome screen and follow the SDK quickstart: create or update the agent by name, open a conversation, and send customer messages through the Responses API. Merchandisers keep tuning instructions in the portal; the SDK carries the stable agent name into production code.

Your first hour: project to agent

These steps follow the agent development lifecycle and assume you have an Azure subscription. You need a Foundry project; if you do not yet have a Foundry resource, the portal creates one when you create the project. Pick a resource group and a location (region) for the new resources.

  • Step 1, create a project. In the Microsoft Foundry portal, create a project. Choose an existing resource group or accept a new one, and select a location. A dedicated resource group makes it easier to delete the project and its Azure resources later.
  • Step 2, deploy a model. Open the model catalog, choose a model, and deploy it—for example with Deploy and Default settings. Write down the deployment name because calls to the model use that name, not the catalog model name. Wait until deployment status shows Succeeded.
  • Step 3, test in the model playground. After deployment the portal opens the model playground. Send a simple message and check the reply, latency, and token usage before you add tools.
  • Step 4, create a prompt agent. Open the Agents playground (Build, then Agents, then Create agent). Name the agent, pick your deployed model, and write instructions that state the task, tone, and how to handle missing information.
  • Step 5, test follow-up turns. Ask a question, then ask a related follow-up in the same chat. If the second answer uses context from the first, the session is keeping conversation history.
  • Step 6, call the agent from code. Copy the project endpoint from the welcome screen. Follow the SDK quickstart to create or update the agent, sign in with Microsoft Entra (for example az login on your machine for local SDK runs), and send messages through a conversation.

Each time you save an agent definition from code or the portal, Foundry stores a new version that cannot be edited in place. You can compare settings, chat output, or saved definitions between versions and roll back, which matters before you publish an agent application later in the course.

You can try unsaved changes in the Agents playground, but that work disappears if you leave the portal. Save a version before you run full evaluations or depend on conversation history outside the playground.

Who can do what

Who can open which pages is set with Azure roles—named permission sets you assign on a Foundry resource, a project, or a single agent. Setup work such as creating deployments or projects is separate from everyday building inside a project (agents, evaluations, and file uploads).

Common Foundry roles
RoleWhere it usually appliesWhat it allows
Foundry UserFoundry resource and projectBuild and test agents inside a project—the usual least-privilege role for developers.
Reader (Azure built-in)Foundry resourceView information about the resource without changing it. Some organizations also assign Foundry User on specific projects.
Foundry Project ManagerFoundry resourceCreate and manage projects, build in them, and give teammates the Foundry User role.
Foundry Account OwnerFoundry resourceManage the resource, deploy models, and create shared connections. Account owners cannot build inside projects until they also receive Foundry User.

When you create a project through the portal, Foundry can automatically give Foundry User to your sign-in account and to the project's system identity if you are allowed to assign roles. Do not use the Azure AI Developer role for Foundry project work—it applies to Machine Learning workspaces and Foundry hubs, not Foundry projects. If a project is missing or evaluations fail to start, check role assignments before you change models or regions.

Common mistakes and what to do next

  • Calling a model by its catalog name instead of the deployment name you chose during Deploy. Requests must use the deployment name.
  • Selecting a model that is not available in your Foundry resource region. If a model is missing from the deployment list, check regional availability for that model.
  • Skipping permission checks. Without Foundry User (and any Reader pairing your organization requires), you cannot build or evaluate in the project.
  • Assuming playground use has no cost. Model inference, AgentOps evaluations, and other attached services bill through consumption-based pricing.
  • Leaving the portal with unsaved agent changes. Save a version before you expect history, monitoring, or full evaluations to reflect your latest instructions.
  • Trying to configure fully private deployments only in the portal UI. Some network-isolated scenarios require the SDK or CLI instead of the portal.

Concept 3 connects these places to capability families—models, agents, tools, observability, and governance—so you can see how portal pages and SDK calls fit one map. Open that concept when you are comfortable creating a project and a first agent.

Go deeper

Where each role starts

Hover over a card, or tab to it. On a touch screen, tap a card to open its bullets. Find the card that matches your job, then follow its starting link.

  • Full Stack Developer

  • Data Engineer

  • AI Engineer

  • Security and Governance Lead

  • Business Owner

Sources for every lesson are listed at the end of Up-Skill with Microsoft Foundry.