Git Product home page Git Product logo

msdocs-python-fastapi-webapp-quickstart's Introduction

page_type description languages products
sample
A minimal sample app that can be used to demonstrate deploying FastAPI apps to Azure App Service.
python
azure
azure-app-service

Deploy a Python (FastAPI) web app to Azure App Service - Sample Application

This is the sample FastAPI application for the Azure Quickstart Deploy a Python (Django, Flask or FastAPI) web app to Azure App Service. For instructions on how to create the Azure resources and deploy the application to Azure, refer to the Quickstart article.

Sample applications are available for the other frameworks here:

If you need an Azure account, you can create one for free.

Local Testing

To try the application on your local machine:

Install the requirements

pip install -r requirements.txt

Start the application

uvicorn main:app --reload

Example call

http://127.0.0.1:8000/

Next Steps

To learn more about FastAPI, see FastAPI.

msdocs-python-fastapi-webapp-quickstart's People

Contributors

charris-msft avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msdocs-python-fastapi-webapp-quickstart's Issues

Deployed App Time out due to wrong port specification on Azure container deployment command

Please provide us with the following information:
I followed through the tutorial here. Under the section the port specified on the Dockerfile and gunicorn.conf.py is 3100 while the specified for the container App command to deploy is 80. This will make the deployed App not to render and timeout. I will suggest that the port on the gunicorn.conf.py, Dockerfile and Container App command to be harmonised so that this issue doesn't occur for those want to follow the tutorial to deploy their FastAPI App on Azure container App.

To be precise the port on container App command should be

az containerapp up \
  --resource-group web-fastapi-aca-rg --name web-aca-app \ 
  --ingress external --target-port 3100 --source .

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.