Getting Started with Azure AI Foundry
Welcome to your first lesson with Azure AI Foundry! In this tutorial, we’ll guide you through creating your first AI project and deploying a simple chat application.What you’ll accomplish
By the end of this tutorial, you will have:- Created an Azure AI Foundry hub and project
- Deployed your first AI model
- Built a simple chat interface
- Tested your application with real conversations
Before you begin
You’ll need:- An active Azure subscription
- Basic familiarity with web applications
- 30 minutes of focused time
This tutorial is designed for complete beginners. Follow each step carefully - we’ll explain what’s happening as we go.
Step 1: Create your Azure AI Foundry hub
Let’s start by setting up your workspace in Azure.- Navigate to Azure AI Foundry portal
- Click “Create new hub”
-
Fill in these details:
- Name:
my-first-ai-hub - Subscription: Select your Azure subscription
- Resource group: Create new →
rg-ai-foundry-tutorial - Location: Choose a region close to you
- Name:
- Click “Review + create”
Notice how the portal shows you the deployment progress. This is your first glimpse into Azure’s resource management.
Step 2: Create your first project
Once your hub is ready, let’s create a project within it.- From your hub dashboard, click ”+ New project”
-
Enter these details:
- Project name:
chat-app-tutorial - Description:
My first AI chat application
- Project name:
- Click “Create project”
- Models: Where you’ll find and deploy AI models
- Deployments: Your active model deployments
- Playground: For testing models interactively
Step 3: Deploy a chat model
Now let’s deploy a model that can have conversations.- Click on “Models” in the left navigation
-
Search for
gpt-4o-mini - Click on the model card
- Click “Deploy”
-
Use these settings:
- Deployment name:
chat-model-basic - Model version: Use the latest version
- Pricing tier: Standard
- Deployment name:
- Click “Deploy”
Watch the deployment logs - they show you exactly what Azure is setting up for your model.
Step 4: Test your model in the playground
Let’s verify your model works by having a quick conversation.- Go to “Playground” → “Chat”
- Select your
chat-model-basicdeployment - Type this message:
- Press Enter
Step 5: Build a simple web interface
Now let’s create a basic web interface for your chat model.- In your project, go to “Deployments”
-
Click on your
chat-model-basicdeployment - Note the Endpoint URL and Key - you’ll need these
- Create a simple HTML file (we’ll walk through this together):
Step 6: Test your application
- Save the HTML file as
chat-app.html - Replace
YOUR_ENDPOINT_URLandYOUR_API_KEYwith your actual values - Open the file in your web browser
- Try having a conversation!
What you’ve learned
Congratulations! You’ve successfully:- ✅ Created an Azure AI Foundry hub and project
- ✅ Deployed your first AI model
- ✅ Built and tested a chat interface
- ✅ Connected a web application to your AI model
Next steps
Now that you have the basics, you’re ready to explore more:- Build a More Advanced Chat App - Add memory, personality, and better UI
- Explore Different Models - Try image generation, embeddings, and specialized models
- Deploy to Production - Learn how to host your app securely
Troubleshooting
Model deployment failed?- Check that your subscription has available quota
- Try a different region if capacity is limited
- Verify your endpoint URL and API key are correct
- Check the browser console for error messages
- Ensure your model deployment is in “Succeeded” status
Remember: This tutorial focused on the concrete steps to get you started. Don’t worry about understanding every detail yet - that understanding will come naturally as you continue building and experimenting.

