8000 [Generated by SRE Agent] Add Bicep modules for all rg-sre-lab resources by AlahmadiQ8 · Pull Request #9 · AlahmadiQ8/grubify · GitHub
[go: up one dir, main page]

Skip to content

[Generated by SRE Agent] Add Bicep modules for all rg-sre-lab resources - #9

Open
AlahmadiQ8 wants to merge 1 commit into
mainfrom
sre-agent/add-bicep-for-rg-resources
Open

AlahmadiQ8 wants to merge 1 commit into
mainfrom
sre-agent/add-bicep-for-rg-resources

Conversation

@AlahmadiQ8
Copy link
Copy Markdown
Owner

Summary

Adds missing Bicep templates so the infra/ directory fully covers all resources deployed in the rg-sre-lab resource group.

New modules

Module Resource type
core/monitor/log-analytics-workspace.bicep Log Analytics Workspace
core/monitor/application-insights.bicep Application Insights (linked to LAW)
core/monitor/action-group.bicep Azure Monitor Action Group
core/monitor/metric-alert.bicep Azure Monitor Metric Alert
core/identity/user-assigned-identity.bicep User-Assigned Managed Identity

Modified files

  • core/host/container-apps-environment.bicep — refactored to accept an external Log Analytics workspace name instead of creating an inline one. This avoids a duplicate LAW and keeps the workspace as a standalone, reusable module.
  • main.bicep — wires all new modules, matches the deployed resource configuration (CPU/memory, scaling limits, env vars, alert criteria).

Resource coverage

All resources in rg-sre-lab are now represented in Bicep:

  • Microsoft.OperationalInsights/workspaces (law-*)
  • Microsoft.Insights/components (appi-*)
  • Microsoft.ManagedIdentity/userAssignedIdentities (id-sre-*)
  • Microsoft.Insights/actionGroups (ag-*)
  • Microsoft.Insights/metricAlerts (alert-http-5xx-*)
  • Microsoft.ContainerRegistry/registries (cr*) — already existed
  • Microsoft.App/managedEnvironments (cae-*) — already existed
  • Microsoft.App/containerApps (ca-grubify-*) — already existed

Note: The Microsoft.App/agents resource (SRE Agent itself) is excluded as it is managed outside the application IaC.


Created by Azure SRE Agent: Open thread

Add missing Bicep templates to match the deployed Azure resources:

- core/monitor/log-analytics-workspace.bicep: standalone LAW module
- core/monitor/application-insights.bicep: App Insights linked to LAW
- core/monitor/action-group.bicep: alert action group
- core/monitor/metric-alert.bicep: reusable metric alert module
- core/identity/user-assigned-identity.bicep: user-assigned managed identity

Updated existing files:
- core/host/container-apps-environment.bicep: accept external LAW
  instead of creating an inline one
- main.bicep: wire all new modules, match deployed resource config
  (CPU/memory, scaling, env vars, alert criteria)

Co-authored-by: Azure SRE Agent <noreply@microsoft.com>
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.

2 participants

0