title: How to start stop azure app service plan with azure functions
body: <p>I came across the following statement in the official Microsoft Docs <a href="https://docs.microsoft.com/en-us/learn/modules/azure-compute-fundamentals/azure-functions" rel="nofollow noreferrer">Decide when to use Azure Functions</a>:</p>
  <blockquote>
  <p>Micro-billing: Traditional computing bills for a block of time like paying a monthly or annual rate for website hosting. This method of billing is convenient but isn't always cost effective. Even if a customer's website gets only one hit a day, they still pay for a full day's worth of availability. With serverless computing, they pay only for the time their code runs. If no active function executions occur, they're not charged. For example, if the code runs once a day for two minutes, they're charged for one execution and two minutes of computing time.</p>
  </blockquote>
  <p>To me, it sounds that it should be possoble to start and stop an Azure App Service Plan according to the request sent to the server to provision a webpage.
  My question is: is it possible to do that?, and if yes, how.</p>
  <p>The Azure function I'm thinking of, should trigger starting my App Service Plan so that the website can work on demand.</p>
  <p>Many thanks!</p>