Connect Azure SRE Agent to ServiceNow in under 5 minutes using Basic Auth. Create incidents in ServiceNow and watch the AI agent automatically investigate, triage, and resolve them complete with work notes written back to ServiceNow!
π― What You'll Achieve
In this tutorial, you'll:
- Connect Azure SRE Agent to ServiceNow as your incident management platform
- Create a test incident in ServiceNow
- Watch the AI agent automatically pick up, investigate, and resolve the incident
- See the agent write triage findings and resolution notes back to ServiceNow
Time to complete: ~10 minutes
π¬ The End Result
Before we dive in, here's what the end result looks like:
ServiceNow Incident - Resolved by Azure SRE Agent
The Azure SRE Agent:
- β Detected the incident from ServiceNow
- β Acknowledged and began triage automatically
- β Investigated AKS cluster memory utilization
- β Documented findings in work notes
- β Resolved the incident with detailed root cause analysis
π Prerequisites
- A ServiceNow instance (Developer, PDI, or Enterprise)
- Administrator access to ServiceNow
- An Azure SRE Agent deployed in your Azure subscription
π‘ Don't have a ServiceNow instance? Get a free Personal Developer Instance (PDI) at developer.servicenow.com
π§ Step 1: Gather Your ServiceNow Credentials
To connect Azure SRE Agent to ServiceNow, you need three pieces of information:
| Component | Where to Find It |
|---|---|
| ServiceNow Endpoint | Browser address bar when logged into ServiceNow (format: https://your-instance.service-now.com) |
| Username | Click your profile avatar β Profile β User ID |
| Password | Your ServiceNow login password |
Finding Your Instance URL
Your ServiceNow instance URL is visible in your browser's address bar when logged in:
https://{your-instance-name}.service-now.com
Finding Your Username
- Click your profile avatar in the top-right corner of ServiceNow
- Click Profile
- Your User ID is your username
βοΈ Step 2: Connect SRE Agent to ServiceNow
Navigate to Your SRE Agent
- Open the Azure Portal
- Search for "Azure SRE Agent" in the search bar
- Click on Azure SRE Agent (Preview) in the results
- Select your agent from the list
Configure the Incident Platform
- In the left navigation, expand Settings
- Click Incident platform
- Click the Incident platform dropdown
- Select ServiceNow
Here's what the ServiceNow configuration form looks like:
Enter Your ServiceNow Credentials
| Field | Value |
|---|---|
| ServiceNow endpoint | Your ServiceNow instance URL (from Step 1) |
| Username | Your ServiceNow username (from Step 1) |
| Password | Your ServiceNow password |
| Quickstart response plan | β Enable this for automatic investigation |
Save and Verify
- Click the Save button
- Wait for validation to complete
- Look for: "ServiceNow is connected." with a green checkmark
π¨ Step 3: Create a Test Incident in ServiceNow
Now let's test the integration by creating an incident in ServiceNow.
Navigate to Create Incident
- In ServiceNow, click All in the left navigation
- Search for "Incident"
- Click Incident β Create New
Fill in the Incident Details
| Field | Value |
|---|---|
| Caller | Select any user (e.g., System Administrator) |
| Short description | [SRE Agent Test] AKS Cluster memory pressure detected in production environment |
| Impact | 2 - Medium |
Submit the Incident
Click Submit to create the incident. Note the incident number that's assigned.
π€ Step 4: Watch SRE Agent Investigate
Check the SRE Agent Portal
- Return to the Azure Portal
- Open your SRE Agent
- Click Activities β Incidents
Within seconds, you should see your ServiceNow incident appear!
Observe the Autonomous Investigation
Click on the incident to see the SRE Agent's investigation in action:
The agent automatically:
- π Acknowledged the incident
- π Created a triage plan with clear steps
- π Identified AKS clusters in your subscription
- π Validated memory utilization metrics
- β Resolved the incident with findings
π Step 5: Review Resolution in ServiceNow
Check the ServiceNow Incident
Return to ServiceNow and open your incident. You'll see:
- State: Changed to Resolved
- Activity Stream: Multiple work notes from the agent
- Resolution notes: Detailed findings
Resolution Notes
The agent writes comprehensive resolution notes including:
- Timestamp of resolution
- Root cause analysis
- Validation steps performed
- Fix applied (if any)
π Next Steps
- Create custom response plans to customize how the agent responds to different incident types
- Configure alert routing to route specific Azure Monitor alerts to the agent
- Explore the Azure SRE Agent documentation for more features
Share your experiences, learnings, and questions with other early adopters. Start a discussion in our Community Hub