Skip to content

azure: do not require storage_account with a connection string - #292

Open
cvas22 wants to merge 1 commit into
thanos-io:mainfrom
cvas22:feat/90-azure-conn-string
Open

cvas22 wants to merge 1 commit into
thanos-io:mainfrom
cvas22:feat/90-azure-conn-string

Conversation

@cvas22

@cvas22 cvas22 commented Oct 23, 2026

Copy link
Copy Markdown

Fixes #90

When storage_connection_string is set, the Azure bucket is created from the connection string alone, which already contains the account name. Validation still demanded storage_account though, so the account name had to be given twice (see the report on the issue).

storage_account is now only required when no connection string is configured. The error message says so, and the README notes that it does not have to be set with a connection string.

Tests: added a Connection string without storage account case to the Azure config table; the existing "Missing storage account" case still fails validation. go test ./providers/azure/ passes. A CHANGELOG entry is included.

The connection string already carries the account name, so only require
storage_account when storage_connection_string is not set.

Fixes thanos-io#90

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
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.

Azure config requires StorageAccountName even when its already in the connection string

1 participant