Add Microsoft.App/agents (SRE Agent) resource type support#6968
Add Microsoft.App/agents (SRE Agent) resource type support#6968dm-chelupati wants to merge 1 commit intoAzure:mainfrom
Conversation
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/
@microsoft-github-policy-service agree company="Microsoft" |
There was a problem hiding this comment.
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 forMicrosoft.App/agents - Adds a
GetResourceTypeDisplayNamemapping to showSRE 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" |
There was a problem hiding this comment.
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.
| AzureResourceTypeSreAgent AzureResourceType = "Microsoft.App/agents" | |
| AzureResourceTypeSREAgent AzureResourceType = "Microsoft.App/agents" |
| name: "SreAgent", | ||
| resourceType: AzureResourceTypeSreAgent, |
There was a problem hiding this comment.
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.
| name: "SreAgent", | |
| resourceType: AzureResourceTypeSreAgent, | |
| name: "SREAgent", | |
| resourceType: AzureResourceTypeSREAgent, |
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 theMicrosoft.App/agentsresource type.Changes
AzureResourceTypeSreAgentconstant forMicrosoft.App/agentsSRE AgentinGetResourceTypeDisplayNameBefore
After
Resource Details
Microsoft.App/agents2025-05-01-preview