Command 'az staticwebapp backends link' returns 500 and body {"Message":"An error has occurred."} #30860
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
staticwebapp
az staticwebapp
Describe the bug
I'm trying to link a Function App to a Static Web App via script. The command fails with a 500 server error and the content {"Message":"An error has occurred."}. Using the debug flag I can see that this is a response to the Microsoft.Web/staticSites/<SWA_name>/builds/default/linkedBackends/ PUT request. This doesn't give me hints to debug the issue myself.
Related command
az staticwebapp backends link
Errors
cli.azure.cli.core.azclierror: An error has occurred.
az_command_data_logger: An error has occurred.
The traceback is just the handling of the HTTP 500 response internally.
Issue script & Debug output
There's no script, the command errors out on its own.
Here's the redacted debug output, with correlation and request IDs intact.
Expected behavior
Link the Function App to the Static Web App successfully.
Environment Summary
Additional context
I'm running in WSL. I don't know if that affects this error.
The text was updated successfully, but these errors were encountered: