You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用SWA CLI部署Node应用至Azure静态Web应用失败求助

SWA CLI部署Node应用至Azure静态Web应用失败求助

各位大佬好,想请教个部署相关的问题:

我们已经在Azure云环境中创建了Azure静态Web应用和专用终结点,并且通过在专用DNS区域添加DNS记录,把静态Web应用的FQDN映射到了专用终结点的IP地址。

目前从同一虚拟网络范围内测试时,nslookup名称解析正常,而且443端口的telnet连接也能成功建立,网络层面看起来是没问题的。

但是当我们尝试用SWA CLI部署Node应用的.dist文件夹时,部署失败了。执行的命令如下:

swa deploy ./dist/ --env production  --deployment-token  xxxxxxxx

CLI的输出信息如下:

Welcome to Azure Static Web Apps CLI (1.1.2)

Deploying front-end files from folder:

/home/user/swa/test/dist

Consider providing api-language and version using --api-language and --api-version flags,

otherwise default values apiLanguage: node and apiVersion: 16 will apply

Deploying to environment: production

Deploying project to Azure Static Web Apps...

✖ Failed to contact content server, stopping...

✖ An unknown exception has occurred

想请教下,明明网络连通性和域名解析都正常,为什么部署会出现这个错误?有没有什么排查方向或者解决方案可以推荐?

备注:内容来源于stack exchange,提问作者saran

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 08:53:15