Sql-server – Azure database – unable to locate in the Azure account

azurecodeigniterPHPsql server

I have an Azure account where a developer that used to work with me has set up an MSSQL database on an Ubuntu VM.

The PHP (CodeIgniter) system I am working on logs in (so database queries work correctly). I have the following information available:

  • The connection string uses "sqlsrv" driver in CodeIgniter
  • The hostname in the CI config is "127.0.0.1".
  • Using "top" command, I can see "sqlservr" using resources (12.8% mem, 0.7% CPU)
  • I can run SQL scripts with "sqlcmd -S localhost"

But yet, I can't find anywhere where this database is listed in my Azure portal. Very frustrating. There is nothing listed under "SQL databases" and I have been through all the visible options in the Linux VM, and can't find it.

What am I missing?

Best Answer

The connection information suggest the SQL instance is simply a local SQL Server instance installed in the VM like any other software so you don't use the Azure portal to manage it. Instead, ssh into the VM and run systemctl status mssql-server --no-pager to see if mssql-server.service is listed.

The instance could also be a docker database container, in which case you can use docker ps to list the docker containers running on the machine.