feat: Support BYO Log Analytics workspace for Foundry app and PostgreSQL diagnostics#154
Merged
Roopan-Microsoft merged 12 commits intoMay 15, 2026
Merged
Conversation
chore: dev to main merge
chore: dev to main merge
Adds Bicep CLI (v0.33.0+) to the local deployment prerequisites so users provisioning this accelerator locally have the required Bicep version installed before running 'azd up' / 'az deployment'. Work item: AB#42634
docs: Add Bicep CLI (v0.33.0+) to local deployment prerequisites
…urceId Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…tion Insights integration Co-authored-by: Copilot <copilot@github.com>
…greSQL diagnostics Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds “Bring Your Own” (BYO) Log Analytics Workspace support so deployments can route PostgreSQL diagnostics to an existing workspace and (optionally) create a workspace-based Application Insights component linked to it, plus exposes related outputs and updates docs.
Changes:
- Added
existingLogAnalyticsWorkspaceResourceIdparameter to the Bicep/ARM templates and bicepparam wiring viaEXISTING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID. - Conditionally creates an Application Insights component linked to the supplied workspace and configures PostgreSQL Flexible Server diagnostic settings to send logs/metrics to that workspace.
- Added deployment outputs for the BYO workspace/App Insights details and updated README/deployment docs to describe the feature and required tooling.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents Bicep CLI requirement. |
| infra/main.bicep | Implements BYO LAW logic, conditional App Insights creation, PostgreSQL diagnostic settings, and outputs. |
| infra/main.bicepparam | Adds BYO workspace parameter wired from an azd environment variable. |
| infra/main.json | Generated ARM template updates reflecting new parameter/resources/outputs. |
| docs/parameter_guide.md | Adds BYO observability section with setup, outputs, and permissions guidance. |
| docs/deploymentguide.md | Updates prerequisites and adds BYO LAW guidance to deployment documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Roopan-Microsoft
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces support for "Bring Your Own" (BYO) Log Analytics Workspace, allowing users to route observability data from the deployed Foundry application and wrapper-managed PostgreSQL Flexible Server to an existing Log Analytics workspace. It also ensures the Application Insights component is created and linked appropriately, and updates documentation and parameters to guide users through this new capability.
The most important changes are:
Infrastructure & Parameterization:
existingLogAnalyticsWorkspaceResourceIdtoinfra/main.bicep,infra/main.bicepparam, andinfra/main.json, enabling users to specify an existing Log Analytics workspace for telemetry and diagnostics. [1] [2] [3]Outputs & Observability:
Documentation Updates:
README.mdanddocs/deploymentguide.mdto document the new BYO Log Analytics Workspace feature, required CLI versions, and usage instructions. [1] [2] [3] [4] [5]Version Requirements:
These changes make it possible to centralize observability in existing Azure environments and improve flexibility for enterprise deployments.
Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information