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

[Monitor][Query] Support non-public clouds #29602

Merged
merged 5 commits into from Apr 11, 2023

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Mar 27, 2023

This adds support and documents non-public cloud usage for LogsQueryClient and MetricsQueryClient.

There are two URIs we are concerned with:

  • the Log Analytics API endpoint (e.g., https://api.loganalytics.io/v1)
  • the audience for determining the credential policy scope (https://api.loganalytics.io)

The endpoint passed in is expected to be the full endpoint including the v1, and the audience is expected to be the base URL of the endpoint. This logic is added to LogsQueryClient.

Also adjust tests to be able to accompany different cloud endpoints.
Verified on Azure China Cloud by running live tests there using the weekly pipeline.

Closes: #27167

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@pvaneck
Copy link
Member Author

pvaneck commented Apr 8, 2023

/azp run python - monitor - tests-weekly

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pvaneck
Copy link
Member Author

pvaneck commented Apr 8, 2023

/azp run python - monitor - tests-weekly

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pvaneck pvaneck requested review from kristapratico and removed request for lmazuel April 8, 2023 02:05
This adds support and documents non-public cloud usage
for LogsQueryClient and MetricsQueryClient.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck merged commit 1585382 into Azure:main Apr 11, 2023
16 checks passed
@pvaneck pvaneck deleted the query-sovereign-cloud branch April 11, 2023 21:24
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.

[Monitor Query] Document sovereign cloud support in logs and metrics query clients
5 participants