Lesson 2 of 2 Using Models in the Foundry Portal

Deploying a Model and Testing It in the Playground

This lesson explains the fastest way to evaluate a model for a task: deploy it in the Foundry portal and try it in the playground, using the settings that process exposes.

Learning outcomes

After completing this lesson, you will be able to:

  • Deploy a model from the model catalog.
  • Describe the areas of the chat playground.
  • Identify the other playgrounds in the portal.
  • Reproduce playground behaviour in code.

Deploying from the catalog

In the portal, open the model catalog, filter or search for a model and open its model card to confirm its capabilities. Selecting Deploy opens the deployment settings: the deployment name (which applications will use), the deployment type such as Global Standard or Data Zone Standard, the model version and upgrade policy, the tokens-per-minute rate limit and the guardrail to apply. After deployment, the model appears in the project's list of deployments with its status and endpoint.

Put in order

Deploy and try a model

Exam skills 2.1.2

Put the steps for deploying a model in the Foundry portal and trying it in order.

Log in to try this activity Interactive activities are free with an account.

The chat playground

Opening the deployment in the playground starts a chat. The playground has three main areas. The instructions (system prompt) box sets the model's role and rules for the whole chat. The chat pane is where you type user prompts and read responses; earlier turns are sent with each new prompt so the model keeps context. The parameters panel exposes settings such as temperature, top_p and maximum output tokens, depending on what the model supports.

You can attach images when the model is multimodal, clear the chat to start again and compare models or settings side by side. When the prompt and settings work, the playground's code view shows sample code in Python and other languages that reproduces the configuration, using the project endpoint and the deployment name.

Match the pairs

Inside the chat playground

Exam skills 2.1.2

Match each part of the chat playground with what it does.

Log in to try this activity Interactive activities are free with an account.

Other playgrounds

The portal has playgrounds for other capabilities, each with the same pattern of trying a feature before coding. The following list summarizes the ones relevant to this exam.

  • Agents playground: test an agent with its instructions and tools.
  • Images playground: generate images with an image model and adjust size and quality.
  • Speech playgrounds: try speech to text, text to speech and Voice Live.
  • Language playground: try Azure Language features such as sentiment and entity recognition.
  • Content Understanding: analyze sample or uploaded files with prebuilt or custom analyzers.
Sort into groups

Choose the playground

Exam skills 2.1.2

Choose the Foundry portal playground for each thing you want to try.

Log in to try this activity Interactive activities are free with an account.
Worked example

From playground to code

A developer tested a deployment named support-chat in the playground with instructions and a temperature of 0.2 and is happy with the results. What is the quickest way to reproduce the behaviour in a Python application?

Open the playground's code view and copy the sample, which already contains the project endpoint, the deployment name, the instructions and the parameter values. The application must pass the deployment name support-chat as the model; using the catalog model name instead would fail unless a deployment with that name exists.

Check yourself

Which choices are made when deploying a model from the catalog?

Show answer

The deployment name, deployment type, model version and rate limit.

Exam Tips

Remember for the exam

  • Deploy from the model catalog, choosing deployment name, type, version and rate limit.
  • The playground has instructions, chat and parameters; the code view reproduces the settings.
  • Applications refer to the deployment name.