Skip to content

Photon private drop with env#49468

Draft
browndav-msft wants to merge 86 commits into
Azure:feature/storage/bifrostfrom
browndav-msft:photon-private-drop-with-env
Draft

Photon private drop with env#49468
browndav-msft wants to merge 86 commits into
Azure:feature/storage/bifrostfrom
browndav-msft:photon-private-drop-with-env

Conversation

@browndav-msft

Copy link
Copy Markdown
Member

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.

- 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
@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant