Quickstart: Get Started with Azure AI
This quickstart guides you through creating your first Azure AI project and deploying an intelligent application. You’ll set up the necessary resources and run your first AI workload in under 15 minutes.Prerequisites
Before you begin, ensure you have:- An Azure account with an active subscription (Create a free account)
- Basic familiarity with the Azure portal or command line tools
- A code editor (VS Code recommended)
Choose Your Path
Select the Azure AI service that best fits your needs:- Microsoft Foundry
- Azure Machine Learning
- Azure AI Search
Best for building AI agents, chatbots, and generative AI applications.
Option 1: Microsoft Foundry Quickstart
Create a Foundry Resource
Navigate to the Microsoft Foundry portal and sign in with your Azure account.Click Create workspace and provide:
- Workspace name: A unique identifier for your project
- Subscription: Your Azure subscription
- Resource group: Create new or use existing
- Region: Choose the region closest to you
Create Your First Agent
Once your workspace is ready:
- Select Agents from the left navigation
- Click + New agent
- Choose a model (e.g., GPT-4)
- Add custom instructions for your agent’s behavior
- Configure tools if needed (code interpreter, functions, etc.)
Deploy with Python SDK
Install the Microsoft Foundry SDK:The Microsoft Foundry API provides a consistent contract for working across different model providers including Azure OpenAI, DeepSeek, xAI, and marketplace models.
Option 2: Azure Machine Learning Quickstart
Create a Workspace
Sign in to Azure Machine Learning studio.Click Create workspace and provide:
- Workspace name: Unique name for your workspace
- Subscription: Your Azure subscription
- Resource group: Create or select existing
- Region: Choose your preferred region
Create a Compute Instance
A compute instance is your cloud development environment.
- Select your workspace
- Click New → Compute instance
- Provide a name and keep defaults
- Click Create
Train a Model with Python
Install the Azure ML SDK:Option 3: Azure AI Search Quickstart
Create a Search Service
- Open the Azure portal
- Click Create a resource → Search for “Azure AI Search”
- Click Create and fill in:
- Service name: Unique name for your search service
- Subscription: Your Azure subscription
- Resource group: Create or select existing
- Location: Choose your region
- Pricing tier: Start with Free or Basic
- Click Review + Create, then Create
Create Your First Index
In the Azure portal, navigate to your search service:
- Click Import data to use the wizard
- Connect to a data source (Azure Blob Storage, SQL, etc.)
- Optionally add AI enrichment for text extraction and analysis
- Define index fields and attributes
- Create an indexer to populate the index
Query with Python SDK
Install the Azure Search SDK:Next Steps
Now that you’ve completed the quickstart, explore these resources:Build an AI Agent
Create a multi-tool agent with memory and knowledge integration
Train a Custom Model
Learn MLOps best practices for production deployments
Implement RAG
Build a retrieval-augmented generation app with AI Search
Explore Samples
Browse code samples for common scenarios
Troubleshooting
Authentication Issues
Authentication Issues
If you encounter authentication errors:
- Ensure you’re logged in to the correct Azure account
- Verify your subscription has the necessary permissions
- Check that your service principal has the required roles
- Try using
az loginto refresh credentials
Resource Creation Failures
Resource Creation Failures
Common reasons for failures:
- Insufficient quota in the selected region
- Resource name already in use (names must be globally unique)
- Missing permissions on the subscription or resource group
- Region doesn’t support the selected tier or features
SDK Installation Problems
SDK Installation Problems
If pip installation fails:
- Upgrade pip:
pip install --upgrade pip - Use a virtual environment:
python -m venv venv - Check Python version (3.8+ recommended)
- Try installing with
--userflag