Skip to content

Support multiple storage accounts in the auto configuration for spring cloud azure #45234

Open
@kunalvarpe

Description

@kunalvarpe

Is your feature request related to a problem? Please describe.
Currently azure properties can take single storage account from properties and based on that BlobServiceClient bean is configured. There is not extension for supporting multiple storage account

Describe the solution you'd like
There should be separate property spring.cloud.azure.storage.blobs.enabled=true and spring.cloud.azure.storage.blobs.accounts[0].account-name=some-account-name. If required to add few more properties in addition to account-name can be added to support full initialisation of storage related beans.

Describe alternatives you've considered
Currently we are in thought of adding account-name and connection-string properties and based on that initialise the Map<String, BlobServiceClient> which holds are initialised service clients according to account name and can be injected by account name.

Additional context
The POC is ongoing for above approach we are unsure if it would behave correctly or not. Also if this is added as part of spring azure library then it would be very beneficial and accurate. This is also a common use-case and springs opinionated architecture can be applied here.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Description Added
  • Expected solution specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    azure-springAll azure-spring related issuesazure-spring-storageSpring storage releated issues.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions