betr-io / terraform-provider-mssql

Terraform provider for Microsoft SQL Server
https://registry.terraform.io/providers/betr-io/mssql/latest
MIT License
35 stars 29 forks source link

Password required for an mssql login #81

Open nathanblair opened 4 months ago

nathanblair commented 4 months ago

We have Entra ID-authentication only enabled for our MSSQL Server.

As such, our Logins (outside of the MSSQL Server default logins) are all Entra ID principals.

To add them with pure SQL, we would use something like

CREATE LOGIN [$login] FROM EXTERNAL PROVIDER
ALTER SERVER ROLE [$role] ADD MEMBER [$login]

I would like to use this provider to help manage our server logins in addition to our database users but I'm unable to piece together how EXTERNAL PROVIDER logins with no passwords and specific roles would work with this provider. Is this an unsupported use case?