Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alex_hill's avatar

Connecting to MS SQL Server using Active Directory Integrated

I am attempting to migrate a laravel application to Azure App Service and Microsoft SQL Server in Azure. As part of the database connection I would like to use AD Integrated authentication with Managed Identities. There are a number of articles and tutorials on setting this up with ASP (naturally), but I can't seem to find anything related to PHP / Laravel.

Two questions:

  1. Has anyone done this before?
  2. If not, is there an easy way to overwrite the connection string which is generated via the environment variables such that I can try different strings?

Thanks, Alex

0 likes
3 replies
jlrdw's avatar

Just curious, why not use .net core.

alex_hill's avatar

The application has already been built in Laravel and has been running for a couple of years. The people deciding on the architecture migration are not the same team who manage the application, so our hand has been forced somewhat.

Please or to participate in this conversation.