Skip to content

Commit

Permalink
Update import documentation
Browse files Browse the repository at this point in the history
SQL server authentication is missing in import documentation.
  • Loading branch information
bruno-motacardoso authored Aug 25, 2021
1 parent 3f84011 commit cd2b05f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/resources/login.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ The following attributes are exported:

## Import

A SQL Server login can be imported using the server URL and `login name`, e.g.
Before importing `mssql_login`, you must to configure the authentication to your sql server:
1. Using Azure AD authentication, you must set the following environment variables: `MSSQL_TENANT_ID`, `MSSQL_CLIENT_ID` and `MSSQL_CLIENT_SECRET`.
2. Using SQL authentication, you must set the following environment variables: `MSSQL_USERNAME` and `MSSQL_PASSWORD`.

After that you can use the import commande using the server URL and `login name`, e.g.

```shell
terraform import mssql_login.example 'mssql://example-sql-server.database.windows.net/testlogin'
Expand Down

0 comments on commit cd2b05f

Please sign in to comment.