Skip to content

luxu-ms/fastapi-on-azure-functions

 
 

Repository files navigation

Using FastAPI Framework in an Azure Function App

Azure Functions supports WSGI and ASGI-compatible frameworks with HTTP-triggered Python functions. This can be helpful if you are familiar with a particular framework, or if you have existing code you would like to reuse to create the Function app

Prerequisites

You can develop and deploy a function app using either Visual Studio Code or the Azure CLI. Make sure you have the required prerequisites for your preferred environment:

QuickStart

  1. Clone this repo
  2. Use VSCode to open "fastapi-on-azure-functions"
  3. Right click "WrapperFunction" and select "Deploy to Function App..." (Please install exntesion "Azure Tools" if there is no such option)
  4. Select the function app provisioned to deploy

How to verify

Visit the URL https://.azurewebsites.net/sample or https://.azurewebsites.net/hello/

About

A sample to run a FastAPI app on Azure Functions

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Bicep 97.8%
  • Dockerfile 1.1%
  • Python 1.1%