Skip to Content
platform-guidesAzure Functions

Last Updated: 3/11/2026


Azure Functions

Azure Functions  is Microsoft Azure’s serverless platform. Hono works on Azure Functions V4 with Node.js 18+ using the Azure Functions Adapter .

Install CLI

Install Azure Functions Core Tools :

macOS:

brew tap azure/functions brew install azure-functions-core-tools@4

Setup

Create a TypeScript Node.js V4 project:

func init --typescript

Change the default route prefix in host.json:

{ "extensions": { "http": { "routePrefix": "" } } }

Install dependencies:

npm install @marplex/hono-azurefunc-adapter hono

Hello World

Create src/app.ts:

import { Hono } from 'hono' const app = new Hono() app.get('/', (c) => c.text('Hello Azure Functions!')) export default app

Create src/functions/httpTrigger.ts:

import { app } from '@azure/functions' import { azureHonoHandler } from '@marplex/hono-azurefunc-adapter' import honoApp from '../app' app.http('httpTrigger', { methods: ['GET', 'POST', 'DELETE', 'PUT'], authLevel: 'anonymous', route: '{*proxy}', handler: azureHonoHandler(honoApp.fetch), })

Run Locally

Start the development server:

npm run start

Access http://localhost:7071 in your browser.

Deploy

Build the project:

npm run build

Deploy to Azure (replace <YourFunctionAppName>):

func azure functionapp publish <YourFunctionAppName>

See Create supporting Azure resources  before deploying.