SQL Server connection not working

I am trying to connect Azure SQL server using HAProxy with below configuration.
listen test
bind *:1433
mode tcp
option tcplog
timeout connect 10s
timeout client 20m
timeout server 20m
maxconn 10000
server testdb **.database.windows.net:1433

But I am getting below error while connecting
Cannot open server ******** requested by the login. The login failed. (40532) (SQLDriverConnect)')