Azure Static Web App code-first deployment fails with "Failed to deploy Azure Functions"
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
It seems that deploying Azure Static Web apps that contain a Managed Python API backend does not work if you do not deploy via
the Azure Portal. Strangely everything works fine if you deploy from the Azure Portal
**To Reproduce**
Steps to reproduce the behaviour:
1. Clone repository: https://github.com/ndamulelonemakh/rota-app.git
2. Change Directory to ./rota-app
3. Run `./deploy.sh` to deploy the bicep template `main.bicep`
4. This will create a SWA resource and trigger a new Github Actions run
5. After a while the deployment fails with error: "Failed to deploy Azure Functions"
**Expected behavior**
After deploying the bicep template, the GitHub action must publish the frontend app as well as the managed functions as it does
when I deploy via the portal.
**Screenshots**

If applicable, add screenshots to help explain your problem.
**Device info (if applicable):**
- OS: Ubuntu 20.04
- Browser chrome, edge
- Version [e.g. 22]
**Additional context**
The repository is public and can be found here: https://github.com/ndamulelonemakh/rota-app.git
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.