An Azure service that provides an event-driven serverless compute platform.
Hello @rohith v - Thanks for reaching out, and posting on the MS Q&A.
Does your function app (via code) try to create the newfolder/foldername in the current directory where it is running? In the case above, were you running locally? If I misunderstand this part, kindly share more info and clarify. If correct, the error is likely caused by your app not having full read/write access to the filesystem which actually becomes reserved when running on Azure. The following doc discusses the use %SystemDrive% directory and how local storage isn't intended to be used by application code:
I'm not sure exactly how you want to use the local filesystem but I recommend reviewing the Storage considerations for Azure Functions doc thoroughly and exploring whether services such as Azure Files and Blob Containers can be of good alternative. Hope this helps, let me know in the comments below if you have any follow-up questions.
Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.