To host Data API Builder on-prem in Windows Server 2022 with IIS and SQL Server, first update dab-config.json
for production (enable REST, set CORS, auth, etc.) and run it so it listens externally with dab start --host 0.0.0.0 --port 5000
, then publish it with dotnet publish -c Release -r win-x64 --self-contained true
and install the generated EXE as a Windows Service using sc create
(or NSSM) so it runs automatically, and optionally configure IIS as a reverse proxy by installing URL Rewrite + Application Request Routing, creating a rule to forward all requests to http://localhost:5000
, and letting IIS handle SSL, host bindings, and firewall exposure, ensuring you lock down CORS and authentication before making it publicly reachable.