Replace filesystem upload with Azure Blob Service

I'm working on a method to replace the OOTB filesystem storage with Azure Blob Storage. Do you know if anybody has done this before? Could you share your code, issues faced, etc? BTW this is on-premise not Sugar Cloud if that makes a difference