Azure / Azure/static-web-apps-cli
Swa deploy fails with an unknown exception has occurred
- Dominant language
- TypeScript
- Stars
- 668
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Running `swa deploy` always fails with:
```
Welcome to Azure Static Web Apps CLI (1.0.1)
Deploying front-end files from folder:
/private_path/Client/bin/publish/wwwroot
Deploying API from folder:
/private_path/Api
Checking Azure session...
✔ Successfully logged into Azure!
Checking project settings...
✔ Choose your Static Web App › app-rg/app-test
✔ Successfully setup project!
Deploying to environment: production
Found configuration file:
/private_path/Client/staticwebapp.config.json
Deploying project to Azure Static Web Apps...
✖ Failed to contact content server, stopping...
✖ An unknown exception has occurred
```
It manages to create the resource in Azure
**To Reproduce**
Steps to reproduce the behavior:
Running `swa deploy` with either `swa-cli.config.json` or manual parameters.
**Expected behavior**
Correct resources should be created and the app deployed.
**Desktop (please complete the following information):**
- OS: Ubuntu 22.04
**Additional context**
It's a blazor app with C# V4 functions Api.
Contributor guide
Assessment
This issue has not been assessed yet.