Skip to content

hatasaki/hosted-agent-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft Foundry Hosted Agent Workshop

This repository contains a starter template for building an Microsoft Foundry that hosts AI agents using the Microsoft Foundry Hosted Agent Service.

Getting Started

Clone this repository to your local machine using the following command:

git clone https://github.com/hatasaki/hosted-agent-workshop.git
cd hosted-agent-workshop

Prerequisites

  • Install azd
    • Windows: winget install microsoft.azd
    • Linux: curl -fsSL https://aka.ms/install-azd.sh | bash
    • MacOS: brew tap azure/azd && brew install azd

Quickstart

  1. Create new directory and navigate into it:

    mkdir my-hosted-agent
    cd my-hosted-agent
  2. Bring down the template code:

    azd init -t https://github.com/Azure-Samples/azd-ai-starter-basic
    • input your unique project name when prompted. Ex. <username>-hosted-agent

    This will perform a git clone

  3. Sign into your Azure account:

    azd auth login
  4. Download a sample agent definition:

    azd ai agent init -m ../msft-docs-agent/agent.yaml
  • install agent extension if prompted.
  • select your subscription when prompted.
  • select North Central US region.
  • select GlobalStandard for mode SKU.
  • deployment name of model cab be left as default. (gpt-4o-mini)
  • container memory, CPU, and replicas can be left as default. (2GB, 1 CPU, 1 min replica and 3 max replicas)
  1. Provision Microsoft Foundry and the sample agent:

    azd up
  2. Open Microsoft Foundry portal and test the agent

  • Note: azd up creates new Microsoft Foundry account. Navigate to your Microsoft Foundry (should be listed under resource group rg-<username>-hosted-agent you specified in step 1).

Resource Clean-up

  • Deleting Resources: To delete all associated resources and shut down the application, execute the following command:

    azd down

    Please note that this process may take up to 20 minutes to complete.

⚠️ Alternatively, you can delete the resource group directly from the Azure Portal to clean up resources.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •