Add Microsoft.App/agents (SRE Agent) resource type support#6968
Add Microsoft.App/agents (SRE Agent) resource type support#6968rajeshkamal5050 merged 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.
|
/azp run azure-dev - cli |
JeffreyCA
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
|
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
|
/check-enforcer override |
wbreza
left a comment
There was a problem hiding this comment.
Code Review Summary
Verdict: Approve with minor nit.
Clean, well-scoped PR that correctly adds Microsoft.App/agents (SRE Agent) resource type support. The only issue is the Go initialism naming convention (SreAgent vs SREAgent), which the Copilot bot already flagged.
Positive Observations
- Clean, focused change - 8 lines across 2 files
- Correct logical grouping alongside other
Microsoft.App/*types - Good table-driven test coverage
- User-friendly display name (
SRE Agent) - No missing integration points
| 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.
[Medium] Go convention uses all-caps for well-known initialisms. This is consistent with existing patterns in the same file: AzureResourceTypeManagedHSM, AzureResourceTypeCDNProfile, AzureResourceTypeDocumentDB.
Consider renaming to AzureResourceTypeSREAgent (and updating the test reference to match).
Note: The repo's linter config disables the initialism rule, so this won't fail CI - but it's a consistency nit with the dominant pattern for well-known initialisms.
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