Wednesday, September 11, 2019

Deploy a Flask Restplus API to an Azure Linux Web App

Topic:

Deploy a python Flask Restplus API to an Azure Linux Web App (code available in my github repo: app-service-Linux-API-Python )

Tutorial

I will publish soon :
  • the steps and screenshots to configure your local (windows) environment for Python
  • the deployment steps and screenshots
the Web App creation steps and screenshots are the same than those of the previous post
The deployment steps are quite the same excepted that you clone the code from the git repo and add a remote to the Azure Web App.

Deployment steps

roughly:
  • Create an Azure Linux Web App (App service on Linux)
  • Go to deployment center and chose : Git local, App Service build engine
  • clone the code of my repo: app-service-Linux-API-Python
  • Add the WebApp git url of the deployment center as a remote
  • Push the code to the Web App. When asked for credentials go to FTP/Credentials an copy Username and Password. The Username to use begins by the $, don't take the domain.



After deployment

this is the result after deployment:





It is online with anonymous access, you can play with it:

try the Flask Restplus features

Enjoy!

No comments: