Learn to use AI-powered Accelerator agents — from Agents to Hero
View the Project on GitHub devopsabcs-engineering/agentic-accelerator-workshop
| Duration | 45 minutes |
| Level | Advanced (Optional) |
| Prerequisites | Lab 00, Lab 01, Lab 02 |
[!IMPORTANT] This lab is optional and requires an Azure subscription with Cost Management Reader role assigned to your account. You can complete the exercises using Copilot Chat agent prompts without deploying resources, but an Azure subscription provides richer context for cost analysis.
By the end of this lab, you will be able to:
Use the Cost Analysis Agent to estimate monthly costs for the sample app infrastructure.
Ctrl+Shift+I).Type the following prompt:
@cost-analysis-agent Analyze sample-app/infra/main.bicep for estimated monthly costs
Wait for the agent to complete its analysis. Review the cost breakdown. The agent should identify these high-cost resources:
| Resource | SKU | Estimated Monthly Cost |
|---|---|---|
| App Service Plan | P1v3 (3 instances) | ~$420 |
| SQL Database | GP_Gen5_8 (8 vCores) | ~$800 |
| Storage Account | Standard_GRS | ~$50 |
| Total | ~$1,270 |

Check whether the infrastructure template follows organizational tagging policies.
In Copilot Chat, type:
@finops-governance-agent Check sample-app/infra/main.bicep for tag compliance
Review the findings. The agent should identify missing tags that organizations typically require:
| Missing Tag | Purpose |
|---|---|
costCenter |
Maps resources to a billing cost center |
environment |
Identifies the deployment stage (dev, staging, production) |
owner |
Designates the responsible team or individual |
Consider why tag compliance matters: without proper tags, organizations cannot accurately allocate cloud costs to teams, track spending by environment, or enforce accountability.

Apply a budget threshold to determine whether the deployment should proceed.
In Copilot Chat, type:
@deployment-cost-gate-agent Evaluate sample-app/infra/ against a $100/month budget

Reduce costs by switching to appropriately sized SKUs and verify the impact.
sample-app/infra/variables.bicep in the editor.appServiceSkuName parameter and change the default value from P1v3 to B1.sqlDatabaseSkuName parameter and change the default value from GP_Gen5_8 to Basic.Re-run the cost analysis agent:
@cost-analysis-agent Analyze sample-app/infra/main.bicep for estimated monthly costs
variables.bicep after completing this exercise so the intentional issues remain for other labs. Use Ctrl+Z or run git checkout sample-app/infra/variables.bicep.
Before proceeding, verify:
Proceed to Lab 10 — Agent Remediation Workflows.