Skip to content

[Core] Remove AzureGermanCloud from hard-coded cloud list - #34042

Merged
Yeming Liu (isra-fel) merged 1 commit into
Azure:devfrom
isra-fel:hide-german-cloud
Sep 8, 2026
Merged

Yeming Liu (isra-fel) merged 1 commit into
Azure:devfrom
isra-fel:hide-german-cloud

Conversation

@isra-fel

@isra-fel Yeming Liu (isra-fel) commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

Description

Azure Germany has been closed. This PR removes the AzureGermanCloud entry from the hard-coded cloud list in cloud.py:

  • Removed AzureGermanCloud from CloudNameEnum
  • Removed the AZURE_GERMAN_CLOUD Cloud definition
  • Removed it from HARD_CODED_CLOUD_LIST
  • Updated test_switch_active_cloud to use AzureUSGovernment instead of the removed AzureGermanCloud

Testing

test_cloud.py passes (14 passed, 1 skipped).

Copilot AI lite review requested due to automatic review settings September 8, 2026 04:02

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.

🟢 Approval recommended

The removal is consistent and complete (no remaining references found), and the affected unit test was updated accordingly.

Pull request overview

This PR removes the retired Azure Germany cloud (AzureGermanCloud) from azure-cli-core’s hard-coded cloud definitions, and updates unit tests to use an alternative sovereign cloud (AzureUSGovernment) for active-cloud switching validation.

Changes:

  • Removed AzureGermanCloud from CloudNameEnum and deleted the corresponding AZURE_GERMAN_CLOUD definition.
  • Removed AZURE_GERMAN_CLOUD from HARD_CODED_CLOUD_LIST, so it is no longer a built-in known cloud.
  • Updated test_switch_active_cloud to switch to AzureUSGovernment instead of the removed cloud.
File summaries
File Description
src/azure-cli-core/azure/cli/core/cloud.py Removes Azure Germany from the built-in cloud enum/definition and from the hard-coded known cloud list.
src/azure-cli-core/azure/cli/core/tests/test_cloud.py Adjusts the active-cloud switching test to use an existing hard-coded cloud (AzureUSGovernment).
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

Azure Germany has been closed, so remove AzureGermanCloud from
HARD_CODED_CLOUD_LIST while keeping the AZURE_GERMAN_CLOUD definition
available. Update the affected test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ae0f081a-011a-4892-b82a-9261c9f3e44f
@yonzhan

Copy link
Copy Markdown
Collaborator

Remove AzureGermanCloud

@isra-fel Yeming Liu (isra-fel) changed the title Remove AzureGermanCloud from hard-coded cloud list [Core] Remove AzureGermanCloud from hard-coded cloud list Sep 8, 2026
@isra-fel

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@isra-fel
Yeming Liu (isra-fel) merged commit 570743e into Azure:dev Sep 8, 2026
50 checks passed
@isra-fel
Yeming Liu (isra-fel) deleted the hide-german-cloud branch September 8, 2026 05:17
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.

4 participants