title: Azure functions reading custom files
body: <p>I am creating a generic azure function with an HTTP trigger. I have usecase something like this</p>
  
  <p>Clients --> Function --> API</p>
  
  <p>My function gets a certain input, it manipulates the structure and then sends that to another API for further processing.
  For this I have created a fairly static configuration settings required by API and stored it in JSON format. I would deserialize this into an object to pass to API. However am not able to load this JSON as the file doesn't seem to be found. This file was created in the root at the time of project creation.</p>
  
  <p>I have tried to verify the files available but couldn't see the JSON on server. I tried printing list of files and directories in</p>
  
  <pre><code>Environment.CurrentDirectory
  </code></pre>
  
  <p>For now, I have used packaged deployment mode from VS17. This function is V1 and framework is 461.</p>
  
  <p><strong>Alternative solution</strong>,</p>
  
  <ol>
  <li><p>I could create an object directly with those settings and update as and when needed, at the cost of flexibility and readability. However JSON is much simpler to understand and change(not all people using this function are C# users).</p></li>
  <li><p>I can write a post build command to copy the file in function's bin folder so it can be packaged along.</p></li>
  </ol>
  
  <p>This is not an application setting hence I don't want to put it there. Also its a nested JSON structure. I wanted to know if there's a better way of achieving this than what I could come up above? Am hoping to avoid having to move to V2 yet due to some dependencies while doing the function processing logic.</p>