Functions and runtime guides
Find the guides and tutorials on Functions and the runtime in one list, each with a summary of what it covers.
This section holds the guides and tutorials on Functions and the runtime.
Create a database in SQL Database, write CRUD routes with Hono, and deploy a task API that runs as a function.
Create a function that runs on a firewall, instantiate it, and add the Rules Engine rule that triggers it.
Compile and instantiate a WebAssembly module inside a function, from a byte array in the code or from a .wasm file the handler fetches.
Write the ES Modules handler of a function in Azion Console, read its response with Preview deployment, and find its log output.
Deploy a Hono project on Functions that captures a page screenshot through the Browserless API and returns the PNG image.
Generate the JSON payload of a function with the ChatGPT integration of the Azion Console editor, then read the response with Preview deployment.
Retrieve the console and runtime log lines of your functions for a time range, and filter them by message content.
Receive Stripe payment events on a Hono app deployed as a function, verify every signature, and handle each event type.
Build a Hono endpoint on Azion Functions that calls the Resend API, store the API key as an environment variable, and deploy it with Azion CLI.
Add the Rules Engine rule that runs a function instance on an application, from Azion Console or the Azion API, then verify the response.
Validate a JSON Web Token on each request to restricted content and control access by subscription with the JWT function from Azion Marketplace.
Build a function on a firewall that sends a copy of every matched request to a test origin, then read the mirrored responses in Real-Time Events.
Run the ALTCHA challenge on a firewall, then add the application rule that sends unverified requests to it.
Build a Hono endpoint that checks an uploaded file and writes it to an Object Storage bucket from a function.
Move a function from the legacy Service Worker handler to the ES Modules handler, with the before and after for fetch and firewall.
Create a function project from the terminal with Azion CLI, run it on your machine, and deploy it to a live domain.
Import a Node.js API such as node:buffer in a function, build it with polyfills through the Azion CLI, run it locally, and deploy it.
Store a response a function builds with the runtime Cache API, return it on later requests, and delete it when the data behind it changes.
Run a function instance on one path and one method with a Run Function rule, and roll the path back by turning the rule off.
Serve every tenant from one function that reads the hostname, loads the tenant from KV Store, and reads only its rows in SQL Database.