betr-io / terraform-provider-mssql

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

Cannot import the resource "mssql_login" #13

Closed bruno-motacardoso closed 2 years ago

bruno-motacardoso commented 2 years ago

Hello,

I am trying to import a mssql_login resource to my terraform state with the following command: terraform import mssql_login.example 'mssql://example-sql-server.database.windows.net/testlogin'

But I have the following error: Error: neither login nor azure login specified It seems that the error is thrown by the betr-io/terraform-provider-mssql provider.

Anyone can import this type of resource ?

bruno-motacardoso commented 2 years ago

I solved this problem using the SQL Server authentication by using the environment variable MSSQL_USERNAME and MSSQL_PASSWORD. I have updated the documentation with PR #14 .