Skip to content

[Core] Add AzureClouds.AZURE_BLEUCLOUD cloud setting for the Bleu national partner cloud (France)#48072

Closed
devi0042JD wants to merge 2 commits into
Azure:mainfrom
devi0042JD:core/add-azure-bleucloud-cloud-setting
Closed

[Core] Add AzureClouds.AZURE_BLEUCLOUD cloud setting for the Bleu national partner cloud (France)#48072
devi0042JD wants to merge 2 commits into
Azure:mainfrom
devi0042JD:core/add-azure-bleucloud-cloud-setting

Conversation

@devi0042JD

Copy link
Copy Markdown

Description

Adds the Bleu national partner cloud (France) as a known cloud setting, so azure-mgmt-* clients can target Bleu through configuration instead of manual base_url/credential_scopes on every client.

azure-core (1.42.0)

  • New AzureClouds.AZURE_BLEUCLOUD enum member in _azure_clouds.py. It is automatically accepted by the AZURE_SDK_CLOUD_CONF environment variable and settings.current.azure_cloud (conversion iterates over the enum).
  • Extended test_convert_azure_cloud to cover conversion of all enum members.

azure-mgmt-core (1.7.0)

  • get_arm_endpoints now supports AzureClouds.AZURE_BLEUCLOUD, returning:
    • resource_manager: https://management.sovcloud-api.fr/
    • credential_scopes: ["https://management.sovcloud-api.fr/.default"]
  • Raised the minimum azure-core requirement to >=1.42.0: the new AzureClouds.AZURE_BLEUCLOUD attribute is evaluated on every get_arm_endpoints call, so running against an older azure-core would raise AttributeError for all clouds.
  • Bumped the unreleased version from 1.6.1 to 1.7.0 since this adds a feature.
  • Added the Bleu case to test_arm_endpoints.

With both changes, export AZURE_SDK_CLOUD_CONF=AZURE_BLEUCLOUD (or passing cloud_setting=AzureClouds.AZURE_BLEUCLOUD to a generated mgmt client) is enough for recent azure-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: #48069

Testing

  • pytest sdk/core/azure-core/tests/test_settings.py — 61 passed
  • pytest sdk/core/azure-mgmt-core/tests/test_arm_endpoints.py — 1 passed
  • End-to-end check: AZURE_SDK_CLOUD_CONF=AZURE_BLEUCLOUDsettings.current.azure_cloud resolves to AzureClouds.AZURE_BLEUCLOUD and get_arm_endpoints returns the Bleu endpoints
  • black --check clean on all modified files

…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.
@github-actions github-actions Bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution @devi0042JD! We will review the pull request and get back to you soon.

@azure-pipelines

Copy link
Copy Markdown
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.

@devi0042JD

Copy link
Copy Markdown
Author

/azp run python - autorest - pr

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 48072 in repo Azure/azure-sdk-for-python

@devi0042JD
devi0042JD marked this pull request as ready for review July 15, 2026 15:59
Copilot AI review requested due to automatic review settings July 15, 2026 15:59
@devi0042JD

Copy link
Copy Markdown
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

Copy link
Copy Markdown
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.

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.

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.

Comment thread .vscode/cspell.json
]
},
{
"filename": "sdk/core/azure-core/**",
@devi0042JD

Copy link
Copy Markdown
Author

Consolidating into #48069, which now contains both the azure-identity and azure-core/azure-mgmt-core changes for Bleu.

@devi0042JD devi0042JD closed this Jul 16, 2026
@devi0042JD
devi0042JD deleted the core/add-azure-bleucloud-cloud-setting branch July 16, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants