Confidential client, name withheld under NDA

Self-Optimizing Cloud Environment Using the Azure SRE Agent: A Bacancy Case Study

Quick answer: The Azure SRE Agent checks usage, health and cost on a schedule, then resizes container apps and SKUs from live metrics inside set guardrails. Bacancy set it up for a US workforce management SaaS company.

Outcomes deliveredDelivered April to June 2026 by 1 Azure engineer
38%

Lower spend on idle capacity

No service trimmed below its floor

~2 hrs

Manual right-sizing removed monthly

Scheduled agent checks replace reviews

30%

Fewer slowdowns at peak load

Under-sized services resize on time

100%

Agent actions logged

Checks, resizes and approvals

Client name withheld under NDA. To honour our non-disclosure agreement and compliance obligations, we describe this client by industry and region only. The project scope, technology and outcomes are shared without details that could identify them.

About the Client

The client is a US workforce management SaaS company that runs its platform on Azure container apps. It sized resources by hand early on, and those sizes drifted from real usage. Some services paid for idle capacity while others slowed down at busy times.

Bacancy Technology configured the Azure SRE Agent to check usage, health and cost on a schedule and resize services within firm guardrails. Idle capacity spend fell by 38%, and no engineer has to own right-sizing full time.

Client type
Workforce management SaaS company
Industry
Human Resources
Location
USA
Team
1 Azure engineer
Timeline
April 2026 to June 2026
Project size
Non-disclosable
Engagement
Azure consulting and SRE automation

Four problems behind cloud sizing drift

Hand-sized container apps wasted money, slowed under load and needed reviews nobody had time for.

Paying for idle capacity

What was happening

Many container apps held far more capacity than their workload ever used.

Business Impact: Over-provisioning billed quietly every month with no clear signal.

Slowdowns under heavy load

What was happening

Other services were sized too low and scaled up too slowly when demand climbed.

Business Impact: The platform slowed exactly when the most users relied on it.

Right-sizing rarely done

What was happening

Manual reviews were tedious and lost out to urgent work.

Business Impact: Sizing ran on numbers weeks or months out of date.

Risk of agent changes

What was happening

An agent acting on production could resize badly, delete resources or touch secrets.

Business Impact: One bad change could cost more than the waste it fixed.

Challenges & Solutions

Our Azure engineer solved each problem as one step in a gated, self-optimizing environment.

Challenge 1: Cutting spend on over-provisioned container apps

Hand-sized container apps held far more capacity than their real workload used.

Solution: Our Azure consultants set a utilization target and an instance floor for each service. The agent then scaled oversized services down through the Azure CLI, cutting idle capacity spend by 38%.

Challenge 2: Keeping performance steady under load

Under-sized services scaled too slowly when demand climbed, so the platform slowed at peak times.

Solution: We set the Azure SRE Agent to adjust scale and SKUs through the Azure CLI from each service's live metrics. Under-sized services now resize in time, applied the same way across the subscription.

Challenge 3: Replacing manual right-sizing reviews

Engineers rarely found time to review usage and adjust allocations by hand.

Solution: Our team configured scheduled tasks in the Azure SRE Agent to check usage, health and cost on a fixed cadence. We tuned the cadence to catch real drift and ignore short spikes, removing about 2 hours of manual work a month.

Challenge 4: Making autonomous changes safe on production

Any agent acting on production had to be trusted not to make a harmful change.

Solution: Our Azure developer started the agent in Review mode, where a person approved each change, before moving to autonomous operation. Deletes and Key Vault access are blocked, and every action is logged to Application Insights.

Agent workflow

How the right-sizing agent works

The agent checks each container app on a schedule, decides against set targets and resizes only inside firm guardrails.

  1. The client's AI agent system
    1. Set targets
      Per-service targetsUtilization goal and floor
    2. Check
      Scheduled checksUsage, health and cost
      Read live metricsAzure Monitor, Resource Graph
    3. Approve
      Review mode approvalPerson approves each change
    4. Act
      Resize scale and SKUThrough the Azure CLI
      Blocked actionsNo deletes, no Key Vault
    5. Log
      Audit trailApplication Insights

The agent moved to autonomous operation only after it proved itself in Review mode.

How the Platform Works

The client Azure SRE Agent right-sizing project snapshot

Core Features

  • Demand-based right-sizingScale and SKUs follow each service's live metrics and set targets.
  • Scheduled health and cost checksThe agent reviews usage, health and cost on a fixed cadence.
  • Gated autonomyReview mode with human approval came first, then autonomous runs.
  • Hard guardrailsDeletes and Key Vault are blocked, so secrets and resources stay safe.
  • Full audit trailEvery check, resize and approval is logged in Application Insights.

The stack behind the agent

AI agent
Azure SRE Agent | Azure CLI
Compute
Azure Container Apps
Monitoring
Azure Monitor
Observability
Azure Log Analytics | Application Insights
Resource access
Azure Managed Identities | Azure Resource Graph
Logging and audit
Application Insights

Ready to start?

2500+ projects delivered by Bacancy Technology

Get access to an experienced team of developers and engineers from Bacancy Technology, handpicked to ace your goals. Kickstart within 48 hours, no-risk trial.

Book A 30 Min Call
14+Years of business experience
1458+Happy customers
30+Countries with happy customers
1050+Agile-enabled employees

More Case Studies

View All Case Studies