title: Best way to set up alerts on azure web job
body: <p>Frankly speaking azure still does not have direct way to set up alerts on continuous  web job's so that one can get notification if web job stops for unknown reasons. After some investigation i found that logic apps are best way to do that. Here are the steps how one can achieve this</p>
  
  <p>Go to azure web job, select properties and copy web hook url, username and password.
  <a href="https://i.stack.imgur.com/7ShYp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SHiph.png" alt="enter image description here"></a></p>
  
  <p>By default web hook url will have /run option at end to so remove that as you dont want to run webjob</p>
  
  <p>Create a logic app setting following parameters in exact order</p>
  
  <ol>
  <li>Recurrence - Your choice how frequently you want to run your logic
  app    </li>
  <li><p>Initialize a variable for example status (type - string)</p></li>
  <li><p>Call Http end point giving following details which you copied
  earlier   [<img src="https://i.stack.imgur.com/7ShYp.png" alt="enter image description here">]2]   </p></li>
  <li>Add a step of parse
  JSON response, pasting response so that logic app can create its own
  schema    <a href="https://i.stack.imgur.com/mL7QE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mL7QE.png" alt="enter image description here"></a>   </li>
  <li>Pick the item name for
  value you want to read for example i am using status<br>
  <a href="https://i.stack.imgur.com/P8wFB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P8wFB.png" alt="enter image description here"></a>   </li>
  <li>Add a condition for failure<br>
  <a href="https://i.stack.imgur.com/qf8PK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qf8PK.png" alt="enter imagedescription here"></a>   </li>
  <li>Send the mail or whatever you want to do</li>
  </ol>
  
  <p>Over all your Login app will look something like this</p>
  
  <p><a href="https://i.stack.imgur.com/jXPxl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jXPxl.png" alt="enter image description here"></a></p>