Skip to content

Add AzureChinaCloud and AzureUSGovernment endpoint templates for log-analytics data-plane client - #1085

Draft
Aditya Pujara (a0x1ab) wants to merge 1 commit into
Azure:mainfrom
a0x1ab:agent-assist/azure-aaz-issue-10318-a0x1ab-azure-cli-extensions-pr-2-1d30a5e3a0fa
Draft

Add AzureChinaCloud and AzureUSGovernment endpoint templates for log-analytics data-plane client#1085
Aditya Pujara (a0x1ab) wants to merge 1 commit into
Azure:mainfrom
a0x1ab:agent-assist/azure-aaz-issue-10318-a0x1ab-azure-cli-extensions-pr-2-1d30a5e3a0fa

Conversation

@a0x1ab

Copy link
Copy Markdown
Member

Description

Durable AAZ command-model source for issue #10318.

az monitor log-analytics query fails in AzureChinaCloud and AzureUSGovernment because the operationalinsights data-plane client only defined an AzureCloud host template, causing _build_base_url to return None.

Changes

  • Resources/data-plane/microsoft.operationalinsights/client.xml and client.json: Add AzureChinaCloud and AzureUSGovernment endpoint templates alongside the existing AzureCloud entry:

    Cloud Endpoint
    AzureChinaCloud https://api.loganalytics.azure.cn
    AzureCloud https://api.loganalytics.io
    AzureUSGovernment https://api.loganalytics.us

please provide the link to the corresponding pull request in Azure/azure-cli or Azure/azure-cli-extensions:

a0x1ab/azure-cli-extensions#2

…analytics data-plane client

* Initial plan

* Add AzureChinaCloud and AzureUSGovernment host templates for log-analytics data-plane client

Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
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