Getting internal server error on Flask App hosted on Azure Getting internal server error on Flask App hosted on Azure flask flask

Getting internal server error on Flask App hosted on Azure


Per my understanding, your deployment is incompleteness, as Azure uses IIS to host python web sites on Web Apps Services, which needs a web.config to configure hander mapping and URL rewrite rules and some other settings.

To create and deploy a flask project on Azure Web Apps , we can generally follow the steps below:

1, On Azure manage portal, click NEW => COMPUTE => WEB APP =>FROM GALLERY at the bottom navigation, on the ADD WEB APP dialog, select Flask, name the site on the next dialog page. Now we have created a flask web site project. enter image description hereWe can type the endpoint on the browser to check the website, http://<your_site_name>.azurewebsite.net

2,On the web apps list, click the name we created above to get into the configuration page, click DASHBOARD, at the quick glance column, click Set up deployment from source control ,select Local Git repository. Now there is an additional tab named DEPLOYMENT beside the DASHBOARD tab. And in the DEPLOYMENT page there are steps of how to deploy your site by git. We can clone the project to local by the GIT URL provided on this page.enter image description here

We can get more on this official article