|
| 1 | +# **MicroHack Azure Copilot** |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +- [**MicroHack introduction**](#MicroHack-introduction) |
| 6 | +- [**MicroHack context**](#microhack-context) |
| 7 | +- [**Objectives**](#objectives) |
| 8 | +- [**MicroHack Challenges**](#microhack-challenges) |
| 9 | +- [**Contributors**](#contributors) |
| 10 | + |
| 11 | +## MicroHack introduction |
| 12 | + |
| 13 | +This Azure Copilot MicroHack walks engineers and architects through the core capabilities of **Azure Copilot** and its **five specialized agents** (Deployment, Observability, Optimization, Resiliency, Troubleshooting) in the Azure portal. Participants learn to use natural-language conversations to plan infrastructure, investigate alerts, optimize costs, harden resiliency, and troubleshoot resource issues — all from a single AI-powered interface. |
| 14 | + |
| 15 | +Azure Copilot is an AI-powered tool built into the Azure portal that helps you design, operate, optimize, and troubleshoot your Azure apps and infrastructure. It leverages Large Language Models (LLMs), the Azure control plane, and deep insights about your Azure environment to help you work more efficiently. |
| 16 | + |
| 17 | +This lab is not a full explanation of Azure Copilot as a technology. Please consider the following articles as required pre-reading to build foundational knowledge: |
| 18 | + |
| 19 | +- [Azure Copilot Overview](https://learn.microsoft.com/en-us/azure/copilot/overview) |
| 20 | +- [Azure Copilot Capabilities](https://learn.microsoft.com/en-us/azure/copilot/capabilities) |
| 21 | +- [Agents (Preview)](https://learn.microsoft.com/en-us/azure/copilot/agents-preview) |
| 22 | +- [Writing Effective Prompts](https://learn.microsoft.com/en-us/azure/copilot/write-effective-prompts) |
| 23 | + |
| 24 | +Optional (read after completing this lab to take your learning even deeper): |
| 25 | + |
| 26 | +- [Deployment Agent](https://learn.microsoft.com/en-us/azure/copilot/deployment-agent) |
| 27 | +- [Observability Agent](https://learn.microsoft.com/en-us/azure/copilot/observability-agent) |
| 28 | +- [Optimization Agent](https://learn.microsoft.com/en-us/azure/copilot/optimization-agent) |
| 29 | +- [Resiliency Agent](https://learn.microsoft.com/en-us/azure/copilot/resiliency-agent) |
| 30 | +- [Troubleshooting Agent](https://learn.microsoft.com/en-us/azure/copilot/troubleshooting-agent) |
| 31 | + |
| 32 | +## MicroHack context |
| 33 | + |
| 34 | +This MicroHack scenario walks through the use of Azure Copilot and its five specialized agents with a focus on best practices, real-world scenarios, and progressive skill-building. Specifically, this builds up to include working with existing Azure infrastructure that has been pre-deployed with intentional issues — oversized VMs, blocked NSGs, misconfigured firewalls, missing backups, and buggy applications — so that each agent can demonstrate its diagnostic and remediation capabilities. |
| 35 | + |
| 36 | +Participants start by mastering Azure Copilot fundamentals (navigation, prompt writing, context management) and then progress through each agent's specialty before tackling a capstone challenge that combines all five agents in an end-to-end e-commerce platform scenario. |
| 37 | + |
| 38 | +## Objectives |
| 39 | + |
| 40 | +After completing this MicroHack you will: |
| 41 | + |
| 42 | +- Navigate and use Azure Copilot effectively in the Azure portal |
| 43 | +- Plan and generate Terraform infrastructure configurations using the **Deployment Agent** |
| 44 | +- Investigate Azure Monitor alerts and run automated root-cause analysis using the **Observability Agent** |
| 45 | +- Discover cost-saving opportunities and generate optimization scripts using the **Optimization Agent** |
| 46 | +- Assess zone resiliency, configure backups, and plan disaster recovery using the **Resiliency Agent** |
| 47 | +- Diagnose resource issues, apply one-click fixes, and create support requests using the **Troubleshooting Agent** |
| 48 | +- Orchestrate all five agents in a seamless end-to-end cloud operations workflow |
| 49 | + |
| 50 | +## MicroHack challenges |
| 51 | + |
| 52 | +| Challenge | Topic | Challenge | Solution | Duration | |
| 53 | +| --------- | ---------------------------------------------------------------------- | --------------------------------------- | -------------------------------------- | -------- | |
| 54 | +| 1 | Azure Copilot Basics — navigation, prompts, context | [Challenge](challenges/challenge-01.md) | [Solution](walkthrough/solution-01.md) | 30 min | |
| 55 | +| 2 | Deployment Agent — infrastructure planning and Terraform generation | [Challenge](challenges/challenge-02.md) | [Solution](walkthrough/solution-02.md) | 45 min | |
| 56 | +| 3 | Observability Agent — alert investigation and remediation | [Challenge](challenges/challenge-03.md) | [Solution](walkthrough/solution-03.md) | 45 min | |
| 57 | +| 4 | Optimization Agent — cost savings and rightsizing | [Challenge](challenges/challenge-04.md) | [Solution](walkthrough/solution-04.md) | 45 min | |
| 58 | +| 5 | Resiliency Agent — zone resiliency, backup, disaster recovery | [Challenge](challenges/challenge-05.md) | [Solution](walkthrough/solution-05.md) | 45 min | |
| 59 | +| 6 | Troubleshooting Agent — diagnostics, one-click fixes, support requests | [Challenge](challenges/challenge-06.md) | [Solution](walkthrough/solution-06.md) | 45 min | |
| 60 | +| 7 | Capstone — multi-agent end-to-end e-commerce scenario | [Challenge](challenges/challenge-07.md) | [Solution](walkthrough/solution-07.md) | 90 min | |
| 61 | + |
| 62 | +**Total estimated time: ~5.75 hours** |
| 63 | + |
| 64 | +### General prerequisites |
| 65 | + |
| 66 | +This MicroHack has a few but important prerequisites. |
| 67 | + |
| 68 | +In order to use the MicroHack time most effectively, the following tasks should be completed prior to starting the session. |
| 69 | + |
| 70 | +> [!NOTE] |
| 71 | +> Prerequisites 1–4 are handled by the organizers for events hosted by Microsoft. |
| 72 | +
|
| 73 | +1. Your own **Azure subscription** with Contributor RBAC rights at the subscription level. [Create a free account](https://azure.microsoft.com/pricing/purchase-options/azure-account) if you don't have one. |
| 74 | +2. **Azure Copilot access** — Azure Copilot must be enabled for your tenant. By default, Azure Copilot is available to all users in a tenant. Your Global Administrator can [manage access](https://learn.microsoft.com/en-us/azure/copilot/manage-access) if needed. |
| 75 | +3. **Agents (Preview) access** — Your tenant must have access to Agents (preview) in Azure Copilot. Access is managed at the tenant level and rolled out gradually. Check with your tenant administrator, or [request access](https://aka.ms/azurecopilot/agents/feedbackprogram). |
| 76 | +4. **WebSocket connections** — Your organization must allow WebSocket connections to `https://directline.botframework.com`. Ask your network administrator to enable this if blocked. |
| 77 | +5. [Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli) installed and logged in (`az login`). **Hint:** Make sure to use the latest version available. |
| 78 | + |
| 79 | +In summary: |
| 80 | + |
| 81 | +- Azure Subscription (Contributor role) |
| 82 | +- Azure Copilot enabled for your tenant |
| 83 | +- Agents (Preview) enabled for your tenant |
| 84 | +- Azure CLI installed |
| 85 | +- WebSocket connectivity to `directline.botframework.com` |
| 86 | + |
| 87 | +Permissions for the deployment: |
| 88 | + |
| 89 | +- Contributor on your Azure Subscription |
| 90 | +- Monitoring Contributor or Issue Contributor on an Azure Monitor Workspace (for Challenge 3) |
| 91 | + |
| 92 | +### Infrastructure deployment |
| 93 | + |
| 94 | +The workshop includes Bicep IaC templates and a PowerShell deployment script that creates all necessary Azure resources with intentional issues for each challenge. Run one command to set everything up: |
| 95 | + |
| 96 | +```powershell |
| 97 | +# Ensure Azure CLI is installed and you are logged in |
| 98 | +az login |
| 99 | +
|
| 100 | +# Deploy all workshop resources (default region: France Central) |
| 101 | +.\lab\Deploy-Lab.ps1 -DeploymentType subscription -SubscriptionId "<your-subscription-id>" |
| 102 | +
|
| 103 | +# Or specify a different region |
| 104 | +.\lab\Deploy-Lab.ps1 -DeploymentType subscription -SubscriptionId "<your-subscription-id>" -PreferredLocation "westeurope" |
| 105 | +``` |
| 106 | + |
| 107 | +This creates five resource groups with pre-configured resources: |
| 108 | + |
| 109 | +| Resource Group | Challenge | What's Deployed | |
| 110 | +| ----------------- | ------------------- | ------------------------------------------------------------- | |
| 111 | +| `rg-copilot-<suffix>-ch00` | 1 (Basics) | Storage account, VNet, NSG | |
| 112 | +| `rg-copilot-<suffix>-ch02` | 3 (Observability) | App Service with buggy app, Application Insights, alert rules | |
| 113 | +| `rg-copilot-<suffix>-ch03` | 4 (Optimization) | Oversized VM (D4s_v3) for cost recommendations | |
| 114 | +| `rg-copilot-<suffix>-ch04` | 5 (Resiliency) | VM without zone redundancy or backup | |
| 115 | +| `rg-copilot-<suffix>-ch05` | 6 (Troubleshooting) | VM with blocked NSG, Cosmos DB with restrictive firewall | |
| 116 | + |
| 117 | +> [!IMPORTANT] |
| 118 | +> Azure Advisor recommendations (Challenge 4) may take **24–48 hours** to appear. You can start the workshop immediately — just revisit Challenge 4 later if recommendations aren't ready yet. |
| 119 | +
|
| 120 | +**Validate the deployment:** |
| 121 | + |
| 122 | +```powershell |
| 123 | +.\scripts\Test-CopilotWorkshop.ps1 -Suffix "<your-deployment-suffix>" |
| 124 | +``` |
| 125 | + |
| 126 | +**Cleanup after the workshop:** |
| 127 | + |
| 128 | +```powershell |
| 129 | +.\scripts\Remove-CopilotWorkshop.ps1 -Suffix "<your-deployment-suffix>" |
| 130 | +``` |
| 131 | + |
| 132 | +### Cost estimates |
| 133 | + |
| 134 | +The main cost drivers for this MicroHack are virtual machines and App Service: |
| 135 | + |
| 136 | +- **Challenge 4 (Optimization):** One Standard_D4s_v3 VM — approximately **$8/day** |
| 137 | +- **Challenge 5 (Resiliency):** One Standard_B2s VM — approximately **$1.50/day** |
| 138 | +- **Challenge 6 (Troubleshooting):** One Standard_B1s VM + Cosmos DB (Serverless) — approximately **$1.50/day** |
| 139 | +- **Challenge 3 (Observability):** App Service B1 plan — approximately **$0.50/day** |
| 140 | + |
| 141 | +Running all resources for one day costs approximately **$11.50–14**. For a 2-day workshop this would be approximately **$23–28 total**. |
| 142 | + |
| 143 | +> [!TIP] |
| 144 | +> Delete all resources immediately after the workshop using `.\scripts\Remove-CopilotWorkshop.ps1 -Suffix "<suffix>"` to minimize costs. |
| 145 | +
|
| 146 | +## Contributors |
| 147 | + |
| 148 | +- Dmitriy Nekrasov [GitHub](https://github.com/nekdima); [LinkedIn](https://www.linkedin.com/in/inthedark/) |
0 commit comments