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

AzureMonitor: Retrieve Azure clouds from SDK #87944

Merged
merged 11 commits into from
May 30, 2024

Conversation

JonCole
Copy link
Contributor

@JonCole JonCole commented May 15, 2024

What is this feature?

The Azure Monitor DS frontend currently has the list of azure clouds hard coded. This PR uses the grafana-azure-sdk-react package so that the list can be updated easily. Note: in this PR I am not yet moving from the AzureCredential class defined in the AzMon DS to the version of that class in the sdk - that will come in a later PR since it is lower priority.

Why do we need this feature?

This will allow Azure to easily add support for more clouds as they come online

Who is this feature for?

Azure Managed Grafana

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@grafana-pr-automation grafana-pr-automation bot added area/frontend datasource/Azure Azure Monitor Datasource pr/external This PR is from external contributor labels May 15, 2024
@JonCole JonCole changed the title AzureMonitor: get the list of azure clouds from the SDK instead of fr… AzureMonitor: get Azure clouds from SDK May 16, 2024
@JonCole JonCole marked this pull request as ready for review May 22, 2024 08:23
@JonCole JonCole requested review from a team as code owners May 22, 2024 08:23
@JonCole JonCole requested review from asimpson, bossinc, aangelisc, adamyeats and jackw and removed request for a team May 22, 2024 08:23
import { DefaultSubscription } from './DefaultSubscription';

const legacyAzureClouds: SelectableValue[] = [
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we'll need to keep this const or migrate it to the SDK also

@Jeralan
Copy link
Contributor

Jeralan commented May 24, 2024

@aangelisc fixed some backend auth issues, and added some logic for merging the existing legacy cloud names with any custom cloud names, this should prevent the UI from being invalid for existing data sources

@JonCole
Copy link
Contributor Author

JonCole commented May 29, 2024

@aangelisc I added logic to normalize the cloud name in the front end. Can you take another look to make sure that this approach will work?

@aangelisc aangelisc added no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels May 30, 2024
@aangelisc aangelisc added this to the 11.1.x milestone May 30, 2024
@aangelisc aangelisc changed the title AzureMonitor: get Azure clouds from SDK AzureMonitor: Retrieve Azure clouds from SDK May 30, 2024
@aangelisc aangelisc merged commit ba4c1fc into grafana:main May 30, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/backend area/frontend datasource/Azure Azure Monitor Datasource no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants