An Azure service that provides streamlined full-stack web app development.
Hi @Robert VAN DYKE ,
Thanks for the detailed question and for sharing the steps you tried.
You're running into a very common situation with Azure Static Web Apps. When a SWA is created with a managed Functions backend (the default experience), the portal disables the option to link an external backend like your rtuo-backend-linux App Service. That's why you can't select the Linux Web App in the linking blade.
Recommended Solution:
To switch from the managed backend to your existing App Service backend, follow these steps:
- In your GitHub Actions workflow file (usually .github/workflows/azure-static-web-apps-....yml), set the api_location value to an empty string:
api_location: "" - Remove (or temporarily move) the api/ folder from your repository if it still exists.
- Commit and push the change so the Static Web App redeploys without managed Functions.
- Once the redeployment completes, go back to your RTUO-App in the Azure Portal:
- Navigate to APIs in the left menu.
- In the Production environment, click Link.
- Set Backend resource type to Web App.
- Select your subscription, resource group (RTUOLLC), and Resource name: rtuo-backend-linux.
- Click Link.
After linking, all requests to /api/* on your Static Web App will be automatically proxied to rtuo-backend-linux.azurewebsites.net.
Reference:
https://learn.microsoft.com/en-us/azure/static-web-apps/apis-app-service
https://learn.microsoft.com/en-us/azure/static-web-apps/apis-overview
https://learn.microsoft.com/en-us/azure/static-web-apps/functions-bring-your-own
This approach works on the Standard plan (bring-your-own backends are not supported on Free).
Kindly let us know if the above helps or you need further assistance on this issue.
Please "accept" if the information helped you. This will help us and others in the community as well.