Azure "blobService is not defined" error with NodeJS
<p>Here is my node codes in order to connect Azure Blob Storage and upload base64 photo to recieve url link for the photo. Codes are based on Azure tutorial but somehow my AccountName and AccountKey fails. I could not figure out how to set up my createBlobService variable.My AccountName and AccountKey's are just simple strings ie. "Product", "Base64KeyProvidedByAzure"</p>

<p>Any help please?</p>

<p>Account name, account key and container names are just dummy strings here.</p>

<pre><code>var blobSvc = azure.createBlobService('AccountName', 'AccountKey');


        blobService.createContainerIfNotExists('containerName', {
            publicAccessLevel: 'blob'
        }, function(error, result, response) {
            if (!error) {
                // if result = true, container was created.
                // if result = false, container already existed.
                var sharedAccessPolicy = {
                    AccessPolicy: {
                        Permissions: azure.BlobUtilities.SharedAccessPermissions.WRITE,
                    }
                };
                var sharedAccessSignatureToken = blobSvc.generateSharedAccessSignature('ContainerName', req.params.filename, sharedAccessPolicy);
                var sharedBlobService = azure.createBlobServiceWithSas(blobSvc.host, sharedAccessSignatureToken);

                sharedBlobService.createBlockBlobFromText('eats', req.params.name, req.params.file,
                    {
                        contentType: 'image/jpeg',
                        contentEncoding: 'base64'
                    },

                    function(error, result, response) {
                    if (error) {
                        res.send(error);
                        return;
                    }


                    var msg = "Photo Uploaded successfully";
                    helpers.success(res, next, msg, 200);
                    return next();
                });
            }
        });
</code></pre>