Description
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
Labels
Type
Projects
Status