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@4Setup
Create a TypeScript Node.js V4 project:
func init --typescriptChange the default route prefix in host.json:
{
"extensions": {
"http": {
"routePrefix": ""
}
}
}Install dependencies:
npm install @marplex/hono-azurefunc-adapter honoHello World
Create src/app.ts:
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => c.text('Hello Azure Functions!'))
export default appCreate 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 startAccess http://localhost:7071 in your browser.
Deploy
Build the project:
npm run buildDeploy to Azure (replace <YourFunctionAppName>):
func azure functionapp publish <YourFunctionAppName>See Create supporting Azure resources before deploying.