Hi @ashish fugat ,
Since you're not exposing any http endpoints e.g. ('/'), you're better off creating a webjob. Create your app service as you did in the VS code tutorial you followed or in the portal. But instead of deploying your code to the app service, zip the contents of your app folder, and upload it through the webjob blade. Since your app is a while(true), then you'll want to add your webjob as Continuous. In doing that, you'll have to make sure Always On is enabled under Configuration Settings for your app service. I would suggest creating a run.cmd
file that points to your testingWebAPI.py
file. See https://github.com/projectkudu/kudu/wiki/WebJobs for more information.
Regards,
Ryan