Error: Couldn't determine a writable folder where to store realm file

I am facing Error while trying to work with API(Middleware) deployed in Azure. The error says “Couldn’t determine a writable folder where to store realm file’”. This happens even though explicit temp storage for write is specified. It seems .net mongo realm SDK is not compatible with Azure Functions. Can you please help if anyone has faced this earlier and any possible solutions.