Skip to content

Commit 6671746

Browse files
Escaping Special characters from password for Active Directory Password (#13599)
Co-authored-by: 20shivangi <[email protected]>
1 parent f49f79f commit 6671746

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Tasks/SqlAzureDacpacDeploymentV1/SqlAzureActions.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,15 @@ function Run-SqlCmd {
250250
[string] $sqlcmdAdditionalArguments
251251
)
252252

253+
$sqlPassword = EscapeSpecialChars -str $sqlPassword
254+
253255
if ($authenticationType -eq "server") {
254256

255257
if ($sqlUsername) {
256258
$sqlUsername = Get-FormattedSqlUsername -sqlUserName $sqlUsername -serverName $serverName
257259
}
258260

259261
$scriptArgument = "Invoke-Sqlcmd -ServerInstance `"$serverName`" -Database `"$databaseName`" -Username `"$sqlUsername`" "
260-
$sqlPassword = EscapeSpecialChars -str $sqlPassword
261262

262263
$commandToRun = $scriptArgument + " -Password `"$sqlPassword`" "
263264
$commandToLog = $scriptArgument + " -Password ****** "

Tasks/SqlAzureDacpacDeploymentV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 1,
1919
"Minor": 171,
20-
"Patch": 2
20+
"Patch": 3
2121
},
2222
"demands": [
2323
"sqlpackage"

Tasks/SqlAzureDacpacDeploymentV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 1,
1919
"Minor": 171,
20-
"Patch": 2
20+
"Patch": 3
2121
},
2222
"demands": [
2323
"sqlpackage"

0 commit comments

Comments
 (0)