Skip to content

[Core] update azurebleucloud endpoints and suffixes - #34049

Open
alexkm-bleucloud wants to merge 7 commits into
Azure:devfrom
alexkm-bleucloud:feature/update-azurebleucloud-endpoints
Open

[Core] update azurebleucloud endpoints and suffixes#34049
alexkm-bleucloud wants to merge 7 commits into
Azure:devfrom
alexkm-bleucloud:feature/update-azurebleucloud-endpoints

Conversation

@alexkm-bleucloud

@alexkm-bleucloud alexkm-bleucloud commented Sep 9, 2026

Copy link
Copy Markdown

Related command

az cloud set -n AzureBleuCloud

Description

Updates the hardcoded AzureBleuCloud cloud definition in src/azure-cli-core/azure/cli/core/cloud.py to add several resource endpoints that weren't previously configured, and correct a couple of existing values.

New endpoints/suffixes added (previously unset):

Corrected values:

Also normalized trailing slashes on resource_manager and microsoft_graph_resource_id for consistency with this cloud's other endpoint values.

The cloud name (AzureBleuCloud) is unchanged — az cloud set -n AzureBleuCloud continues to work as before.

Review feedback addressed :

  • endpoints.portal no longer has a trailing slash as per Copilot review feedback
  • endpoints.active_directory no longer has a trailing slash either, for the same reason (induced a double-slash concat bug downstream)

Testing Guide

run az cloud set -n AzureBleuCloud

No impact on unit tests. Ran test_cloud.py locally successfully.

History Notes

[Cloud] az cloud set -n AzureBleuCloud: Added unset previously unset endpoints


This checklist is used to make sure that common guidelines for a pull request are followed.

alexkm-bleucloud and others added 3 commits September 9, 2026 08:24
Adds several new resource IDs (App Insights, Log Analytics, Synapse,
attestation, Active Directory Data Lake, ADL suffixes), fixes the
missing leading dot on attestation_endpoint, normalizes trailing
slashes on several endpoint URLs, and updates vm_image_alias_doc to
match the current metadata source.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Individual PRs don't touch HISTORY.rst in this repo -- it's aggregated
in bulk by the automated {Release} Upgrade commit, not by contributors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Sep 9, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution alexkm-bleucloud! We will review the pull request and get back to you soon.

@yonzhan

Copy link
Copy Markdown
Collaborator

Cloud

@alexkm-bleucloud alexkm-bleucloud left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@microsoft-github-policy-service agree

@alexkm-bleucloud
alexkm-bleucloud marked this pull request as ready for review September 9, 2026 09:41
@alexkm-bleucloud
alexkm-bleucloud requested a review from a team as a code owner September 9, 2026 09:41
Copilot AI lite review requested due to automatic review settings September 9, 2026 09:41
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new trailing slash on endpoints.portal can produce double-slash portal deep links in existing callers that append '/#resource/...' to the portal base URL.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the hardcoded AzureBleuCloud definition in azure-cli-core so az cloud set -n AzureBleuCloud provides a more complete and corrected set of resource endpoints and DNS suffixes for Azure CLI to use.

Changes:

  • Added previously-unset AzureBleuCloud endpoints (Data Lake, App Insights, Log Analytics, Synapse, Attestation).
  • Added Data Lake-related suffixes and corrected attestation_endpoint suffix formatting.
  • Updated vm_image_alias_doc URL and normalized several endpoint trailing slashes for consistency.
File summaries
File Description
src/azure-cli-core/azure/cli/core/cloud.py Extends and corrects the hardcoded AzureBleuCloud endpoints/suffixes used by Azure CLI cloud selection.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/azure-cli-core/azure/cli/core/cloud.py Outdated
@alexkm-bleucloud

Copy link
Copy Markdown
Author

alexkm-bleucloud please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

alexkm-bleucloud and others added 3 commits September 9, 2026 09:50
Review feedback: several callers build portal deep links by
concatenating endpoints.portal + '/#resource/...' (e.g.
src/azure-cli/azure/cli/command_modules/acs/custom.py:339), which
produced a double slash with the trailing '/' this endpoint had.
Every other hardcoded cloud's portal endpoint has no trailing slash;
this restores that convention.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…dpoints' into feature/update-azurebleucloud-endpoints
Same class of bug as the portal fix: src/azure-cli/azure/cli/command_modules/profile/_validators.py:19
builds the OIDC discovery URL via
'{}/{}/v2.0/.well-known/openid-configuration'.format(active_directory_endpoint, tenant),
which double-slashes when the endpoint already ends in '/'. This
breaks az login --tenant <domain-name> (non-GUID tenant) against
AzureBleuCloud. Every other hardcoded cloud's active_directory
endpoint has no trailing slash; this restores that convention.
The MSAL-facing path (_create_identity_instance -> Identity ->
PublicClientApplication) normalizes trailing slashes internally and
is unaffected either way.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@alexkm-bleucloud alexkm-bleucloud changed the title [Cloud] update azurebleucloud endpoints and suffixes [Core] update azurebleucloud endpoints and suffixes Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-codegen-extensibility-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Portal az portal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants