@Anonymous It seems like you have successfully deployed your Flask app to Azure Web App, but you are getting an application error after clicking the default domain URL. There could be several reasons for this error, such as incorrect configuration settings or missing dependencies.
To start the Flask app in Azure, you need to specify the entry point of your application in the web.config
file. You can add the following code to the web.config
file to start your Flask app:
<configuration>
<appSettings>
<add key="WSGI_HANDLER" value="app.app" />
<add key="PYTHONPATH" value="D:\home\site\wwwroot" />
</appSettings>
<system.webServer>
<handlers>
<add name="Python FastCGI" path="handler.fcgi" verb="*" modules="FastCgiModule" scriptProcessor="D:\home\Python37\python.exe|D:\home\Python37\wfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>
Make sure to replace app.app
with the name of your Flask app's entry point.
Additionally, you can check the logs to see if there are any errors that could be causing the application error. You can access the logs by running the az webapp log tail
command in the Azure CLI.
If you are still having issues, you can try redeploying your app.