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 CONNECTION when using Service Principal #241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CONNECTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ ALTER ROLE [db_ddladmin]
ADD MEMBER [sqldeployserviceprincipal];
```

You might also need to create the user in the master database:
```sql
USE master
CREATE USER [sqldeployserviceprincipal] FROM EXTERNAL PROVIDER;
```

The connection string for Azure Active Directory service principal authentication is:

```
Expand Down Expand Up @@ -212,4 +218,4 @@ The connection string for Azure Active Directory managed identity authentication
Server=<servername>;Initial Catalog=<database>;Authentication=Active Directory Default; Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
```

Note: no userid or password is required for managed identity authentication.
Note: no userid or password is required for managed identity authentication.