Azure / Azure/static-web-apps

Azure Static Web App code-first deployment fails with "Failed to deploy Azure Functions"

Open
#1,449 0 comments 0 reactions 0 assignees View on GitHub
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**
![swa-fial](https://github.com/Azure/static-web-apps/assets/14007831/f72f79a0-7d8a-4102-9b20-c9323d61e58c)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.