Skip to content

Changed the azure_cloud setting environment variable#45763

Open
xiangyan99 wants to merge 1 commit intomainfrom
rename_azure_cloud_env
Open

Changed the azure_cloud setting environment variable#45763
xiangyan99 wants to merge 1 commit intomainfrom
rename_azure_cloud_env

Conversation

@xiangyan99
Copy link
Member

Changed the azure_cloud setting environment variable from AZURE_CLOUD to AZURE_SDK_CLOUD_CONF.

@xiangyan99 xiangyan99 changed the title Changed the azure_cloud setting environment variable from `AZURE_CL… Changed the azure_cloud setting environment variable Mar 17, 2026
@xiangyan99 xiangyan99 marked this pull request as ready for review March 17, 2026 23:44
Copilot AI review requested due to automatic review settings March 17, 2026 23:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates azure-core’s global settings to read the azure_cloud setting from a new environment variable name, and updates tests/changelog accordingly.

Changes:

  • Renamed the azure_cloud setting env var from AZURE_CLOUD to AZURE_SDK_CLOUD_CONF.
  • Updated test_settings.py to set/unset the new env var in test_current.
  • Documented the rename in azure-core’s changelog as a breaking change.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
sdk/core/azure-core/azure/core/settings.py Switches Settings.azure_cloud to read from AZURE_SDK_CLOUD_CONF.
sdk/core/azure-core/tests/test_settings.py Updates environment-variable-based test to use the new name.
sdk/core/azure-core/CHANGELOG.md Notes the env var rename under Breaking Changes.

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.

2 participants