Search code examples
xamarinxamarin.formsazure-mobile-servicesazure-blob-storageazure-files

How do I create a StorageController in Node js for Azure File Sync?


If i wish to create a StorageController to generate the SAS tokens inorder to make the Azure File Syncing work with Xamarin forms, is that possible ? All the documentation that I have seen only mention a way to do it in ASP.NET.

Reference : https://azure.microsoft.com/en-us/blog/file-management-with-azure-mobile-apps/

It seems I can create a SAS token in Node js, but how do I tie it up the /table endpoint ? http://azure.github.io/azure-storage-node/


Solution

  • There is significant work involved in creating the equivalent of a StorageController for the Node.js backend. You could create a simple custom API endpoint that generates SAS tokens and consume those from your client application, i.e. interacting directly with Azure Storage rather than using the file sync plugin for Azure Mobile Apps.