Skip to content

[azure][lfo] Display unknown subscription name if user doesn't have access #31

Merged
agulen merged 3 commits into
mainfrom
altan/2510/monsubaccess
Oct 9, 2025
Merged

[azure][lfo] Display unknown subscription name if user doesn't have access #31
agulen merged 3 commits into
mainfrom
altan/2510/monsubaccess

Conversation

@agulen
Copy link
Copy Markdown
Member

@agulen agulen commented Oct 8, 2025

Overview

AZINTS-4019

This bug occurs if:

  • The user is running through the new onboarding flow
  • There is an existing LFO in their Azure tenant
  • They do not have access in Azure to one of the subscriptions that the LFO is forwarding logs for

Our script would fail with a KeyError in this case when we try to decipher the subscription name to display in the front end. Instead, display Unknown (insufficient Azure permission) for the sub name. We can still display the subscription ID.

Testing

  • Unit test added

@agulen agulen requested a review from a team as a code owner October 8, 2025 18:27
@agulen agulen requested review from benjjs and gpalmz October 8, 2025 18:27
@agulen agulen merged commit 3018177 into main Oct 9, 2025
1 check passed
@agulen agulen deleted the altan/2510/monsubaccess branch October 9, 2025 18:37
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