Hi Braden Bowie,
Thank you for reaching out to Microsoft Q & A forum.
The intermittent SqlException: Login failed for user 'dummyUser' issue after deploying your .NET 8 Blazor Web App to Azure may be occurring due to a few common reasons:
1.App Initialization Timing: Right after deployment, the application settings may not be fully loaded, which can lead to login failures. Implementing retry logic (such as using Polly) can help handle these temporary issues.
2.Connection String Settings: Please ensure the connection string configured in your Azure App Service is correct and consistent with what works locally. If possible, using Managed Identity is a more secure and reliable option than hardcoding credentials.
3.TrustServerCertificate=False: When this is set, the application requires a valid, trusted SSL certificate. Ensure that your Azure environment is able to validate the SQL server's certificate. As a temporary workaround, TrustServerCertificate=True can help, but it is less secure.
4.High Load or Concurrent Requests: If the error appears during multiple simultaneous database requests, it may be related to connection pooling or DbContext usage. Please ensure that DbContext is registered with a Scoped lifetime in your Blazor Server app.
Lastly, enabling Application Insights or Azure diagnostic logging can provide more clarity on when and why the failures occur.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.