Skip to content
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

Fixes deployment validation error when LAW is not deployed, and AMBA is enabled #1820

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

arjenhuitema
Copy link
Contributor

@arjenhuitema arjenhuitema commented Nov 1, 2024

Overview/Summary

Fixes a bug in the Portal Accelerator that causes deployment validation to fail with the error message "The 'location' property must be specified for 'amba-id-amba-prod-001'". This event happens when a Log Analytics Workspace is not deployed, but Azure Monitor Baseline Alerts is enabled. This issue occurs because Azure Monitor Baseline Alerts depends on the management subscription, which is not provided if the Log Analytics Workspace is not deployed. To address this scenario, an additional section was implemented in the Baseline alerts and monitoring tab allowing the selection of a Management subscription when not deploying a Log Analytics Workspace.

image

This PR fixes/adds/changes/removes

  1. Added a new Management subscription section that is visible only if AMBA is deployed and LAW is not.
  2. Updated logic for Management subscription output.

Breaking Changes

None

Testing Evidence

Single subscription with LAW

Deployment
image

AMBA UAMI deployed to single platform subscription
image

Single subscription no LAW

Deployment
image

AMBA UAMI deployed to single platform subscription
image

Dedicated subscriptions with LAW

Deployment
image

AMBA UAMI deployed to management subscription
image

Dedicated subscriptions no LAW, with Management subscription selection in Monitoring section

Deployment
image

AMBA UAMI deployed to management subscription
image

Dedicated subscriptions no LAW, no Management subscription selection in Monitoring section

Deployment
image

In this case the AMBA UAMI is not deployed.

Testing URLs

Azure Public

Deploy To Azure

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant issues, for tracking and closure.
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Ensured contribution guidance is followed.
  • Updated relevant and associated documentation.
  • Updated the "What's New?" wiki page (located: /docs/wiki/whats-new.md)

@arjenhuitema arjenhuitema requested a review from a team as a code owner November 1, 2024 10:08
Copy link
Member

@Springstone Springstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtracey93 jtracey93 merged commit 7662460 into Azure:main Nov 5, 2024
4 checks passed
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.

3 participants