Skip to content

Add Microsoft.App/agents (SRE Agent) resource type support#6968

Open
dm-chelupati wants to merge 1 commit intoAzure:mainfrom
dm-chelupati:add-sre-agent-resource-type
Open

Add Microsoft.App/agents (SRE Agent) resource type support#6968
dm-chelupati wants to merge 1 commit intoAzure:mainfrom
dm-chelupati:add-sre-agent-resource-type

Conversation

@dm-chelupati
Copy link

@dm-chelupati dm-chelupati commented Mar 3, 2026

Summary

Azure SRE Agent (Microsoft.App/agents) is a new Azure resource type for AI-powered Operational tool (docs).

Currently, when deploying an SRE Agent via Bicep with azd up, the resource is silently skipped in the provisioning progress output because azd doesn't recognize the Microsoft.App/agents resource type.

Changes

  • Added AzureResourceTypeSreAgent constant for Microsoft.App/agents
  • Added display name SRE Agent in GetResourceTypeDisplayName
  • Added test case

Before

(✓) Done: Container App: ca-grubify-xxx (17s)
// SRE Agent silently skipped — not shown

After

(✓) Done: Container App: ca-grubify-xxx (17s)
(✓) Done: SRE Agent: sre-agent-xxx (45s)

Resource Details

  • Resource type: Microsoft.App/agents
  • API version: 2025-05-01-preview
  • Regions: eastus2, swedencentral, australiaeast

Azure SRE Agent (Microsoft.App/agents) is a new Azure resource type
for AI-powered site reliability engineering. This change adds:

- Resource type constant: AzureResourceTypeSreAgent
- Display name: 'SRE Agent' in GetResourceTypeDisplayName
- Test case for the new resource type

This allows azd to recognize and display SRE Agent resources during
provisioning progress output (e.g., 'Done: SRE Agent: my-agent')
instead of silently skipping them.

Resource type: Microsoft.App/agents
API version: 2025-05-01-preview
Documentation: https://learn.microsoft.com/azure/sre-agent/
@dm-chelupati
Copy link
Author

@dm-chelupati please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Microsoft"

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for the new Azure SRE Agent resource type (Microsoft.App/agents) so azd can show a friendly display name in provisioning progress output instead of skipping it.

Changes:

  • Introduces a new AzureResourceType... constant for Microsoft.App/agents
  • Adds a GetResourceTypeDisplayName mapping to show SRE Agent
  • Extends unit tests to cover the new resource type mapping

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
cli/azd/pkg/azapi/azure_resource_types.go Adds the new resource type constant and display-name mapping for Microsoft.App/agents.
cli/azd/pkg/azapi/azure_resource_types_test.go Adds a test case asserting the display name for the new resource type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

AzureResourceTypeContainerApp AzureResourceType = "Microsoft.App/containerApps"
AzureResourceTypeContainerAppJob AzureResourceType = "Microsoft.App/jobs"
AzureResourceTypeContainerAppEnvironment AzureResourceType = "Microsoft.App/managedEnvironments"
AzureResourceTypeSreAgent AzureResourceType = "Microsoft.App/agents"
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exported identifier uses initialism SRE, so this constant should follow Go initialism conventions (and match patterns like AzureResourceTypeManagedHSM / AzureResourceTypeCDNProfile) by naming it AzureResourceTypeSREAgent. Renaming now avoids locking in an inconsistent public API name.

Suggested change
AzureResourceTypeSreAgent AzureResourceType = "Microsoft.App/agents"
AzureResourceTypeSREAgent AzureResourceType = "Microsoft.App/agents"

Copilot uses AI. Check for mistakes.
Comment on lines +49 to +50
name: "SreAgent",
resourceType: AzureResourceTypeSreAgent,
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the resource type constant is renamed to use the SRE initialism (e.g., AzureResourceTypeSREAgent), update this test case name and reference accordingly to keep the exported API and its tests consistent.

Suggested change
name: "SreAgent",
resourceType: AzureResourceTypeSreAgent,
name: "SREAgent",
resourceType: AzureResourceTypeSREAgent,

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants