Writing to a Cloud Queue from Windows Azure Mobile Services

Windows Azure Mobile Services allows you to execute your own JavaScript (node.js) for each of the CRUD operations on your entities.

As I wrote earlier, you can access a number of the standard node modules, however, several of them have been disabled. I was particularly keen to try to write data to Azure Storage, but the Azure and HTTP modules are not available. However, the Request module is, and using crypto, you have just about enough to sign a header, and make an authenticated request to storage.

This Gist shows you how to push a message onto a Cloud Queue:

https://gist.github.com/3690582

Thanks to Rob Blackwell for writing most of the JavaScript to do the header signing.

Advertisements