These errors typically occur when the client cannot reach the database endpoint or authentication fails.
Error 40613 – Database unavailable
Message: The database 'mydb' is not currently available.
Resolution:
- Check the database's status in the Azure portal.
- Verify that the firewall rules allow your client IP.
- Ensure the logical server is not paused (serverless tier).
Login failed for user
Message: Login failed for user 'username'.
Resolution:
- Confirm the username and password.
- Make sure the user exists in the database.
- Review Azure AD authentication settings if using Azure AD.