Azure / Azure/static-web-apps

SWA app insights unavailable even when the resource is linked to functions

Open
#1,333 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

The static web app is linked to a functions API and I have verified the API is working. The SWA isn't working, and when I try to see the app insights, it says I have to link it to functions.

From my work, I think my SWA isn't building correctly with I do `azd deploy` but I don't have an indication from `azd deploy --debug` that the build failed.

**To Reproduce**
Steps to reproduce the behavior:

1. In portal, verify API is working
2. In portal, verify SWA is linked to API from the "API" section.
3. In portal, go to "Application Insights" section, see error "App Insights is only application to Static Web Apps with at least one function..."

![image](https://github.com/Azure/static-web-apps/assets/1517008/b96b6090-a47a-452d-a5ed-92367596785c)
![image](https://github.com/Azure/static-web-apps/assets/1517008/212c7237-76fc-4588-aafc-cbf1a3fdd991)

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.