Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mssql-setup.md #4951

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Update mssql-setup.md #4951

merged 1 commit into from
Feb 20, 2024

Conversation

yuta-suggs
Copy link
Contributor

@yuta-suggs yuta-suggs commented Feb 19, 2024

MSI->ActiveDirectoryMsi

What are you changing in this pull request and why?

I am submitting this PR as I was able to authenticate using the managed identity after modifying the authentication method from "authentication: MSI" to "authentication: ActiveDirectoryMsi".

The logs have been recorded and are displayed as follows:

$ pip show dbt-sqlserver
Name: dbt-sqlserver
Version: 1.7.2
Summary: A Microsoft SQL Server adapter plugin for dbt
Home-page: https://github.com/dbt-msft/dbt-sqlserver
Author: Mikael Ene, Anders Swanson, Sam Debruyn, Cor Zuurmond
Author-email:
License: MIT
Location: /home/azureuser/.local/lib/python3.8/site-packages
Requires: azure-identity, dbt-core, dbt-fabric, pyodbc
Required-by:
$ dbt debug
10:46:43  Running with dbt=1.7.8
10:46:43  dbt version: 1.7.8
10:46:43  python version: 3.8.10
10:46:43  python path: /usr/bin/python3
10:46:43  os info: Linux-5.15.0-1034-azure-x86_64-with-glibc2.29
10:46:43  Using profiles dir at /home/azureuser/.dbt
10:46:43  Using profiles.yml file at /home/azureuser/.dbt/profiles.yml
10:46:43  Using dbt_project.yml file at /xxx/test_dbt/dbt_project.yml
10:46:43  adapter type: sqlserver
10:46:43  adapter version: 1.7.2
10:46:43  Configuration:
10:46:43    profiles.yml file [OK found and valid]
10:46:43    dbt_project.yml file [OK found and valid]
10:46:43  Required dependencies:
10:46:43   - git [OK found]

10:46:43  Connection:
10:46:43    server: sqldb-tdp-server-dev-003.database.windows.net
10:46:43    database: sqldb-tdp-dev-003
10:46:43    schema: dbo
10:46:43    UID: None
10:46:43    client_id: None
10:46:43    authentication: MSI
10:46:43    encrypt: True
10:46:43    trust_cert: False
10:46:43    retries: 1
10:46:43    login_timeout: 0
10:46:43    query_timeout: 0
10:46:43    port: 1433
10:46:43  Registered adapter: sqlserver=1.7.2
10:46:44    Connection test: [ERROR]

10:46:44  1 check failed:
10:46:44  dbt was unable to connect to the specified database.
The database returned the following error:

  >Database Error
  ('28000', "[28000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user ''. (18456) (SQLDriverConnect)")

Check your database credentials and try again. For more information, visit:
https://docs.getdbt.com/docs/configure-your-profile
$ dbt debug
11:12:18  Running with dbt=1.7.8
11:12:18  dbt version: 1.7.8
11:12:18  python version: 3.8.10
11:12:18  python path: /usr/bin/python3
11:12:18  os info: Linux-5.15.0-1034-azure-x86_64-with-glibc2.29
11:12:18  Using profiles dir at /home/azureuser/.dbt
11:12:18  Using profiles.yml file at /home/azureuser/.dbt/profiles.yml
11:12:18  Using dbt_project.yml file at /xxx/test_dbt/dbt_project.yml
11:12:18  adapter type: sqlserver
11:12:18  adapter version: 1.7.2
11:12:19  Configuration:
11:12:19    profiles.yml file [OK found and valid]
11:12:19    dbt_project.yml file [OK found and valid]
11:12:19  Required dependencies:
11:12:19   - git [OK found]

11:12:19  Connection:
11:12:19    server: sqldb-tdp-server-dev-003.database.windows.net
11:12:19    database: sqldb-tdp-dev-003
11:12:19    schema: dbo
11:12:19    UID: None
11:12:19    client_id: None
11:12:19    authentication: ActiveDirectoryMsi
11:12:19    encrypt: True
11:12:19    trust_cert: False
11:12:19    retries: 1
11:12:19    login_timeout: 0
11:12:19    query_timeout: 0
11:12:19    port: 1433
11:12:19  Registered adapter: sqlserver=1.7.2
11:12:19    Connection test: [OK connection ok]

11:12:19  All checks passed!

Checklist

MSI->ActiveDirectoryMsi
Copy link

welcome bot commented Feb 19, 2024

Hello!👋 Thanks for contributing to the dbt product documentation and opening this pull request! ✨
We use Markdown and some HTML to write the dbt product documentation. When writing content, you can use our style guide and content types to understand our writing standards and how we organize information in the dbt product docs.
We'll review your contribution and respond as soon as we can. 😄

Copy link

vercel bot commented Feb 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 11:51am

@runleonarun runleonarun added the new contributor Label for first-time contributors label Feb 19, 2024
@github-actions github-actions bot added content Improvements or additions to content size: x-small This change will take under 3 hours to fix. and removed new contributor Label for first-time contributors labels Feb 19, 2024
@yuta-suggs yuta-suggs marked this pull request as ready for review February 19, 2024 11:48
@yuta-suggs yuta-suggs requested a review from a team as a code owner February 19, 2024 11:48
@b-per b-per self-requested a review February 20, 2024 13:58
@mirnawong1
Copy link
Contributor

thanks @b-per !

@mirnawong1 mirnawong1 merged commit 2778510 into dbt-labs:current Feb 20, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content February-2024 size: x-small This change will take under 3 hours to fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants