azure 上部署 hermes agent 有三种方式:一、用 azure container apps 无服务器部署,需配置官方镜像及环境变量并启用 https;二、通过 aks 使用 helm chart 部署,支持高可用与生态集成;三、在 linux vm 上手动安装二进制文件并配置 systemd 服务。
☞☞☞AI 智能聊天, 问答助手, AI 智能搜索, 多模态理解力帮你轻松跨越从0到1的创作门槛☜☜☜

如果您希望在 Azure 云平台上运行 Hermes Agent,需通过容器化方式将其部署至 Azure Container Apps 或 Azure Kubernetes Service(AKS)等托管环境。以下是具体部署方法:
一、使用 Azure Container Apps 部署 Hermes Agent
Azure Container Apps 是无服务器容器托管服务,无需管理底层基础设施,适合轻量级、事件驱动的 Hermes Agent 实例。该方式依赖预构建的容器镜像,并通过 YAML 配置定义运行时行为。
1、访问 Azure Portal → 创建资源 → 搜索“Container Apps” → 创建新 Container App 环境。
2、在新建的 Container App 中,配置容器镜像为 Hermes Agent 官方镜像或您自行构建并推送至 Azure Container Registry(ACR)的镜像,例如 myacr.azurecr.io/hermes-agent:latest。
3、设置必要环境变量:包括 HERMES_SERVER_URL、HERMES_AGENT_ID 和 HERMES_API_KEY,确保 Agent 可连接至 Hermes 控制平面。
4、启用 HTTPS 入站流量(如需 Webhook 接收能力),并在 Ingress 设置中开启外部访问。
二、通过 Azure Kubernetes Service(AKS)部署 Hermes Agent
AKS 提供对 Helm Chart 和原生 Kubernetes 清单的完整支持,适用于需要高可用性、水平扩展或与现有 K8s 生态集成的 Hermes Agent 部署场景。
1、确认已创建 AKS 集群并获取其 kubeconfig,执行 az aks get-credentials --resource-group myRG --name myAKSCluster。
2、创建专用命名空间:运行 kubectl create namespace hermes-agent。
3、应用 Helm repo:执行 helm repo add hermes https://charts.hermes.dev 并更新索引。
4、安装 Helm Release:运行 helm install hermes-agent hermes/agent --namespace hermes-agent --set server.url=https://hermes.example.com --set agent.id=prod-east-01。
三、基于 Azure Virtual Machine 手动部署 Hermes Agent
当需要完全控制操作系统层、调试代理行为或测试非容器化运行模式时,可在 Ubuntu 或 CentOS 虚拟机上直接部署 Hermes Agent 二进制文件。
1、在 Azure 门户中创建 Linux VM(推荐 Ubuntu 22.04 LTS),启用入站端口 8080(用于健康检查)和 443(如启用 TLS 回调)。
2、SSH 登录后,下载 Hermes Agent 二进制:执行 curl -L https://github.com/hermes-org/agent/releases/download/v0.12.3/hermes-agent-linux-amd64 -o /usr/local/bin/hermes-agent。
3、赋予可执行权限:运行 chmod +x /usr/local/bin/hermes-agent。
4、创建 systemd 服务文件 /etc/systemd/system/hermes-agent.service,指定 EnvironmentFile 路径及启动命令,随后执行 systemctl daemon-reload && systemctl enable --now hermes-agent。











