# Automation guides

This section holds the guides and tutorials on automation.

- [How to authorize an edge node](/en/documentation/guides/application-development/automation/authorize-an-edge-node.md): Authorize an edge node in Azion Console so it can run Orchestrator edge services.
- [How to bind an edge service to an edge node](/en/documentation/guides/application-development/automation/bind-service-node.md): Bind an edge service to an edge node in Azion Console so Orchestrator can deploy it.
- [How to create an edge service](/en/documentation/guides/application-development/automation/create-edge-service.md): Create and activate an edge service in Azion Console for Orchestrator edge nodes.
- [How to install Orchestrator Agent](/en/documentation/guides/application-development/automation/install-orchestrator-agent.md): Learn how to download and install the Azion Orchestrator for various OS like Linux, FreeBSD, and MacOS, including command line instructions.
- [Manage the Azion GitHub App](/en/documentation/guides/application-development/automation/azion-github-app.md): Connect a GitHub account to Azion, review what the app can read, and suspend, uninstall, revoke, or remove it.
- [How to provision files](/en/documentation/guides/application-development/automation/provision-files.md): Add Text and Shell Script resources to an Orchestrator edge service in Azion Console.
- [Run an MCP server on Azion](/en/documentation/guides/application-development/automation/run-mcp-server.md): Build a Model Context Protocol server with the MCP SDK and Hono, run it as an Azion function, and deploy it with the Azion CLI.
- [Deploy a static site with the MCP server](/en/documentation/guides/application-development/automation/deploy-static-site-with-mcp.md): Ask a coding agent connected to the Azion docs MCP server to follow its static site deployment guide, and deploy the site with the Azion CLI.
- [Search Azion docs with the MCP server](/en/documentation/guides/application-development/automation/search-azion-docs-with-mcp.md): Ask a coding agent connected to the Azion docs MCP server to search the Azion documentation, code samples, CLI commands, and Terraform provider docs.
- [Troubleshoot a deployment with the MCP server](/en/documentation/guides/application-development/automation/troubleshoot-deployments-with-mcp.md): Ask a coding agent connected to the Azion MCP servers to debug a deployment that returns error 503, and to propose Core Web Vitals improvements.
- [Deploy a Function with the Azion API](/en/documentation/guides/application-development/automation/deploy-a-function-with-the-azion-api.md): Create a Function, an Application, and a Workload with curl calls to the Azion API v4, and update the code with a PATCH.
- [Manage an Application with Terraform](/en/documentation/guides/application-development/automation/manage-an-application-with-terraform.md): Deploy a Function on Azion with Terraform and change its code with a second apply, with an optional destroy at the end.
- [Change one setting with a PATCH request](/en/documentation/guides/application-development/automation/change-one-setting-with-a-patch-request.md): Change one setting of an Azion API v4 resource with PATCH, or replace the whole resource with PUT and keep the settings you did not change.
- [Import existing resources into Terraform](/en/documentation/guides/application-development/automation/import-existing-resources-into-terraform.md): Bring Azion resources you created in Console, the API, or the CLI under Terraform with import blocks, and let Terraform write their configuration.
- [Store Terraform state in a bucket](/en/documentation/guides/application-development/automation/store-terraform-state-in-a-bucket.md): Keep the Terraform state in an Azion Object Storage bucket with the S3 backend, so every machine and pipeline reads the same state.
- [Manage a Firewall and WAF with Terraform](/en/documentation/guides/application-development/automation/manage-a-firewall-and-waf-with-terraform.md): Declare a Firewall, its rules and their order, and a WAF rule set with the Azion Terraform Provider, then attach the Firewall to a Workload.
- [Seed a database from a Node.js script](/en/documentation/guides/application-development/automation/seed-a-database-from-a-node-js-script.md): Load a schema and rows from a SQL file into a SQL Database database with a Node.js script and the @aziontech/sql package of Azion Lib.
- [Upload a folder to a bucket from Node.js](/en/documentation/guides/application-development/automation/upload-a-folder-to-a-bucket-from-node-js.md): Upload every file of a local folder to an Object Storage bucket, keyed by its path and typed by its extension, from Node.js with @aziontech/storage.
- [Sign and verify a JWT with Azion Lib](/en/documentation/guides/application-development/automation/sign-and-verify-a-jwt-with-azion-lib.md): Sign a JSON Web Token with a shared secret, verify it, and reject a token with the wrong signature or a past expiration, with the @aziontech/jwt package.
- [Clone an Application or a Firewall](/en/documentation/guides/application-development/automation/clone-an-application-or-a-firewall.md): Copy an Application with its cache settings, Function Instances, and rules, or a Firewall with its Function Instances and rules, with one API v4 request.
- [Page through a list with filters and ordering](/en/documentation/guides/application-development/automation/page-through-a-list-with-filters-and-ordering.md): Filter, sort, and page through an Azion API v4 list response with search, fields, ordering, and page_size, and read every page in a shell script.
- [Change DNS records in bulk](/en/documentation/guides/application-development/automation/change-dns-records-in-bulk.md): Create Edge DNS records from a JSON file, then update and delete many records of a zone, with shell loops over the Azion API v4.
- [Reorder Application and Firewall rules](/en/documentation/guides/application-development/automation/reorder-application-and-firewall-rules.md): Change the position of the rules of an Application or a Firewall with one PUT request per rule list to the Azion API v4.
- [How to run scripts on edge nodes](/en/documentation/guides/application-development/automation/run-scripts.md): Install Azion CLI on Orchestrator edge nodes with a Shell Script resource in Azion Console.
- [How to unbind an edge service](/en/documentation/guides/application-development/automation/unbind-service.md): Unbind an edge service from an Orchestrator edge node in Azion Console.
- [How to uninstall Orchestrator Agent](/en/documentation/guides/application-development/automation/uninstall-agent.md): Uninstall Azion Orchestrator Agent from a device and delete its edge node in Azion Console.
- [Watch Orchestrator logs](/en/documentation/guides/application-development/automation/watch-logs.md): Read the Orchestrator Agent log on a managed node, and the log of the services running on it, to confirm a deployment or find why one failed.
- [How to work with variables](/en/documentation/guides/application-development/automation/work-with-variables.md): Set Orchestrator variables on edge services and edge nodes in Azion Console, and learn which value wins.
- [Import a project from GitHub](/en/documentation/guides/application-development/automation/import-an-existing-project-from-github.md): Import a GitHub repository in Azion Console to build and deploy it as an application that deploys again on every push.
- [Route an API path to a backend from azion.config](/en/documentation/guides/application-development/automation/route-an-api-path-to-a-backend.md): Send every request under a path prefix to a backend outside Azion, with a connector and a first rule declared in azion.config.
