Skip to content

Fix starter lab SRE response plan creationModify response plan creation parameters in post-provision.sh - #302

Open
DOliana wants to merge 1 commit into
microsoft:mainfrom
DOliana:patch-1
Open

Fix starter lab SRE response plan creationModify response plan creation parameters in post-provision.sh#302
DOliana wants to merge 1 commit into
microsoft:mainfrom
DOliana:patch-1

Conversation

@DOliana

@DOliana DOliana commented Aug 18, 2026

Copy link
Copy Markdown

Summary

Fixes response plan creation in the starter lab post-provision script.

Problem

The script repeatedly received HTTP 400 when creating the grubify-http-errors response plan. Azure Monitor was connected and alerts fired successfully, but no response plan existed, so alerts were not routed to the SRE agent.

Changes

  • Replace obsolete maxAttempts with maxAutomatedInvestigationAttempts
  • Add the response plan fields required by the current API
  • Scope the plan to alert-http-5xx-sre-lab
  • Print the API response body when creation fails
  • Quote temporary file paths

Evidence

Before:

  • Response plan PUT returned HTTP 400
  • SRE Agent response-plan API returned []
  • Azure Monitor alerts fired but were not routed to the agent

After:

  • Response plan PUT returned HTTP 200
  • bash scripts/post-provision.sh --retry completed successfully
  • The grubify-http-errors plan was created and routed to incident-handler

fix(starter-lab): correct SRE response plan payload
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.

1 participant