azure-storage icon indicating copy to clipboard operation
azure-storage copied to clipboard

Add support to instanciate Azure Storage Client via connection string

Open cmaneu opened this issue 6 years ago • 5 comments

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

This lib only supports storage account name and storage account SAS Key, either through configuration, or through additional storage options in the interceptor declaration.

Expected behavior

We should be able to precise either an account name/storage account pair OR a connection string.

Minimal reproduction of the problem with instructions

Irrelevant :)

What is the motivation / use case for changing the behavior?

Having a connection string support will enable the following scenarios :

  • Support for Local Azure Storage Emulator (a must-do for developers)
  • Support for other storage emulators, like Azurite, used in integration testing via CD/CI pipelines
  • Support for non-global+public Azure Instance (Azure Gov, Azure Germany, Azure China, ...)

Environment


Nest version: 6.6.4

 
For Tooling issues:
- Node version: 10.16.1  
- Platform: Linux  

Others:

cmaneu avatar Aug 14 '19 08:08 cmaneu

There is a few things to change in the code. For example in line azure-storage.service.ts:58 the core Azure Storage URI is embedded in the code. However, for local emulator there is no DNS resolution. Account name ends up being part of the URI (https://localhost:10000/<accountName>/<containerName>/....).

cmaneu avatar Aug 14 '19 08:08 cmaneu

Is there any progress on this feature request? Library is basically unusable, when we can not connect dev environment to local emulator.

wiekonek avatar Nov 02 '20 11:11 wiekonek

We are working on this @wiekonek. I will keep you posted.

manekinekko avatar Nov 03 '20 21:11 manekinekko

How are you doing with the upgrades? If you need any help, please let me know :)

markusheinemann avatar Dec 05 '20 11:12 markusheinemann

Any update on this?

SimonSchroffner avatar Sep 30 '22 12:09 SimonSchroffner