From 1c3fbc866217742de8ce652681fc7fa66b870ee7 Mon Sep 17 00:00:00 2001 From: Amruta Kawade Date: Mon, 19 Oct 2020 20:19:26 +0530 Subject: [PATCH] $ issue in connection string fixed --- Tasks/SqlAzureDacpacDeploymentV1/SqlAzureActions.ps1 | 3 ++- Tasks/SqlAzureDacpacDeploymentV1/task.json | 4 ++-- Tasks/SqlAzureDacpacDeploymentV1/task.loc.json | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Tasks/SqlAzureDacpacDeploymentV1/SqlAzureActions.ps1 b/Tasks/SqlAzureDacpacDeploymentV1/SqlAzureActions.ps1 index ac8e9c94a386..fb481e3796a4 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/SqlAzureActions.ps1 +++ b/Tasks/SqlAzureDacpacDeploymentV1/SqlAzureActions.ps1 @@ -272,6 +272,7 @@ function Run-SqlCmd { } elseif ($authenticationType -eq "connectionString") { Check-ConnectionString + $connectionString = EscapeSpecialChars -str $connectionString $commandToRun = "Invoke-Sqlcmd -connectionString `"$connectionString`" " $commandToLog = "Invoke-Sqlcmd -connectionString `"**********`" " } @@ -279,7 +280,7 @@ function Run-SqlCmd { Check-connectionString $connectionString = Get-AADAuthenticationConnectionString -authenticationType $authenticationType -serverName $serverName -databaseName $databaseName -sqlUserName $sqlUserName -sqlPassword $sqlPassword $commandToRun = "Invoke-Sqlcmd -connectionString `"$connectionString`" " - $commandToLog = "Invoke-Sqlcmd -connectionString `"$connectionString`" " + $commandToLog = "Invoke-Sqlcmd -connectionString `"**********`" " } $commandToRun += " -Inputfile `"$sqlFilePath`" " + $sqlcmdAdditionalArguments diff --git a/Tasks/SqlAzureDacpacDeploymentV1/task.json b/Tasks/SqlAzureDacpacDeploymentV1/task.json index 4b4bbc27b0dd..43baae709970 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/task.json +++ b/Tasks/SqlAzureDacpacDeploymentV1/task.json @@ -16,8 +16,8 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 171, - "Patch": 4 + "Minor": 178, + "Patch": 0 }, "demands": [ "sqlpackage" diff --git a/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json b/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json index 18aef3f950a4..d38bbdcf8400 100644 --- a/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json +++ b/Tasks/SqlAzureDacpacDeploymentV1/task.loc.json @@ -16,8 +16,8 @@ "author": "Microsoft Corporation", "version": { "Major": 1, - "Minor": 171, - "Patch": 4 + "Minor": 178, + "Patch": 0 }, "demands": [ "sqlpackage"