@Koh Jun Kai Thanks for your patience on this.
I have summarized our offline discussion and sharing the below answer for the benefit of community.
Upon investigating deeper, we see that there is a mismatch between the password of sql database and also the linked sql database connection of static webapp.
- Using the below cmdlet customer is able to see which password does the static webapp is using to access the db.
az rest --method POST -u /subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP/providers/Microsoft.Web/staticSites/APP_NAME/databaseConnections/default/show?api-version=2022-09-01
- Since customer is using sql authentication, suggested them to reset the password of the user and try unlinking and linking the database connection to static webapp. Post that customer confirmed that it is working fine.
Feel free to reach back to me if you have any further questions on this.
Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.