[Core] Add AzureClouds.AZURE_BLEUCLOUD cloud setting for the Bleu national partner cloud (France)#48072
Closed
devi0042JD wants to merge 2 commits into
Closed
Conversation
…artner cloud (France) azure-core: adds the AZURE_BLEUCLOUD member to the AzureClouds enum so the Bleu cloud can be selected via AZURE_SDK_CLOUD_CONF or settings.azure_cloud. azure-mgmt-core: get_arm_endpoints now returns the Bleu ARM endpoint (management.sovcloud-api.fr) and credential scopes, and the minimum azure-core requirement is raised to 1.42.0 accordingly.
Contributor
|
Thank you for your contribution @devi0042JD! We will review the pull request and get back to you soon. |
|
Azure Pipelines: Successfully started running 3 pipeline(s). 6 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Author
|
/azp run python - autorest - pr |
|
Commenter does not have sufficient privileges for PR 48072 in repo Azure/azure-sdk-for-python |
devi0042JD
marked this pull request as ready for review
July 15, 2026 15:59
devi0042JD
requested review from
ChenxiJiang333,
benbp,
danieljurek,
iscai-msft,
kashifkhan,
mikeharder,
msyyc and
xirzec
as code owners
July 15, 2026 15:59
Author
|
The python - autorest - pr failure is unrelated to this change — pnpm@9.5.0 registry signature verification fails in Prepare Environment. Could a maintainer re-run it? |
|
Azure Pipelines: Successfully started running 3 pipeline(s). 6 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Bleu as a recognized sovereign cloud across Azure Core and ARM management clients.
Changes:
- Adds
AzureClouds.AZURE_BLEUCLOUD. - Configures Bleu ARM endpoints and credential scopes.
- Updates versions, dependencies, changelogs, tests, and spelling configuration.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.vscode/cspell.json |
Adds Bleu-specific spelling terms. |
sdk/core/azure-core/CHANGELOG.md |
Documents Bleu cloud support. |
sdk/core/azure-core/azure/core/_azure_clouds.py |
Defines the Bleu cloud enum member. |
sdk/core/azure-core/azure/core/_version.py |
Bumps azure-core to 1.42.0. |
sdk/core/azure-core/tests/test_settings.py |
Tests conversion of all cloud names. |
sdk/core/azure-mgmt-core/CHANGELOG.md |
Documents Bleu ARM support. |
sdk/core/azure-mgmt-core/azure/mgmt/core/_version.py |
Bumps azure-mgmt-core to 1.7.0. |
sdk/core/azure-mgmt-core/azure/mgmt/core/tools.py |
Maps Bleu to its ARM endpoint and scope. |
sdk/core/azure-mgmt-core/setup.py |
Requires azure-core 1.42.0 or later. |
sdk/core/azure-mgmt-core/tests/test_arm_endpoints.py |
Tests Bleu endpoint resolution. |
| ] | ||
| }, | ||
| { | ||
| "filename": "sdk/core/azure-core/**", |
Author
|
Consolidating into #48069, which now contains both the azure-identity and azure-core/azure-mgmt-core changes for Bleu. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the Bleu national partner cloud (France) as a known cloud setting, so
azure-mgmt-*clients can target Bleu through configuration instead of manualbase_url/credential_scopeson every client.azure-core (1.42.0)
AzureClouds.AZURE_BLEUCLOUDenum member in_azure_clouds.py. It is automatically accepted by theAZURE_SDK_CLOUD_CONFenvironment variable andsettings.current.azure_cloud(conversion iterates over the enum).test_convert_azure_cloudto cover conversion of all enum members.azure-mgmt-core (1.7.0)
get_arm_endpointsnow supportsAzureClouds.AZURE_BLEUCLOUD, returning:resource_manager:https://management.sovcloud-api.fr/credential_scopes:["https://management.sovcloud-api.fr/.default"]azure-corerequirement to>=1.42.0: the newAzureClouds.AZURE_BLEUCLOUDattribute is evaluated on everyget_arm_endpointscall, so running against an older azure-core would raiseAttributeErrorfor all clouds.test_arm_endpoints.With both changes,
export AZURE_SDK_CLOUD_CONF=AZURE_BLEUCLOUD(or passingcloud_setting=AzureClouds.AZURE_BLEUCLOUDto a generated mgmt client) is enough for recentazure-mgmt-*clients to resolve their base URL and credential scopes for Bleu.Context
Bleu is a Microsoft national partner cloud operated in France by a joint venture between Orange and Capgemini, designed to meet the French ANSSI SecNumCloud requirements. Its Entra authority host (
login.sovcloud-identity.fr) is already a well-known authority host in MSAL Python (AZURE_GOV_FR, since msal 1.35.1).Companion PR adding the authority host to
azure-identity: #48069Testing
pytest sdk/core/azure-core/tests/test_settings.py— 61 passedpytest sdk/core/azure-mgmt-core/tests/test_arm_endpoints.py— 1 passedAZURE_SDK_CLOUD_CONF=AZURE_BLEUCLOUD→settings.current.azure_cloudresolves toAzureClouds.AZURE_BLEUCLOUDandget_arm_endpointsreturns the Bleu endpointsblack --checkclean on all modified files