title: Cannot view code in Azure portal for function created / deployed via Visual Studio, yet I can when I make the function via the portal
body: <p>I have an Azure function that I created in the Azure portal. I added a timer function and some dummy code and it works fine; I created and wrote the code in browser - let's call this <code>FunctionA</code>.</p>
  
  <p>I then created a new project (<code>FunctionB</code>) in Visual Studio 2017, added a new timer function and published it to the same Azure function mentioned before. Interestingly, when I go to the portal I can still <code>FunctionA</code>'s code, but for <code>FunctionB</code> all I see is the local.settings.json file - no code is visible.</p>
  
  <p>I then get this message at the top:</p>
  
  <blockquote>
    <p>Your app is currently in read-only mode because you have published a
    generated function.json. Changes made to function.json will not be
    honored by the Functions runtime</p>
  </blockquote>
  
  <p>I think this means the local.settings.json file in my VS2017 project has somehow made it readonly, but it doesn't explain why I can't even see the code in the Azure portal, let alone edit it.</p>
  
  <p>Here is the code for FunctionB: </p>
  
  <pre><code>namespace DemoAzureFunction
  {
      public static class Function1
      {
          [FunctionName("Function1")]
          public static void Run([TimerTrigger("0 0 5 * * *")]TimerInfo myTimer, TraceWriter log)
          {
              log.Info($"C# Timer trigger function executed at: {DateTime.Now}");
          }
      }
  }
  </code></pre>
  
  <p>The inbrowser code editing / viewing is a very cool feature. Even when I edit the default <code>local.settings.json</code> file and publish it makes no difference.</p>