Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enum defining Azure clouds #41846

Closed
alzimmermsft opened this issue Sep 13, 2024 · 2 comments
Closed

Add enum defining Azure clouds #41846

alzimmermsft opened this issue Sep 13, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@alzimmermsft
Copy link
Member

alzimmermsft commented Sep 13, 2024

Add an enum, or ExpandableStringEnum, which defines the well-known Azure clouds supported by azure-core.

In addition to the enum, add support for reading an environment variable to set the value being used, initial proposal is AZURE_CLOUD. If the value is set to a valid enum value, use that, otherwise default to the Azure public cloud.

This enum will need to be passed around in a few locations to modify behaviors to use the correct cloud information. This issue will be updated once that list is compiled.

@XiaofeiCao
Copy link
Contributor

XiaofeiCao commented Nov 26, 2024

new AzureCloud enum, tasks:

  • AzureCloud in azure-core
  • adopt AzureCloud in AzureProfile from azure-core-maangement
  • update SDK documentation to adopt the new AzureProfile ctor overload
  • adopt potential new azure-identity API with AzureCloud support
  • (Not planned) new AZURE_CLOUD environment variable

@srnagar
Copy link
Member

srnagar commented Feb 24, 2025

This is done in both azure-core and clientcore
azure-core - #43099
clientcore - #44301

@srnagar srnagar closed this as completed Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants