Modern applications rarely run entirely within a single cloud platform. An organization might host its main application in Azure, store customer data in AWS, use services across both platforms, and connect everything through APIs, networking, and monitoring systems.
This architecture provides flexibility, but it also makes troubleshooting more complicated. When an application becomes slow or unavailable, the root cause might be in an Azure resource, an AWS service, a network connection, or an application dependency.
Azure SRE Agent introduces an AI-assisted approach to site reliability engineering. Instead of manually checking every resource and log, engineering teams can use an agent to investigate incidents, collect operational information, identify possible causes, and recommend remediation steps.
The important challenge is making this investigation work across cloud boundaries without giving an AI agent unrestricted access to production infrastructure.
In this article, we will explore how Azure SRE Agent can investigate problems across Azure and AWS, understand its AWS connector, configure identity federation, and apply security controls for production environments.
Understanding Azure SRE Agent
Azure SRE Agent is an AI-powered operations assistant designed to help engineering teams investigate incidents, understand application failures, and reduce operational work.
SRE stands for Site Reliability Engineering. It focuses on maintaining application availability, reliability, performance, and operational stability.
Traditionally, when an incident occurs, an SRE engineer manually checks monitoring dashboards, application logs, infrastructure metrics, deployment history, and service dependencies.
Azure SRE Agent helps coordinate these investigations by connecting to operational tools and gathering relevant information.
Its capabilities include:
- Investigating application errors and infrastructure problems.
- Analyzing logs and monitoring information.
- Identifying possible root causes.
- Connecting application failures with recent deployments.
- Recommending corrective actions.
- Supporting controlled incident response automation.
- Maintaining useful context from previous investigations.
The agent can use connected Azure resources, observability platforms, source code repositories, and other supported integrations.
With the AWS connector, these investigations can also include information from connected AWS accounts.
Why Cross-Cloud Investigation Is Important
Consider an e-commerce application with the following architecture:
| Component | Cloud platform | Responsibility |
|---|
| Web application | Azure App Service | Handles customer requests |
| Inventory API | Azure Container Apps | Processes inventory requests |
| Product database | Amazon DynamoDB | Stores product information |
| Monitoring | Azure Application Insights | Tracks application performance |
| Infrastructure monitoring | Amazon CloudWatch | Tracks AWS resource metrics |
Now imagine customers start receiving HTTP 500 errors when checking product availability.
The Azure application logs show that requests are failing, but they do not immediately explain why.
The actual problem might be related to:
- An unavailable DynamoDB table.
- Increased database latency.
- AWS permissions changing unexpectedly.
- Network connectivity problems.
- An application deployment introducing incorrect configuration.
An engineer would normally need to open Azure Portal, AWS Management Console, Application Insights, and CloudWatch to investigate the issue.
Cross-cloud investigation allows Azure SRE Agent to collect evidence from connected environments and analyze the relationship between these components.
The objective is to reduce manual context switching and help engineers investigate the complete application rather than looking at each cloud independently.
Understanding the AWS Connector
Azure SRE Agent provides an AWS connector that allows the agent to access operational tools exposed through the AWS Model Context Protocol (MCP) service.
MCP provides a standardized way for AI applications to interact with external tools and services.
Instead of building and maintaining a custom integration between Azure SRE Agent and AWS, developers can use the supported connector.
The connector provides access to AWS investigation capabilities according to the configured identity, IAM permissions, and tool approval policies.
How the Integration Works
The integration involves four important components.
- Azure SRE Agent: Coordinates the investigation and decides which available tools are relevant.
- Azure Managed Identity: Provides the identity used to establish trusted access.
- AWS IAM Role: Defines which AWS resources and operations the agent can access.
- AWS MCP Service: Exposes the supported AWS tools to the agent.
The overall authentication and investigation flow looks like this:
Azure SRE Agent
|
v
Azure Managed Identity
|
v
OIDC Token
|
v
AWS STS
|
v
Assume IAM Role
SREAgentRole
|
v
Temporary AWS
Credentials
|
v
AWS MCP Service
|
v
AWS Investigation
|
v
Results Returned
to SRE Agent
The important security benefit is that the integration uses identity federation instead of requiring developers to store long-lived AWS access keys in the Azure application.
Connecting AWS With Azure SRE Agent
Before configuring the connector, ensure that you have:
- An existing Azure SRE Agent.
- An Azure managed identity available to the agent.
- Access to the target AWS account.
- Permission to configure AWS IAM identity providers, roles, and policies.
- The AWS account ID.
The AWS connector is a preview capability, so the required early-access setting must also be enabled in the agent configuration.
Step 1: Enable the AWS Connector
Open the Azure SRE Agent configuration and navigate to its settings.
Enable the Early access to features option if required for the preview connector.
Next, navigate to:
Build + configure
|
v
Extensions
|
v
Cloud providers
|
v
Create connection
|
v
Amazon Web Services (AWS)
This opens the AWS connection configuration process.
Step 2: Select the Azure Managed Identity
Select the managed identity that Azure SRE Agent will use to authenticate with AWS.
The configuration wizard provides the identity information required for federation.
You will need:
| Value | Purpose |
|---|
| Tenant ID | Identifies the Microsoft Entra tenant |
| Managed identity client ID | Identifies the managed identity for the audience |
| Managed identity principal ID | Identifies the principal in the trust policy |
| AWS account ID | Identifies the target AWS account |
Keep these values available because they are required when configuring the AWS identity provider and IAM role.
Step 3: Configure AWS Identity Federation
Open the AWS Management Console and navigate to IAM.
First, create an OpenID Connect identity provider.
Configure the provider URL using your Microsoft Entra tenant:
https://login.microsoftonline.com/<TENANT_ID>/v2.0
Set the audience to the client ID of the selected Azure managed identity.
Next, create an IAM role named:
SREAgentRole
Select Web Identity as the trusted entity type and configure the previously created OIDC provider.
The role must also include the AWS managed policy required for signing in to the AWS MCP service:
AWSMCPSignInOAuthAccessPolicy
After creating the role, configure its trust policy to restrict access to the selected managed identity.
An illustrative trust policy structure is shown below:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::<ACCOUNT_ID>:oidc-provider/login.microsoftonline.com/<TENANT_ID>/v2.0"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"login.microsoftonline.com/<TENANT_ID>/v2.0:aud": "<MI_CLIENT_ID>",
"login.microsoftonline.com/<TENANT_ID>/v2.0:oaud": "59f0a04a-b322-4310-adc9-39ac41e9631e",
"login.microsoftonline.com/<TENANT_ID>/v2.0:sub": "<MI_PRINCIPAL_ID>"
}
}
}
]
}
Replace the placeholders with the actual values provided by the Azure SRE Agent configuration wizard.
Keep all three conditions in the trust policy. They restrict which managed identity can assume the AWS role.
The role's trust policy controls who can assume it, while its attached permission policies control what that identity can do after authentication.
These are separate security responsibilities and should be reviewed independently.
Controlling AWS Resource Permissions
Successfully connecting Azure SRE Agent to AWS does not mean the agent should have unrestricted access to the AWS account.
The IAM role should receive only the permissions required for the intended investigations.
For example, an SRE team investigating database performance may need permission to inspect DynamoDB configuration, retrieve CloudWatch metrics, and examine relevant operational information.
It may not need permission to delete databases or modify production networking.
A useful starting point is to separate read operations from write operations.
| Permission level | Typical operations | Recommended use |
|---|
| Read-only | Inspect resources, retrieve metrics, review logs | Initial investigations |
| Limited write | Perform selected operational actions | Controlled remediation |
| Broad administrative access | Modify multiple infrastructure resources | Avoid for routine agent operations |
The AWS connector provides example policies for read-only and read-write access.
The supplied read-only policy can include access to workload information and secrets, as well as decryption permissions. Therefore, read-only should not automatically be interpreted as harmless or free of sensitive-data exposure.
Review the actual policy permissions before attaching them.
Write access should only be enabled when the operational requirements justify it.
Investigating an Application Failure Across Both Clouds
After successfully connecting AWS, the agent can use the available AWS tools alongside its Azure investigation capabilities.
Consider the earlier inventory application example.
The application runs on Azure Container Apps and retrieves inventory information from Amazon DynamoDB.
The API starts returning HTTP 500 errors.
An engineer can ask the agent to investigate the issue using a natural-language request.
For example:
Investigate why the inventory API is
returning HTTP 500 errors.
Check the Azure Container Apps logs,
recent application revisions, and
relevant Application Insights telemetry.
Then investigate the connected AWS account
named aws-production.
Check the DynamoDB table configuration,
CloudWatch metrics, and relevant errors.
Correlate the findings and identify
the most likely cause.
The agent can gather evidence from the connected environments, depending on the permissions and tools available.
A useful investigation should produce:
- The affected Azure application or resource.
- Relevant application error information.
- Recent deployment or configuration changes.
- Related AWS resource metrics.
- Possible dependency failures.
- Evidence supporting the suspected cause.
- Recommended troubleshooting or remediation steps.
The agent should distinguish between confirmed findings and possible explanations.
For example, increased DynamoDB latency might correlate with API failures, but correlation alone does not prove that the database caused the incident.
Engineers should review the supporting evidence before applying a fix.
Supporting Multiple AWS Accounts
Large organizations frequently separate their AWS environments into different accounts.
For example:
| AWS account | Purpose |
|---|
| aws-development | Development workloads |
| aws-staging | Pre-production testing |
| aws-production | Live applications |
| aws-data | Analytics and data processing |
Azure SRE Agent supports separate named AWS connections for different accounts.
Each connection uses the IAM role and permissions configured in its respective account.
This makes it possible to investigate different environments without combining their permissions into a single unrestricted AWS role.
Use meaningful connection names so that engineers can clearly identify the environment during investigations.
For example:
aws-development
aws-staging
aws-production
Production access should receive stricter permissions and approval requirements than development access.
Monitoring and Auditing Agent Activity
Cross-cloud access introduces additional auditing requirements.
Engineering and security teams should be able to determine which resources were accessed and which operations were performed.
AWS CloudTrail can record supported AWS MCP service tool calls.
The agent uses the SREAgentRole role, with role sessions beginning with AzureSREAgent-, which can help identify related activity.
However, audit coverage depends on the supported operations and CloudTrail configuration.
For production environments:
- Enable appropriate CloudTrail logging.
- Review role assumptions and permission changes.
- Monitor unexpected access patterns.
- Retain audit records according to organizational requirements.
- Investigate unexpected write operations.
- Correlate cloud activity with application incident records.
This provides an additional layer of accountability when AI agents interact with production infrastructure.
Best Practices for Production Cross-Cloud Investigations
Start With Read-Only Permissions
Begin with read-only access while evaluating the connector.
Verify that the agent can retrieve the required resource information and monitoring data before considering write permissions.
Use Managed Identity and OIDC Federation
Avoid storing long-lived AWS access keys in application settings or environment variables.
Identity federation provides a way to exchange a trusted identity token for temporary AWS credentials.
Restrict the IAM Trust Policy
Do not configure an IAM role that trusts an unrestricted identity provider without appropriate conditions.
Restrict the role to the intended tenant, managed identity, and audience.
Separate Production and Non-Production Access
Use separate AWS accounts and named connections where appropriate.
Apply stricter approval policies to production environments.
Require Approval for Sensitive Actions
Investigations and remediation are different responsibilities.
Allowing the agent to inspect logs does not mean it should automatically restart services, modify databases, or change infrastructure.
Use the agent's tool approval policies and run modes to control sensitive operations.
Validate Findings Before Remediation
AI-generated root cause analysis should be treated as an investigation result rather than an unquestionable conclusion.
Review the supporting logs, metrics, and infrastructure changes before applying a production fix.
Common Mistakes and Troubleshooting
| Problem | Possible cause | Recommended solution |
|---|
| AWS connection fails | Incorrect OIDC configuration | Verify tenant ID, audience, and identity details |
| Agent cannot assume IAM role | Incorrect trust policy | Check the federated principal and all trust conditions |
| AWS tools are unavailable | Missing MCP sign-in permissions | Verify the required AWS managed policy |
| Agent cannot inspect resources | Insufficient IAM permissions | Review the role's attached resource policies |
| Production operations are blocked | Tool approval restrictions | Review approval settings and run modes |
| Unexpected access occurs | Overly broad IAM permissions | Apply least-privilege policies and review CloudTrail |
Advantages and Disadvantages
Advantages:
- Investigates application dependencies across Azure and AWS.
- Reduces manual switching between cloud consoles.
- Uses identity federation instead of long-lived AWS access keys.
- Supports multiple AWS account connections.
- Combines application telemetry with infrastructure information.
- Provides a foundation for governed incident response automation.
- Supports auditing through existing AWS logging capabilities.
Disadvantages:
- Requires additional identity and IAM configuration.
- Available investigation capabilities depend on the connected AWS tools.
- Incorrect permissions can expose sensitive resources.
- Cross-cloud investigations require appropriate monitoring data.
- AI-generated conclusions still require engineering verification.
- Preview capabilities may have limitations and change over time.
Summary
Azure SRE Agent provides an AI-assisted approach to investigating infrastructure and application problems. With its AWS connector, engineering teams can extend investigations beyond Azure and gather operational evidence from connected AWS accounts.
The integration uses an Azure managed identity, OpenID Connect federation, AWS Security Token Service, and an IAM role named SREAgentRole. This avoids the need to manage long-lived AWS access keys for the connection.
However, cross-cloud access must be configured carefully. Developers should apply least-privilege permissions, separate production and development access, review tool approval policies, and maintain audit logging.
The real value of cross-cloud investigation is not simply connecting two cloud platforms. It is helping engineering teams understand how application components, infrastructure, and external dependencies interact during an incident.
By combining Azure SRE Agent with controlled AWS access, organizations can build a more connected incident investigation process while keeping infrastructure security and operational decisions under human control.
Azure SRE AgentAWS connectorAI agentssite reliability engineeringAzure managed identityAWS IAM federationModel Context Protocol
Join the conversation! Your thoughts help the community grow.