title: Is there a way to automatically generate the folder structure and function.json files for compiled Azure Functions?
body: <p>If I use Visual Studio (<a href="https://blogs.msdn.microsoft.com/webdev/2017/05/10/azure-function-tools-for-visual-studio-2017/" rel="nofollow noreferrer">2017 15.3 preview with Azure Functions Tools for Visual Studio installed</a>) to publish the following function to Azure, it will automatically generate the <code>function.json</code> file and place it in a folder that represents the function's name. I'm assuming it does this by examining the attributes on the method and parameters.</p>
  
  <pre><code>[FunctionName("EmailNotifications")]
  public static async Task Run([ServiceBusTrigger(Topics.Enquiries, "EmailNotifications", AccessRights.Listen, Connection = "MyConnectionString")] Enquiry enquiry, TraceWriter log)
  {
  
  }
  </code></pre>
  
  <p>I'd like to generate these files myself, at build time, so that they can be packaged up for deployment via our regular deployment pipeline. Is there a way to do this?</p>
  
  <p>I'm hoping that whatever Visual Studio uses under the hood as part of the publish process is exposed somewhere, but I'm having trouble finding this information.</p>