> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started With AI in Azure

> Overview of Azure fundamentals and Microsoft Foundry, covering identity and resources, Foundry projects with models, agents, tools, knowledge, and accessing models via endpoints and SDKs

This lesson explains how Azure underpins modern AI applications. We'll cover Azure structure and identity, introduce Microsoft Foundry and its lifecycle support, and describe how Foundry projects combine models, agents, tools, and knowledge to build production AI solutions. Finally, you'll see how applications access Foundry models and services via endpoints and SDKs.

## Azure fundamentals: identity, resources, and governance

Microsoft Azure is a cloud platform that provides infrastructure and services so organizations can build, deploy, and operate applications without managing the physical data center.

A critical piece of that environment is Microsoft Entra ID (identity and access management). Entra ID answers two fundamental questions for Azure:

* Who or what is requesting access?
* What is that identity allowed to do?

Core Entra ID concepts:

* Users — individual human identities.
* Groups — collections of users for simplified access control.
* Applications and service identities — identities for apps and automated services.
* Permissions and roles — rules that define allowed actions.

Use cases and examples:

| Identity Component | Use Case | Example |
| - | - | - |
| Users | Human access and MFA | `alice@contoso.com` |
| Groups | Grant permissions to multiple users | `SupportTeam` group |
| Service identities | Non-human app authentication | `my-app-service-principal` |
| Roles & permissions | Fine-grained access control | Built-in role `Contributor` |

Azure resources are arranged in a hierarchy that affects access, billing, and governance. The typical hierarchy is:

| Level | Purpose | Example |
| - | - | - |
| Tenant | Organization identity boundary in Microsoft Entra ID | `contoso.onmicrosoft.com` |
| Subscription | Billing and resource boundary; used to separate dev/test/prod | `Contoso-Prod-Sub` |
| Resource group | Logical container for related resources | `rg-customer-support-app` |
| Resource | Individual services like VMs, storage accounts, or AI services | `storageacct01`, `foundry-resource` |

Think of the hierarchy as: tenant → subscription → resource group → individual resources.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/ZdXEe7d3muXYDMl5/images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/azure-tenant-entra-id-subscriptions-resources.jpg?fit=max&auto=format&n=ZdXEe7d3muXYDMl5&q=85&s=551355e6cb2c67a8b0323058fd2c2691" alt="A Microsoft Azure diagram titled &#x22;A Cloud Platform for Modern Applications&#x22; showing a tenant and Microsoft Entra ID boundary, subscriptions and resource groups that organize resources like compute, networking, databases and AI services. It visualizes identity/security and billing/governance layers." width="1920" height="1080" data-path="images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/azure-tenant-entra-id-subscriptions-resources.jpg" />
</Frame>

## Microsoft Foundry — a unified AI platform

Microsoft Foundry is a unified platform that brings models, compute, storage, and AI services together so developers can build, test, deploy, and manage complete AI applications and agents.

Foundry supports the full AI application lifecycle:

* Development — configure models, tune behavior, and assemble application components.
* Deployment — publish AI capabilities to users or downstream services.
* Management — monitor, update, scale, and observe applications in production.

A Foundry resource exposes four capability areas: model access, compute, storage, and AI services. Those capabilities are assembled within Foundry projects to produce end-to-end AI solutions.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/ZdXEe7d3muXYDMl5/images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-project-building-testing-managing.jpg?fit=max&auto=format&n=ZdXEe7d3muXYDMl5&q=85&s=92f177cb8084ad9ab1b94554f1155794" alt="A presentation slide titled &#x22;Microsoft Foundry: A Unified Platform for AI Applications and Agents&#x22; showing nested boxes for &#x22;Microsoft Foundry Resource&#x22; (model access, compute, storage, AI services) and &#x22;Microsoft Foundry Project&#x22; (an isolated development environment). Inside the project box are three colored buttons labeled &#x22;Building,&#x22; &#x22;Testing,&#x22; and &#x22;Managing,&#x22; with a small &#x22;© Copyright KodeKloud&#x22; at the bottom." width="1920" height="1080" data-path="images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-project-building-testing-managing.jpg" />
</Frame>

Foundry capability areas (purpose and examples):

| Capability | Purpose | Example |
| -: | - | - |
| Model access | Connect apps to models for inference or generation | LLMs for chat, summarization |
| Compute | Run model inference or fine-tuning workloads | GPU clusters, managed inference nodes |
| Storage | Persist datasets, files, and configuration | Blob storage, managed datasets |
| AI services | Specialized building blocks | Speech-to-text, translation, NER APIs |

## Foundry projects and the core building blocks

Inside a Foundry resource, you create Microsoft Foundry projects — isolated development environments for building, testing, and managing AI applications and agents. Projects are useful for experimentation and iterative development before broader release.

Within a Foundry project, four core components combine to form production AI applications:

* Models — the AI systems that process inputs and produce outputs (e.g., language models).
* Agents — orchestrators that use models, tools, and knowledge to accomplish multi-step tasks.
* Tools — connectors that let agents interact with external systems or APIs in a controlled, auditable way.
* Knowledge — domain-specific data (documents, databases, knowledge bases) that grounds model responses in accurate, organization-specific information.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/ZdXEe7d3muXYDMl5/images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-models-agents-tools-knowledge.jpg?fit=max&auto=format&n=ZdXEe7d3muXYDMl5&q=85&s=53d2ee422acb1571eb9b38e16aac6d86" alt="A slide titled &#x22;Microsoft Foundry: A Unified Platform for AI Applications and Agents&#x22; showing core components. It highlights four boxes—Models (browse, evaluate, fine‑tune, deploy), Agents, Tools, and Knowledge." width="1920" height="1080" data-path="images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-models-agents-tools-knowledge.jpg" />
</Frame>

