You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reports: '"SQL 2017.coverage.xml";"SQL DB.coverage.xml"'# REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
34
+
reports: '**/*.coverage.xml"'# REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
35
35
targetdir: 'coverage'# REQUIRED # The directory where the generated report should be saved.
sourcedirs: '$(Build.SourcesDirectory)'# Optional directories which contain the corresponding source code (separated by semicolon). The source directories are used if coverage report contains classes without path information.
Copy file name to clipboardExpand all lines: README.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ We will be implementing command line switches and behaviors over time. Several s
12
12
13
13
-`-P` switch will be removed. Passwords for SQL authentication can only be provided through these mechanisms:
14
14
15
-
-The `SQLCMDPASSWORD` environment variable
16
-
-The `:CONNECT` command
17
-
-When prompted, the user can type the password to complete a connection
15
+
-The `SQLCMDPASSWORD` environment variable
16
+
-The `:CONNECT` command
17
+
-When prompted, the user can type the password to complete a connection (pending [#50](https://github.com/microsoft/go-sqlcmd/issues/50))
18
18
19
19
-`-R` switch will be removed. The go runtime does not provide access to user locale information, and it's not readily available through syscall on all supported platforms.
20
20
-`-I` switch will be removed. To disable quoted identifier behavior, add `SET QUOTED IDENTIFIER OFF` in your scripts.
@@ -28,7 +28,7 @@ We will be implementing command line switches and behaviors over time. Several s
28
28
29
29
### Azure Active Directory Authentication
30
30
31
-
This version of sqlcmd supports a broader range of AAD authentication models, based on the [azidentity package](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity).
31
+
This version of sqlcmd supports a broader range of AAD authentication models, based on the [azidentity package](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). The implementation relies on an AAD Connector in the [driver](https://github.com/denisenkom/go-mssqldb).
32
32
33
33
#### Command line
34
34
@@ -61,23 +61,20 @@ Set `AZURE_TENANT_ID` environment variable to the tenant id of the server if not
61
61
`ActiveDirectoryInteractive`
62
62
63
63
This method will launch a web browser to authenticate the user.
64
-
Set `AZURE_TENANT_ID` environment variable to the tenant id of the server if not using the default.
65
64
66
65
`ActiveDirectoryManagedIdentity`
67
66
68
67
Use this method when running sqlcmd on an Azure VM that has either a system-assigned or user-assigned managed identity. If using a user-assigned managed identity, set the user name to the ID of the managed identity. If using a system-assigned identity, leave user name empty.
69
68
70
69
`ActiveDirectoryServicePrincipal`
71
70
72
-
This method authenticates the provided user name as a service principal id and the password as the client secret for the service principal. Set `AZURE_TENANT_ID`environment variable to the tenant id of the service principal.
71
+
This method authenticates the provided user name as a service principal id and the password as the client secret for the service principal. Provide a user name in the form `<service principal id>@<tenant id>`. Set `SQLCMDPASSWORD` variable to the client secret. If using a certificate instead of a client secret, set `AZURE_CLIENT_CERTIFICATE_PATH`environment variable to the path of the certificate file.
73
72
74
73
### Environment variables for AAD auth
75
74
76
75
Some settings for AAD auth do not have command line inputs, and some environment variables are consumed directly by the `azidentity` package used by `sqlcmd`.
77
76
These environment variables can be set to configure some aspects of AAD auth and to bypass default behaviors. In addition to the variables listed above, the following are sqlcmd-specific and apply to multiple methods.
78
77
79
-
`SQLCMDAZURERESOURCE` - defines the URL of the Azure SQL database resource in the Azure cloud where the database resides. By default, `sqlcmd` attempts to match the DNS suffix of the server name with one of the well known Azure cloud DNS suffixes. If no match is found it uses `https://database.windows.net`.
80
-
81
78
`SQLCMDCLIENTID` - set this to the identifier of an application registered in your AAD which is authorized to authenticate to Azure SQL Database. Applies to `ActiveDirectoryInteractive` and `ActiveDirectoryPassword` methods.
0 commit comments