Hi @Dum, Rupak ,
Thanks for reaching out to Q&A forum.
I understand that you are trying to read a custom json file from the root directory when the Function app is deployed to the Azure Functions runtime. For customers to store files, we always recommend to be stored in the "D:\home\site\wwwroot" directory. The drive may vary, it may be either C or D. The deployed files and dlls would also go to this location which you would have observed.
So I would suggest you to place the file in "D:\home\site\wwwroot" directory and read dynamically using the below code
var azure_root=Environment.GetEnvironmentVariable("HOME") + @"\site\wwwroot";
The reason why we suggest not to use other locations is that, the fileshare that is mounted with the backend VM that hosts the function app will change periodically and the contents might be lost. However the contents in the "D:\home\site\wwwroot" directory will always remain and wont be lost.
I hope this helps! Feel free to reach out to me if you have any queries or concerns.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.