Photon private drop with env#49468
Draft
browndav-msft wants to merge 86 commits into
Draft
Conversation
- downgrade blobserviceversion to 2026_04_06 - change AZURE_LIVE_TEST_SERVICE_VERSION to V2026_04_06 in ci.system.properties in azure-storage-common - create both sync and async
…p instead of ContainersImpl
…ationPolicy + AccessTokenCache pattern
…eAuthorizationPolicy
…st, add ResourceLock for live tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables configuring the blob storage session (SessionMode and session container name) through environment variables / Configuration, so callers can opt into a session without changing builder code.
Two new keys are introduced in BuilderHelper: - AZURE_STORAGE_SESSION_MODE — names a SessionMode (NONE, AUTO, SINGLE_SPECIFIED_CONTAINER), matched case-insensitively. Only applied when the builder is still on the default SessionMode.AUTO.
AZURE_STORAGE_SESSION_CONTAINER_NAME — supplies the container name to scope the session to. Only applied when the builder has no container name set.
A new helper, BuilderHelper.applyEnvironmentSessionDefaults(SessionOptions, Configuration, ClientLogger), performs the fallback resolution and is invoked from:
BlobClientBuilder (both pipeline construction paths)
BlobContainerClientBuilder (both pipeline construction paths)
BlobServiceClientBuilder#constructPipeline
Explicit programmatic configuration on the builder always wins; the env vars are only consulted to fill in unset values. An invalid AZURE_STORAGE_SESSION_MODE value throws IllegalArgumentException via the client logger.