title: How do you deploy a basic HTML file to the root directory of an Azure Bot function app?
body: <p>I created a Bot App Service in Azure from the LUIS template and configured continuous integration. The Bot Service is a function app, and works locally and within the web-windows in Azure and on <a href="https://dev.botframework.com/" rel="nofollow noreferrer">dev.botframework.com</a>. </p>
  
  <p>My goal is to deploy a basic HTML page to the root directory <code>BOT_NAME.azurewebsites.net</code> of my app service.</p>
  
  <p><strong>Current attempts to solve:</strong></p>
  
  <p>I have configured Web Chat and have an I-Frame as such:</p>
  
  <p><code>&lt;iframe src='https://webchat.botframework.com/embed/&lt;BOT_NAME&gt;?s=&lt;SECRET&gt;'&gt;&lt;/iframe&gt;</code></p>
  
  <p>I have attempted to modify the <code>run.csx</code> file with the following:</p>
  
  <pre><code>var response = req.CreateResponse(HttpStatusCode.OK);
  var stream = new FileStream(@"index.html", FileMode.Open);
  response.Content = new StreamContent(stream);
  response.Content.Headers.ContentType = new MediaTypeHeaderValue("text/html");
  return req.CreateResponse(HttpStatusCode.Accepted);
  </code></pre>
  
  <p>This correctly displays <code>index.html</code> at <code>localhost:3979/api/messages</code>. When deployed to Azure, I attempted to fully qualify <code>index.html</code> as <code>d:\home\site\wwwroot\index.html</code>, yet <code>&lt;BOT_NAME&gt;.azurewebsites.com/api/messages</code> returns the following: </p>
  
  <p><code>The HTTP 'GET' method is not supported by the 'GenericJsonWebHookReceiver' WebHook receiver</code></p>
  
  <p>I have created a new function app (<em>not</em> bot app) in an effort to launch the base HTML file and utilize Azure's web-proxy feature to map the URL <code>\wwwroot\index.html</code> to <code>\</code>. This works, but it isolates the app into two repositories, and thus feels out of practice.</p>
  
  <p>I have also attempted to modify <code>function.json</code> to include <code>"authLevel": "anonymous"</code> to no avail.</p>
  
  <p>Please help! I would really appreciate it, as I'm unaware of the best practice to implement such a solution. Within Azure, <em>all</em> out-of-the-box Bot templates are function apps now, hence anyone wishing to launch an HTML bot page will likely need details. Thank you!</p>
  
  <p>The example solution contains the following:</p>
  
  <p><a href="https://i.stack.imgur.com/BCBDK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BCBDK.png" alt="Current solution contents"></a> </p>