We have an Azure SQL server. From some machines in our Azure subscription we cannot connect to our SQL server, but from other machines it's fine. From machines outside of Azure we have no issues at all.
The error thrown is
Login failed for user 'SQLAdminUser'
And the SQL log itself shows:
<login_information><error_code>18456</error_code><error_state>113</error_state></login_information>
Reproduction is very simple. From an affected machine, in Powershell, execute:
$sqlConnection = New-Object System.Data.SqlClient.SqlConnection "Server=tcp:ourdb-sql.database.windows.net,1433;Initial Catalog=SitesEE;Persist Security Info=False;User ID=SQLAdminUser;Password=[password]"
$sqlConnection.Open()
Exception calling "Open" with "0" argument(s): "Login failed for user 'SQLAdminUser'."
I don't see Error 113 documented anywhere on the official documentation. I'm assuming it's related to a VM somehow as other machines can execute that code without issues.