Skip to content

[Cloud] az cloud set: Add AzureDelosCloud (Germany sovereign cloud) to the known clouds list - #34200

Merged
Yeming Liu (isra-fel) merged 2 commits into
Azure:devfrom
isra-fel:feat/add-delos-cloud-34129
Oct 19, 2026
Merged

Yeming Liu (isra-fel) merged 2 commits into
Azure:devfrom
isra-fel:feat/add-delos-cloud-34129

Conversation

@isra-fel

@isra-fel Yeming Liu (isra-fel) commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Related command
az cloud set --name AzureDelosCloud

Description
Partially addresses #34129 by adding the Delos (Germany) sovereign cloud to the known clouds list (CloudNameEnum.AzureDelosCloud + AZURE_DELOS_CLOUD + HARD_CODED_CLOUD_LIST).

Values are derived from the authoritative Azure Architecture & Design Team sovereign-clouds endpoints table.

Deliberate decisions:

Testing Guide

az cloud list --output table            # AzureDelosCloud is listed
az cloud set --name AzureDelosCloud
az cloud show --name AzureDelosCloud

Unit tests: python -m pytest src/azure-cli-core/azure/cli/core/tests/test_cloud.py -> 14 passed, 1 skipped.

History Notes
[Cloud] az cloud set: Add AzureDelosCloud (Germany sovereign cloud) to the known clouds list


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

Add the Delos (Germany) sovereign cloud so users can run
'az cloud set --name AzureDelosCloud'. Endpoints and suffixes mirror the
Bleu definition with the fr -> de suffix substitution, except where the
authoritative sovereign-clouds endpoints doc publishes an explicit Delos
value (portal = https://portal.sovcloud.de).

active_directory_graph_resource_id intentionally mirrors the Microsoft
Graph host rather than exposing the real (deprecated) Azure AD Graph
endpoint. synapse_analytics_resource_id is included alongside its suffix
counterpart to avoid reintroducing the gap fixed for Bleu in Azure#34059.

Part of Azure#34129

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7707d164-8d38-41f6-9884-04c670e74640

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 established cloud command scenario tests need canonical and lowercase Delos cases.

1 open finding
What changed in this PR

Adds Germany’s Delos sovereign cloud to Azure CLI’s built-in cloud definitions.

Changes:

  • Adds AzureDelosCloud and its endpoints/suffixes.
  • Registers Delos in the hard-coded cloud list.
  • Adds a release-history entry.
File Description
src/​azure-cli-core/​HISTORY.rst Records Delos cloud support.
src/​azure-cli-core/​azure/​cli/​core/​cloud.py Defines and registers Delos cloud metadata.

🧠 Review effort: Balanced


💡 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
@yonzhan

Copy link
Copy Markdown
Collaborator

Add AzureDelosCloud (Germany sovereign cloud) to the known clouds list

@NoriZC NoriZC added the Request X Engineering Agent Ask the agent to triage this issue or review this PR label Oct 16, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

🔔 Routing this PR to @Azure/act-codegen-extensibility-squad.

@x-engineering-agent

x-engineering-agent Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

X Engineering Agent Report

Review — Comments

Yeming Liu (@isra-fel)

Review: Delos regression coverage needed

Upstream CI passed (51/51), but Delos registration, selection and endpoint/output regression coverage is not verified. No production defect was established. The Delos part of #34129 is implemented; GovSG is explicitly deferred.

Confirmed coverage gap

P2: the new registered cloud is not independently asserted. src/azure-cli-core/azure/cli/core/cloud.py:523-553 adds Delos endpoints/suffixes and registration. Existing core tests (src/azure-cli-core/azure/cli/core/tests/test_cloud.py:170-175) iterate the implementation's own KNOWN_CLOUDS: removing Delos also removes it from the test loop without failure. Command selection tests (src/azure-cli/azure/cli/command_modules/cloud/tests/latest/test_cloud.py:25-63) exercise existing clouds but have no Delos case. The core metadata-comparison test at lines 232-246 is skipped.

Focused correction before merge: Add independent Delos membership and canonical/lowercase selection assertions, checking name, isActive, and expected endpoint/suffix output. Verify removing registration makes those assertions fail. Owner reruns: azdev test --src-file src/azure-cli-core/azure/cli/core/tests/test_cloud.py and azdev test cloud -a "-n 1".

Test validation

  • Agent live test: Not run; this is a review-only PR. Check author-provided test evidence and upstream CI separately.
  • Regression coverage: Not applicable to the changed files.

The formatted coverage result reflects the tool's exclusion of core production files, not verified Delos coverage. The author reports 14 passed / 1 skipped core tests; that evidence and upstream CI do not prove the new sovereign endpoints or cloud-selection output.

No test or recording changed. src/azure-cli/azure/cli/command_modules/cloud/tests/latest/recordings/test_cloud_scenario.yaml:14-17 records public-cloud metadata, not Delos. Local hard-coded selection checks need no fabricated HTTP cassette; any added discovery/request-response scenario must update its own recording and rerun playback. Sovereign endpoint/audience validity and service availability require core/cloud owner confirmation. The closing risk includes the reviewed core production file and sovereign behavior, which the automatic module-scope classifier omitted.

Risk assessment

31/100 · Medium · High confidence

The Medium rating is driven by sovereign-cloud behavior, no changed regression test.

  • Change scope: 1 changed file, 33 changed lines (+32 / -1), including 1 production file.
  • Affected components: core/cloud
  • Risk drivers: sovereign-cloud behavior (+18); no changed regression test (+10)
  • Regression evidence: No changed regression test was detected for the production changes, increasing risk.
  • Confidence: High because changed-line patches were available for every production file.
  • Required review: Owning-squad review is required for core/cloud before merge.

Posted by x-engineering-agent (Reviewer)

@x-engineering-agent x-engineering-agent Bot added the X Engineering Agent Reviewed Agent reviewed this PR label Oct 16, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

🔔 Routing this PR to @Azure/act-codegen-extensibility-squad.

@isra-fel
Yeming Liu (isra-fel) merged commit 3cc6df7 into Azure:dev Oct 19, 2026
56 checks passed
@isra-fel
Yeming Liu (isra-fel) deleted the feat/add-delos-cloud-34129 branch October 19, 2026 05:17
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 Portal az portal Request X Engineering Agent Ask the agent to triage this issue or review this PR X Engineering Agent Reviewed Agent reviewed this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants