title: Host static HTML in Azure Web App Service
body: <p>I'm azure beginner</p>
  <p>I've created nodejs service and deployed it to Azure Web App service, it works as expected.
  So, I have resource group <strong>mars-app</strong> and existing Web App service application <strong>my-mars-web-app</strong>.</p>
  <p>Now, I want to add static HTML file, to show it when user goes to root URL https://***.azurewebsites.net/</p>
  <p>To achieve it,</p>
  <ol>
  <li>I have cloned github repo with client side to azure storage with azure cli help</li>
  <li>In cliend code folder, I have tried to run <strong>az webapp up -g mars-app -n my-mars-web-app --html</strong>, but every time I'm receiving:</li>
  </ol>
  <p><em>The webapp my-mars-web-app is a Linux app. The code detected at '/home/serhii/azure-website' will default to '&lt;module 'os' from '/opt/az/lib/python3.6/os.py'&gt;'. Please create a new app to continue this operation.</em></p>
  <p>Because of above error, I have added index.html to dist diretory in my backend app</p>
  <pre class="lang-js prettyprint-override"><code> app.get('/', function (req, res) {
     res.sendfile('dist/index.html');
   }); 
  </code></pre>
  <p>and it works. But I'm not sure it is a good solution</p>
  <p><strong>What the best practice to add static HTML files to existing Web App service?</strong></p>
  <p>This question may be a dublicate of <a href="https://stackoverflow.com/questions/31653643/how-to-deploy-a-simple-static-micro-site-on-microsoft-azure">this question</a>, but it was asked 5 years ago, so maybe something changed.</p>
  <p>P.S. I know about <strong>Static Web Apps</strong>, but it is in preview and I'm interested in more generic solutions.</p>
  <p>Thanks in advance</p>
  <p>[UPDATE]
  Here an <a href="https://medium.com/@to_pe/deploying-create-react-app-on-microsoft-azure-c0f6686a4321" rel="nofollow noreferrer">article</a> about deploying react app</p>