Skip to content

fix: To reuse Log Analytics across subscriptions #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

Vamshi-Microsoft
Copy link
Contributor

Purpose

This pull request introduces improvements to the handling of existing Log Analytics Workspace IDs in both documentation and infrastructure code. The changes ensure consistency and correctness when specifying the full resource ID format and enhance the deployment logic to accommodate subscriptions explicitly.

Documentation Updates:

  • docs/CustomizingAzdParameters.md: Updated the example for setting the AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID to use the full resource ID format, including subscription, resource group, and workspace name.

Infrastructure Code Enhancements:

  • infra/deploy_ai_foundry.bicep: Added logic to extract the subscription ID (existingLawSubscription) from the existingLogAnalyticsWorkspaceId parameter, ensuring proper handling of workspace scope.
  • infra/deploy_ai_foundry.bicep: Modified the existingLogAnalyticsWorkspace resource declaration to include the subscription ID in the scope, improving accuracy when referencing existing resources.

Does this introduce a breaking change?

  • Yes
  • No

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

@Vamshi-Microsoft Vamshi-Microsoft merged commit 2aa15c0 into main Jun 5, 2025
6 checks passed
Copy link

github-actions bot commented Jun 5, 2025

🎉 This PR is included in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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