Skip to main content
Prisma Documentation Docs

Search documentation

Type to search this documentation.

On this pageOverview

Deploy to Azure Functions (Prisma ORM v7) (/docs/orm/v7/prisma-client/deployment/serverless/deploy-to-azure-functions)

For the complete Prisma documentation index, see llms.txt. A markdown version of any docs page is available by appending .md to its URL.

Learn how to deploy a Prisma Client based REST API to Azure Functions and connect to an Azure SQL database

Location: ORM > v7 > Prisma Client > Deployment > Serverless > Deploy to Azure Functions

This guide explains how to avoid common issues when deploying a Node.js-based function app to Azure using Azure Functions.

Azure Functions is a serverless deployment platform. You do not need to maintain infrastructure to deploy your code. With Azure Functions, the fundamental building block is the function app. A function app provides an execution context in Azure in which your functions run. It is comprised of one or more individual functions that Azure manages, deploys, and scales together. You can organize and collectively manage multiple functions as a single logical unit.

  • An existing function app project with Prisma ORM

While Prisma ORM works well with Azure functions, there are a few things to take note of before deploying your application.

Generally, when you use a FaaS (Function as a Service) environment to interact with a database, every function invocation can result in a new connection to the database. This is not a problem with a constantly running Node.js server. Therefore, it is beneficial to pool DB connections to get better performance. To solve this issue, you can use Prisma Postgres. For other solutions, see the connection management guide for serverless environments.

For more insight into Prisma Client's API, explore the function handlers and check out the Prisma Client API Reference

  • Deploy to AWS Lambda: Learn how to deploy your Prisma ORM-backed applications to AWS Lambda with AWS SAM, Serverless Framework, or SST
  • Deploy to Netlify: Learn how to deploy Node.js and TypeScript applications that are using Prisma Client to Netlify
  • Deploy to Vercel: Learn how to deploy a Next.js application based on Prisma Client to Vercel
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu