Migrate SWA off of Database Connections feature

Maarten van de Bospoort 15 Reputation points
2025-09-16T22:33:51.27+00:00

We received a note on 9/15/2025 that:

"Azure Static Web Apps Database Connections will be retired on 1 November 2025. Please migrate your deployments to Data API Builder by that date."

Is there a migration guide in the works or are we on our own?

This is the feature that is retiring next month:

https://learn.microsoft.com/en-us/azure/static-web-apps/database-overview

Azure Database Migration service
{count} votes

1 answer

Sort by: Most helpful
  1. Keith Davidson 0 Reputation points
    2025-10-22T07:37:41.6266667+00:00

    I admit I was very aware of the "(preview)" suffix on the database connection link in the portal and documentation.

    It's very disappointing that there's so little support. It's all well and good saying 'host your own instance' and there is guidance to do that, there is no guidance, that I have found, that can walk me through hosting it for dev purposes and updating the deployment pipelines.

    I tried implementing all the data-api endpoints explicitly in the Azure Function but the output sql bindings that insert a record don't return anything, so there's no way of returning a new records primary key. I tried stored procs but they don't seem to work with output bindings either.

    Not really an answer but as far as I can tell the options are:

    • follow their guidance and deploy DAB and work out how that manifests in dev and deployment or
    • add explicit endpoints to your azure function for all the queries / crud operations and add some correlationid to each of my tables so I can query for records once they've been inserted.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.