Azure / azure-storage-cpplite

Lite version of C++ Client Library for Microsoft Azure Storage
MIT License
25 stars 44 forks source link

AZURE_* environment variables #74

Open ihnorton opened 4 years ago

ihnorton commented 4 years ago

Please consider supporting the AZURE_* environment variables like the azure CLI, especially:

For testing it would also be useful to be able to configure AZURE_STORAGE_ENDPOINT (not currently supported by the CLI, as far as I can tell).

Jinming-Hu commented 4 years ago

Cpplite is different from Azure-CLI, which itself is an executable. But cpplite is a library. I'm not sure whether it's a good idea to handle these environment variables in a library. Maybe these account name/key and endpoint information should loaded from environment variables by the executable and passed to this library. Anyway, we will evaluate this feature request.

ihnorton commented 4 years ago

Maybe these account name/key and endpoint information should loaded from environment variables by the executable and passed to this library.

Yes, that is what we are doing for now. Just to note that the AWS S3 C++ SDK does fall back to environment variables, which is useful for several situations. Thanks for evaluating this feature!

Jinming-Hu commented 4 years ago

@ihnorton Thanks for your feedback, we'll add this feature to our backlog, and maybe support it in future release.