I created a static web app (basically just a few HTML files) and added an API. Both work fine: I can access the web app (https://icy-tree-xyz.1.azurestaticapps.net), and I can successfully call the API (https://icy-tree-xyz.1.azurestaticapps.net/api/testfunction).
- Then I open the app settings in the azure portal
- click on "Application Insights"
- click "enable"
- click "create new" and create a new instance
- click "save"
Everything seems to be OK. But when I change to a different setting like "custom domains" and back again, that application insights settings are gone. It "forgets" them somehow.