I need to access Azure Storage's BLOB storage to insert some JSON. However, in the official documentation, in order to first connect with my database, I need the connection string to be recognized by Azure. Traditionally. Azure would look at the environment variables for the connection string, but in this app, we're using a config file with the keys laid out as such...
module.exports = { AZURE_STORAGE_CONNECTION_STRING: AZURE_STORAGE_CONNECTION_STRING,};
It does not appear that Azure recognizes the keys in this way. Rather than making an environment file for this one string, is it possible to pass the string in elsewhere? Say when we first call
const storage = require('azure-storage');const blobService = storage.createBlobService();
Or possibly when the storage method is used?
const uploadToBlob = async (containerName, filePath) => { await blobService.createBlockBlobFromLocalFile(containerName, blobName, fullPath, err => {
Thanks for your time peeps!