title: How to update a json file in azure web job?
body: <p>I created an Azure web job under my website to run an application every week. </p>
  
  <p>My application loads from a json file its last running time in order to select data modified after its last execution. If the application completes its job successfully it updates the value on the json file. In order to update the file i'm using the bellow code: </p>
  
  <pre><code> public static void SaveConfig(Config cnf)
      {
          var path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "/config.json";
          File.WriteAllText(path, JsonConvert.SerializeObject(cnf, Formatting.Indented));
      }
  </code></pre>
  
  <p>The problem is that on the Azure web job it runs perfect with no errors but it doesn't update my json file as expected. I have to notice here that the config.json is deployed to Azure as part of the web job, and i can find it through ftp or App service editor under path App_Data/jobs/triggered/MyApp</p>