Skip to content

auth: allowing custom clouds to opt in/out of the SDK Profiles - #2393

Merged
Brandon Waterloo [MSFT] (bwateratmsft) merged 3 commits into
microsoft:mainfrom
tombuildsstuff:f/explicitly-specifying-custom-cloud
Sep 2, 2026
Merged

auth: allowing custom clouds to opt in/out of the SDK Profiles#2393
Brandon Waterloo [MSFT] (bwateratmsft) merged 3 commits into
microsoft:mainfrom
tombuildsstuff:f/explicitly-specifying-custom-cloud

Conversation

@tombuildsstuff

Copy link
Copy Markdown
Contributor

This PR exposes a new feature flag for isCustomCloud, the intention being here to differentiate between custom clouds which only support the Profiles (and thus aren’t really usable today) and those which support the full API surface.

I’ve intentionally opted to call this isCustomCloud rather than useProfiles or something to try and differentiate clouds which use the SDK Profiles (which don’t contain the SDK clients by all components, so Azure Stack Hub will currently fail) from those which don’t (e.g. a custom defined cloud, which can use the regular API)

This commit exposes a new feature flag for `isCustomCloud`, the intention being here to differentiate between custom clouds which only support the Profiles (and thus aren't really usable today) and those which support the full API surface.

I've intentionally opted to call this `isCustomCloud` rather than `useProfiles` or something to try and differentiate Azure Stack Hub and other custom clouds, since right now multiple components (e.g. storage hang off of the SDK clients, which do [regular/custom clouds] and do not [Azure Stack Hub] expose the SDK clients in question).
Copilot AI lite review requested due to automatic review settings August 31, 2026 12:32
@tombuildsstuff
Tom Harvey (tombuildsstuff) requested a review from a team as a code owner August 31, 2026 12:32

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

This PR updates how custom Azure cloud environments are interpreted so that custom clouds can opt out of being treated as “Azure Stack Hub” (hybrid/profile-only) and instead use the full modern SDK clients when appropriate.

Changes:

  • Adds a CustomCloudEnvironmentParameters type that extends Azure SDK environment parameters with an optional isAzureStack flag.
  • Updates getConfiguredAzureEnv so custom environments default to isCustomCloud: true (hybrid/profile behavior) unless explicitly configured with isAzureStack: false.
  • Improves in-file documentation describing the new configuration shape and intent.

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

Comment thread auth/src/utils/configuredAzureEnv.ts
@bwateratmsft Brandon Waterloo [MSFT] (bwateratmsft) changed the title utils: allowing custom clouds to opt in/out of the SDK Profiles auth: allowing custom clouds to opt in/out of the SDK Profiles Aug 31, 2026
Comment thread auth/src/utils/configuredAzureEnv.ts
@bwateratmsft

Copy link
Copy Markdown
Contributor

Looks good, ready for me to merge?

@tombuildsstuff

Copy link
Copy Markdown
Contributor Author

Brandon Waterloo [MSFT] (@bwateratmsft) that'd be great, thanks :)

@bwateratmsft
Brandon Waterloo [MSFT] (bwateratmsft) merged commit 6618b45 into microsoft:main Sep 2, 2026
4 checks passed
@tombuildsstuff
Tom Harvey (tombuildsstuff) deleted the f/explicitly-specifying-custom-cloud branch September 2, 2026 14:27
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.

3 participants