Models provide the intelligence. Agents combine model reasoning with planning and action. Tools are the safe interfaces to external systems. Knowledge ensures replies are grounded in your enterprise context.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/ZdXEe7d3muXYDMl5/images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-agents-models-tools-knowledge.jpg?fit=max&auto=format&n=ZdXEe7d3muXYDMl5&q=85&s=d812ad60120c4c482ed5fbcff2657089" alt="A slide titled &#x22;Microsoft Foundry: A Unified Platform for AI Applications and Agents&#x22; showing core components — Models, Agents (highlighted), Tools, and Knowledge — with a description that agents use models to reason, plan, and complete tasks." width="1920" height="1080" data-path="images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-agents-models-tools-knowledge.jpg" />
</Frame>

Tools are intentionally scoped: they enable agents to perform actions such as searching a knowledge store, calling an API, or updating a record — but only through controlled, auditable operations. Knowledge sources (SharePoint, internal docs, databases, product catalogs) provide the context that prevents hallucinations and aligns outputs with company policies.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/ZdXEe7d3muXYDMl5/images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-ai-platform-agents-knowledge.jpg?fit=max&auto=format&n=ZdXEe7d3muXYDMl5&q=85&s=4bc8057f1442a221288454d97786bcc4" alt="A slide titled &#x22;Microsoft Foundry: A Unified Platform for AI Applications and Agents&#x22; showing core components—Models, Agents, Tools—and a highlighted &#x22;Knowledge&#x22; box that says &#x22;Connect agents to enterprise data for grounded responses.&#x22;" width="1920" height="1080" data-path="images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-ai-platform-agents-knowledge.jpg" />
</Frame>

Example — customer support agent:

* Model: understands and parses natural language customer requests.
* Agent: decides steps (e.g., check order, verify policy, initiate refund).
* Knowledge: product and refund policies (e.g., `refund within 7 days`).
* Tools: fetch order details and call the order management API to issue a refund.

This composition enables end-to-end automation or a hybrid human-in-the-loop workflow.

## Accessing Foundry models and services: endpoints and SDKs

Applications access Foundry models and AI services via secure endpoints — HTTPS URLs that act as the front door to a model or service. To call an endpoint you need:

* Where to connect — the endpoint URL (the endpoint).
* How to authenticate — the credential or identity used to prove access.

Foundry supports authentication options such as Microsoft Entra ID tokens (recommended for managed identity-based access) and API keys (simple secret-based access). Always protect credentials and use secure secret stores.

<Callout icon="lightbulb" color="#1CB2FE">
  Protect authentication credentials: store API keys and tokens in secure stores (Key Vault, managed identities, or other secret stores) and avoid embedding them in application code or public repositories.
</Callout>

When calling an endpoint, interactions typically follow a request/response pattern:

* Build a request with the operation, required headers (including authentication), and JSON payload as needed.
* Send the request to the endpoint over HTTPS.
* Receive a response with the HTTP status and JSON results.

Example HTTP request payload (simplified):

```http theme={null}
POST https://your-foundry-endpoint.azure.com/v1/infer
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json

{
  "model": "your-model-id",
  "input": "Summarize the following customer complaint..."
}
```

SDKs make these interactions easier by handling authentication, request construction, retries, and response parsing for you. Use language-specific SDKs (Python, JavaScript, etc.) to reduce boilerplate and improve developer productivity.

SDK benefits:

| Benefit | What it provides |
| - | - |
| Authentication helpers | Managed identity, token acquisition, and key handling |
| Request helpers | Build and send JSON requests, handle retries |
| Response parsing | Deserialize results into native objects |
| Higher-level API | Shorter, idiomatic code vs. raw REST calls |

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/ZdXEe7d3muXYDMl5/images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-endpoints-ai-access-sdk.jpg?fit=max&auto=format&n=ZdXEe7d3muXYDMl5&q=85&s=088c0cc83646ca40db684ede2a701635" alt="A diagram titled &#x22;Microsoft Foundry Endpoints: Access Models and AI Services&#x22; showing a central endpoint (https://xxxx) used with either a Microsoft Entra ID token or an API key. The endpoint connects to an SDK that handles Request details (operation, headers, JSON body) and Response details (status, headers, JSON results)." width="1920" height="1080" data-path="images/AI-901-Microsoft-Azure-AI-Fundamentals/Getting-Started-With-AI/Getting-Started-With-AI-in-Azure/microsoft-foundry-endpoints-ai-access-sdk.jpg" />
</Frame>

## Next steps: explore in the Azure Portal

Now that you understand tenants, subscriptions, resource groups, Microsoft Entra ID, and the Microsoft Foundry concepts (resources, projects, models, agents, tools, knowledge, endpoints, and SDKs), the next step is to explore these resources in the Azure Portal or the Foundry UI. Inspect a Foundry resource, create a project, and try connecting a sample application to a model endpoint using an SDK and a managed identity.

Links and references

* Microsoft Entra ID overview: [https://learn.microsoft.com/entra/identity](https://learn.microsoft.com/entra/identity)
* Azure resource organization: [https://learn.microsoft.com/azure/architecture/cloud-adoption/](https://learn.microsoft.com/azure/architecture/cloud-adoption/)
* Azure Key Vault: [https://learn.microsoft.com/azure/key-vault/](https://learn.microsoft.com/azure/key-vault/)
* Microsoft Foundry (platform docs) — consult your subscription or tenant documentation for the Foundry UI and API endpoints.

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/ai-901-microsoft-azure-ai-fundamentals/module/3352ec1e-c0de-4e1f-a29d-fc1c3b9affd5/lesson/5e3a7af0-4278-490e-a9e9-a995f1c0505e" />
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.