title: How do I Monitor Health of Bot Deployed in Azure to Spot Random Downtime
body: <p>I'm trying to track when my bot stops responding. I think it stops responding when it doesn't get any usage for a while. I'll send it a few requests sometimes and then I won't get any responses back. I can fix this by stopping and restarting the <code>App Service</code> within the Azure Portal.</p>
  
  <p>I was considering creating a cronjob that sends a <code>POST</code> request to the <code>somebotname.azurewebsites.net/api/messages</code> endpoint and e-mailing me if there's no response, but I'm not sure how to get a token so that this will pass. I was also considering doing a daily publish via azure devops but I'm not sure if this is even possible.</p>
  
  <p>Is there a best practice for testing if a bot is still running?</p>