Skip to main content

Phase 2 — Detailed Guide: AI on the Microsoft Stack (Weeks 5–10)

 

Phase 2 — Detailed Guide: AI on the Microsoft Stack (Weeks 5–10)

Important update since the original plan was written: Microsoft renamed Azure AI Studio → Microsoft Foundry (portal now at https://ai.azure.com), and Semantic Kernel has been succeeded by Microsoft Agent Framework (GA'd April 2026 — SK is in maintenance mode, receiving only bug fixes). Because you're starting fresh, this guide teaches Microsoft Agent Framework directly instead of Semantic Kernel, so you're learning on the framework Microsoft is actively investing in. Everything else in the original plan still applies conceptually.


WEEK 5: Microsoft Foundry & Azure OpenAI

Day 1: Read — orientation

  • What is Microsoft Foundry: https://learn.microsoft.com/en-us/azure/foundry/what-is-foundry
  • Microsoft Foundry training path (self-paced, free): https://learn.microsoft.com/en-us/training/azure/ai-foundry
    • Do the first module: "Introduction to Microsoft Foundry" — covers the portal, SDKs, and project setup

Day 2: Set up your Azure account

  • If you don't already have one: create a free Azure account at https://azure.microsoft.com/free (includes trial credit)
  • Open the Foundry portal: https://ai.azure.com and sign in with your Azure credentials

Day 3–4: Do — deploy your first model

Follow this official quickstart exactly:

  • Quickstart: Get started with Microsoft Foundry SDK: https://learn.microsoft.com/en-us/azure/foundry/quickstarts/get-started-code
    • Choose the C# tab in the code samples (it supports Python, Java, TypeScript, and C#)
    • This walks you through: creating a Foundry project → deploying a model → sending a prompt and getting a response → creating a basic agent

Practical note: you'll need one of these Azure RBAC roles to create Foundry resources: Foundry User (minimum, for using existing resources) or Foundry Owner (for creating new ones). If your work Azure subscription has restrictions, you may need to use a personal/trial subscription for this hands-on learning.

Day 5–7: Do — build a C# console app calling your deployed model

Using the quickstart code as a base, build a simple console app that:

  1. Connects to your Foundry project endpoint
  2. Sends a prompt and prints the response
  3. Then extend it: create an agent (not just a raw completion) using the Foundry Agent Service, and have a 2-turn conversation with it (the quickstart shows exactly this)

Reference for later: Microsoft Foundry documentation home: https://learn.microsoft.com/en-us/azure/foundry/


WEEK 6: Microsoft Agent Framework (the successor to Semantic Kernel)

Day 1: Read — orientation and why this matters

  • Microsoft Agent Framework overview: https://learn.microsoft.com/en-us/agent-framework/overview/
    • Key fact from this page: Agent Framework combines AutoGen's simple agent abstractions with Semantic Kernel's enterprise features (session state, type safety, telemetry) and adds graph-based multi-agent workflows. It's the direct successor to both, built by the same teams.
  • GitHub repo (README has quick C# and Python examples): https://github.com/microsoft/semantic-kernel — note: this repo now hosts the migration story from SK to Agent Framework; the Agent Framework code itself lives at https://github.com/microsoft/agent-framework

Day 2–3: Do — your first agent in C#

Minimal working example (adapt resource/deployment names to yours from Week 5):

using Azure.Identity;
using Microsoft.Agents.AI;
using OpenAI;
using OpenAI.Responses;

var agent = new OpenAIClient(
        new BearerTokenPolicy(new AzureCliCredential(), "https://ai.azure.com/.default"),
        new OpenAIClientOptions() { Endpoint = new Uri("https://<your-resource>.openai.azure.com/openai/v1") })
    .GetResponsesClient("<your-deployment-name>")
    .AsAIAgent(name: "HelpDeskBot", instructions: "You are a helpful IT helpdesk assistant.");

Console.WriteLine(await agent.RunAsync("How do I reset my VPN password?"));

Install the NuGet package Microsoft.Agents.AI (and the Azure OpenAI/OpenAI packages it depends on) via the Package Manager Console, same as any .NET project.

Day 4–5: Learn — core concepts

  • Agent Framework training path (Microsoft Learn): https://learn.microsoft.com/en-us/training/paths/develop-ai-agents-azure/
    • Covers: building/testing/deploying agents via Foundry Agent Service, extending agents with custom tools, and connecting MCP-hosted tools
  • Concepts to focus on this week: ChatClient, tools/functions, AIAgent, sessions/threads (for multi-turn memory)

Day 6–7: Do — add a custom tool/function

Extend your console app with a simple C# function the agent can call (e.g., a fake "look up ticket status" function). This mirrors what you already do wiring up Power Automate actions — same concept, now LLM-driven decision-making about when to call it.


WEEK 7: Vector Search & Embeddings, Hands-On

Day 1–2: Learn — concepts

  • Vector search overview (Azure AI Search): https://learn.microsoft.com/en-us/azure/search/vector-search-overview
    • Covers: similarity search, hybrid search (vector + keyword combined), and how Azure AI Search underpins Foundry IQ (Microsoft's managed knowledge/RAG layer)

Day 3–5: Do — quickstart hands-on vector search

Pick ONE of these two paths depending on how hands-on you want to get:

Path A — Code-first (recommended for your background):

  • Quickstart: Vector Search (REST/SDK): https://learn.microsoft.com/en-us/azure/search/search-get-started-vector
    • This creates and populates a sample "hotels" vector index, then runs single-vector, filtered, and hybrid queries against it. Available in C#, Python, JavaScript.

Path B — No-code (Import Data wizard in the Azure portal):

  • Quickstart: Vector Search in the Azure portal: https://learn.microsoft.com/en-us/azure/search/search-get-started-portal-import-vectors
    • Uses the Import Data wizard to chunk PDFs and auto-vectorize them — this is actually the closest preview of what your Week 8–9 SharePoint project will do under the hood.

Day 6–7: Do — bring your own documents

Take 10 of your own Word/PDF documents, run them through the Import Data wizard (Path B), and write a natural-language query against them. Confirm the top result is actually the most relevant document — this builds your intuition for when vector search "just works" versus when it returns odd results (usually due to poor chunking).


WEEK 8: RAG over SharePoint — Flagship Project, Part 1 (Ingestion)

Day 1–2: Learn — Microsoft Graph SharePoint API

  • SharePoint sites and content API overview: https://learn.microsoft.com/en-us/graph/sharepoint-concept-overview
  • Working with files in Microsoft Graph: https://learn.microsoft.com/en-us/graph/api/resources/onedrive
    • Key concepts: a SharePoint document library is exposed as a Drive; files/folders inside it are DriveItems
  • App registration: you'll need to register an app in Microsoft Entra ID with these Graph API permissions: Sites.Read.All and Files.Read.All (delegated or application, depending on whether the app acts as a specific user or as itself)

Day 3: Do — set up Graph API access

  1. Register an app at https://entra.microsoft.com (or the older https://portal.azure.com → Microsoft Entra ID → App registrations)
  2. Add API permissions: Sites.Read.All, Files.Read.All
  3. Install the Microsoft Graph .NET SDK: NuGet package Microsoft.Graph
  4. Authenticate using MSAL (Microsoft.Identity.Client) — this is the same Entra ID pattern you already know from SharePoint/Power Platform app registrations

Day 4–5: Do — pull documents programmatically

Write a C# console app that:

  1. Authenticates via Graph
  2. Lists the document library of a SharePoint site you have access to:
    GET https://graph.microsoft.com/v1.0/sites/{hostname}:/{site-path}GET https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root/children
    
  3. Downloads each file's content (via the @microsoft.graph.downloadUrl property returned on each item)

Reference walkthrough (community, but accurate and current): https://www.omi.me/blogs/api-guides/how-to-use-microsoft-graph-api-to-access-sharepoint-data-in-c

Day 6–7: Do — chunk your documents

For each downloaded document, split the text into chunks (roughly 300–800 tokens per chunk, with a little overlap between chunks — e.g., 50–100 tokens — so context isn't lost at chunk boundaries). You can write this chunking logic yourself in C#, or use the Azure AI Search Import Data wizard's built-in chunking if you want to skip writing it by hand (see Week 7, Path B).


WEEK 9: RAG over SharePoint — Flagship Project, Part 2 (Retrieval + Generation)

Day 1–2: Do — generate embeddings and index

  • Deploy an embedding model (e.g., text-embedding-3-small) in your Foundry project alongside your chat model
  • For each document chunk from Week 8, call the embedding model and store the resulting vector, along with the chunk text and source document metadata, in an Azure AI Search vector index
  • Reference: Create a Vector Index: https://learn.microsoft.com/en-us/azure/search/vector-search-how-to-create-index

Day 3–4: Do — build the query path

  1. User asks a question → embed the question using the same embedding model
  2. Query Azure AI Search for the top 3–5 most similar chunks
    • Reference: Create a Vector Query: https://learn.microsoft.com/en-us/azure/search/vector-search-how-to-query
  3. Inject the retrieved chunks into your Agent Framework agent's prompt as context, then ask it to answer using only that context

Day 5–6: Do — add citations

Instruct your agent (via its system instructions) to cite which source document each part of its answer came from, using the metadata you stored alongside each chunk. This is the difference between a toy demo and something you could actually put in front of a manager.

Day 7: Consolidate

You now have a working, end-to-end RAG pipeline: SharePoint → Graph API → chunking → embeddings → Azure AI Search → Agent Framework → cited answer. This is your first real portfolio piece. Push it to a personal GitHub repo with a clear README.


WEEK 10: Power Platform + AI (Copilot Studio, AI Builder)

Day 1: Learn — Copilot Studio fundamentals

  • Knowledge sources overview: https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio
  • Generative answers overview: https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-gpt-overview
    • Key concept: Copilot Studio agents can answer from "knowledge sources" (websites, SharePoint, files, Dataverse) without you manually authoring conversation trees — this is RAG, but no-code, built directly into Power Platform.

Day 2–3: Do — build a Copilot Studio agent grounded in SharePoint

  • Use SharePoint content for generative answers (step-by-step): https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-generative-answers-sharepoint-onedrive
    • You'll add a SharePoint site URL as a knowledge source, either at the agent level or inside a specific topic's "Generative answers" node
    • Note: SharePoint as a knowledge source requires authentication — by default, Copilot Studio uses "Authenticate with Microsoft," which works automatically in Teams/Power Apps/M365 Copilot contexts

Day 4: Do — test and compare against your custom RAG build

Ask your Copilot Studio agent the same 10 questions you tested against your Week 8–9 custom C# RAG pipeline. Compare:

  • Answer quality and citation behavior
  • How much code you had to write (none, here) vs. control you have (much less, here)
  • This comparison is genuinely valuable career knowledge: it tells you when to reach for low-code Copilot Studio vs. a custom-built solution for a client or employer.

Day 5–6: Learn — AI Builder (brief)

  • Search Microsoft Learn for "AI Builder overview" (this page reorganizes with each Power Platform release wave, so search rather than use a static link) — focus on the prebuilt models: form processing, sentiment analysis, prediction models
  • AI Builder is most useful for structured-data AI tasks (e.g., extracting fields from invoices) rather than conversational RAG, so treat it as a complementary tool, not a replacement for what you built in Weeks 8–9

Day 7: Consolidate

Write a short internal note (for yourself, or literally for your team) comparing: custom RAG (Agent Framework + Azure AI Search) vs. Copilot Studio generative answers vs. AI Builder. When would you reach for each? This kind of decision-framework thinking is exactly what separates a "prompt engineer" from an "AI architect."


Quick Reference — All Links in One Place

Resource Link
What is Microsoft Foundry https://learn.microsoft.com/en-us/azure/foundry/what-is-foundry
Foundry training path (free) https://learn.microsoft.com/en-us/training/azure/ai-foundry
Foundry portal https://ai.azure.com
Foundry SDK quickstart https://learn.microsoft.com/en-us/azure/foundry/quickstarts/get-started-code
Free Azure account https://azure.microsoft.com/free
Microsoft Agent Framework overview https://learn.microsoft.com/en-us/agent-framework/overview/
Agent Framework GitHub https://github.com/microsoft/agent-framework
Develop AI Agents on Azure (training path) https://learn.microsoft.com/en-us/training/paths/develop-ai-agents-azure/
Vector search overview https://learn.microsoft.com/en-us/azure/search/vector-search-overview
Vector search quickstart (code) https://learn.microsoft.com/en-us/azure/search/search-get-started-vector
Vector search quickstart (portal, no-code) https://learn.microsoft.com/en-us/azure/search/search-get-started-portal-import-vectors
Create a vector index https://learn.microsoft.com/en-us/azure/search/vector-search-how-to-create-index
Create a vector query https://learn.microsoft.com/en-us/azure/search/vector-search-how-to-query
SharePoint API overview (Graph) https://learn.microsoft.com/en-us/graph/sharepoint-concept-overview
Files in Microsoft Graph https://learn.microsoft.com/en-us/graph/api/resources/onedrive
Microsoft Entra admin center (app registration) https://entra.microsoft.com
Copilot Studio knowledge sources https://learn.microsoft.com/en-us/microsoft-copilot-studio/knowledge-copilot-studio
Copilot Studio + SharePoint how-to https://learn.microsoft.com/en-us/microsoft-copilot-studio/nlu-generative-answers-sharepoint-onedrive

A note on staleness: Microsoft's AI product surface is moving unusually fast right now (Azure AI Studio → Foundry, Semantic Kernel → Agent Framework both happened within the last year). If a link 404s, search the page title directly on learn.microsoft.com — the content is almost always still there under a new path.

Comments

Popular posts from this blog

Notes on - (LLMs) "Intro to Large Language Models" by Andrej Karpathy

  Notes on "Intro to Large Language Models" by Andrej Karpathy This is a comprehensive 1-hour lecture on Large Language Models (LLMs) as of November 2023. The talk covers three main sections: understanding LLMs, their future development, and security challenges. 📖 Part 1: Understanding LLMs What is an LLM? Core concept : A neural network trained to predict the next word in a sequence. Analogy : Like a very advanced autocomplete that has learned patterns from vast amounts of internet text. LLM Inference (Using the Model) The process of generating text by feeding in a prompt and having the model predict the next tokens one by one. This is the "forward pass" of the neural network. Key point : The model has no memory between interactions; each inference is stateless. LLM Training Two main stages : Pre-training : Learning general language patterns from a massive, diverse dataset of public text. This is where the "base model" is created. Fine-tuning : Training ...

From Microsoft Platform Expert to AI Engineer — A 24-Week Study Plan

From .NET Expert to AI Engineer — A 24-Week Study Plan Background assumed: 15 years in C#/.NET, ASP.NET, SharePoint (on-prem + online), Power Platform. Goal: Become a working AI engineer/architect who builds production AI systems on (and beyond) the Microsoft stack. Pace: ~5–8 hrs/week. Adjust up or down — the sequence matters more than the exact timing. How to use this plan Each week has: Learn (concepts/resources) + Do (hands-on task). Don't skip the "Do" — in AI, intuition comes from building, not reading. Keep a running "AI Journal" repo (GitHub) — one folder per week, with what you built and what broke. PHASE 1 — Foundations (Weeks 1–4) Week 1: What AI/LLMs actually are Learn: What a Large Language Model is, tokens, context windows, embeddings (conceptual, not math) Video: "Intro to Large Language Models" — Andrej Karpathy (YouTube, free, ~1hr) Read: OpenAI/Anthropic model overview pages Do: Create accounts on claude.ai and platform....

Phase 1 — Foundations: Detailed Week-by-Week Guide (Weeks 1–4)

  Phase 1 — Foundations: Detailed Week-by-Week Guide (Weeks 1–4) This is the expanded, "exactly what to click" version of Phase 1. Every resource below is a real, current link (checked July 2026). Where a Microsoft or third-party page is likely to move/rename, I've noted how to re-find it via search. WEEK 1: What AI/LLMs Actually Are Day 1–2: Watch (in this order) Video 1 — the short, general-audience primer Title: "[1hr Talk] Intro to Large Language Models" — Andrej Karpathy Link: https://www.youtube.com/watch?v=zjkBMFhNj_g Length: ~1 hour Why: Karpathy was a founding member of OpenAI. This is the single best non-technical explanation of what an LLM is, how it's trained, and how it "thinks." No coding required. Video 2 — the deeper, updated version (optional but recommended in Week 1 or spill into Week 2) Title: "Deep Dive into LLMs like ChatGPT" — Andrej Karpathy Link: https://www.youtube.com/watch?v=7xTGNNLPyMI Length: ~3.5 h...