Skip to content

[Issue] Problem deploying a simple static HTML app to SWA using azd #5506

@davrous

Description

@davrous
  • Make sure you've installed the latest version using instructions

Output from azd version
azd version 1.18.0 (commit 2c3bc5a)

Describe the bug
I wanted to do a fun experiment where I would create a simple space invaders game in HTML5, in vibe coding with GHC + Claude Sonnet 4, and then use Azure MCP servers to deploy it to Azure.

I tried 3 times and every time, the game was perfectly created but the deployment, using SWA as recommendation from AI, failed. It was able to create the Azure RG and create the SWA inside it but every time, the SWA was empty. The agentic DevEx wasn’t able to package the local static files to deploy them to Azure for whatever reason.

GH Copilot tried sometimes to fall back to the SWA CLI but failed also.

At the end, Copilot shared the link to the public web app but it only display the default page of an empty static web app.

To Reproduce
• Inside GH Copilot, with Agent mode and Claude Sonnet 4
• First prompt "create a space invaders game using HTML5"
• Second part: "can you please deploy the web app to Azure?"
• GHC uses our MCP server to create the yaml, bicep files and uses azd up to deploy a SWA to Azure.

Expected behavior
The static web files should be deployed as expected

Environment
Information on your environment:

  • VS Code stable release v1.102.1
  • GitHub Copilot pre-release 1.345.1685
  • GitHub Copilot for Azure 1.0.42
  • Azure Tools 1.6.0
  • AI Toolkit pre-release
  • Azure AI Foundry release 0.7.0
  • Azure App Service preview 0.26.3
  • Azure CLI Tools 0.6.0
  • Etc (complete list below)

ecmel.vscode-html-css
github.copilot
github.copilot-chat
ms-azure-load-testing.microsoft-testing
ms-azuretools.azure-dev
ms-azuretools.vscode-azure-github-copilot
ms-azuretools.vscode-azureappservice
ms-azuretools.vscode-azurecontainerapps
ms-azuretools.vscode-azurefunctions
ms-azuretools.vscode-azureresourcegroups
ms-azuretools.vscode-azurestaticwebapps
ms-azuretools.vscode-azurestorage
ms-azuretools.vscode-azurevirtualmachines
ms-azuretools.vscode-bicep
ms-azuretools.vscode-containers
ms-azuretools.vscode-cosmosdb
ms-dotnettools.csdevkit
ms-dotnettools.csharp
ms-dotnettools.vscode-dotnet-runtime
ms-python.debugpy
ms-python.python
ms-python.vscode-pylance
ms-toolsai.jupyter
ms-toolsai.jupyter-keymap
ms-toolsai.jupyter-renderers
ms-toolsai.vscode-jupyter-cell-tags
ms-toolsai.vscode-jupyter-slideshow
ms-vscode-remote.remote-containers
ms-vscode.azurecli
ms-vscode.powershell
ms-vscode.vscode-node-azure-pack
ms-windows-ai-studio.windows-ai-studio
msazurermtools.azurerm-vscode-tools
redhat.vscode-yaml
teamsdevapp.ms-teams-vscode-extension
teamsdevapp.vscode-ai-foundry
undefined_publisher.aitk-langmodeltool

Additional context
When running "azd deploy --debug" I can see that an error is making an exit behavior. Then azd tries multiples times to run the deploy and ended up failing with:

2025/07/18 22:36:13 main.go:50: Retry: response 200
2025/07/18 22:36:13 main.go:50: Retry: exit due to non-retriable status code
(x) Failed: Deploying service space-invaders-game

ERROR: failed deploying service 'space-invaders-game': failed verifying static web app deployment. Still in Uploading state

Metadata

Metadata

Assignees

Labels

swaAzure Static Web Apps

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions