← Back to Tutorials

3. Foundry Primer

Generative AI & Agents

Generative AI models can produce text, code, images, and audio. Agents extend this by adding tool use, memory, and autonomous decision-making. Foundry provides a managed service for both.

SDK Overview

SDKPackagePurpose
Projectsazure-ai-projectsAgent lifecycle, tools, memory
Inferenceazure-ai-inferenceLLM chat completions, embeddings
Searchazure-search-documentsVector + keyword search
Identityazure-identityAuthentication

Hub vs Standalone Projects

Deploying Models in Azure

  1. Open the Model Catalog in Foundry
  2. Select a model (e.g., gpt-4o, Llama-3.1-70b)
  3. Choose deployment type (Global Standard, Provisioned Managed)
  4. Configure capacity and content filters
  5. Deploy and get the endpoint URL + key

Demo Repositories

Microsoft provides starter repos on GitHub:

✏️ Exercise: Deploy a gpt-4o model from the Foundry model catalog. Note the endpoint URL and authentication method. Write a Python script that sends a test prompt to the endpoint.