Azure / Azure/static-web-apps

Azure Function Proxies not working. Again.

Open
#1,526 0 comments 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

Deploying [this sample app](https://github.com/scale-tone/cognitive-search-static-web-apps-sample-ui) to this fresh new SWA instance: https://calm-cliff-07e291203.5.azurestaticapps.net using [this 'Deploy to Azure' button](https://github.com/scale-tone/cognitive-search-static-web-apps-sample-ui?tab=readme-ov-file#how-to-deploy-to-azure).

The deployment just fails with meaningless ` Failed to deploy the Azure Functions.` message.

Discovered, that if I temporarily remove `SWA_ENABLE_PROXIES_MANAGED_FUNCTIONS` value from app settings, the deployment succeeds (but the app obviously does not work, because it requires those Azure Function Proxies to be available).

Re-adding `SWA_ENABLE_PROXIES_MANAGED_FUNCTIONS` setting then breaks the API host - API endpoints start returning 503 (you can see that yourself by navigating to instance's URL and checking network calls).

[Azure Function Proxies are not deprecated, either in Azure Functions or in SWA](https://learn.microsoft.com/en-us/azure/static-web-apps/languages-runtimes#re-enabling-proxies-in-v4x).

It worked in May. Why does it not work again?

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.