Azure / Azure/static-web-apps-cli
StaticSitesClient failure when using swa deploy
- Dominant language
- TypeScript
- Stars
- 668
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
Hello, we are getting a deployment error when trying to use "swa deploy" to deploy our static website to Azure. We have tried the workaround suggested of editing a JS file in the SWA deployment folder (adding a couple of lines) to no avail. Please advise on any suggestions.
SWA version: 2.0.4
Visual Studio Code information (from about):
Version: 1.98.2 (user setup)
Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
Date: 2025-03-12T13:32:45.399Z
Electron: 34.2.0
ElectronBuildId: 11161602
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Windows_NT x64 10.0.19045
Full text of commands and error message:
PS C:\Users\vig3\Desktop\New folder\MicrobeNetCloud\swaapp> swa --version
2.0.4
PS C:\Users\vig3\Desktop\New folder\MicrobeNetCloud\swaapp> swa deploy
Welcome to Azure Static Web Apps CLI (2.0.4)
Using configuration "swaapp" from file:
C:\Users\vig3\Desktop\New folder\MicrobeNetCloud\swaapp\swa-cli.config.json
Deploying front-end files from folder:
C:\Users\vig3\Desktop\New folder\MicrobeNetCloud\swaapp\build
Consider providing api-language and version using --api-language and --api-version flags,
otherwise default values apiLanguage: node and apiVersion: 16 will apply
Checking Azure session...
✔ Successfully logged into Azure!
Checking project "SWAApp" settings...
✔ Successfully setup project!
Deploying to environment: preview
Deploying project to Azure Static Web Apps...
✖
✖ Deployment Failed :(
✖ Deployment Failure Reason: Could not load StaticSitesClient metadata from remote. Please check your internet connection.
Contributor guide
Assessment
This issue has not been assessed yet.