Skip to content

Commit 7212e89

Browse files
committed
increased new password length, removed selection of windows agent from dacpac step
1 parent 8022032 commit 7212e89

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CI/Azure-DevOps/AZ_MainPipeline.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ stages:
281281
282282
Write-Warning 'This information is now public! Run the following Powershell Statement to change the password immediately!';
283283
284-
$PwdChngCommand = "`$NewPwd = -join ((40..95+97..126) | Get-Random -Count 30 | % {[char]`$_}); Write-Output `"New Password: `$NewPwd`"; Invoke-Sqlcmd -Query `"ALTER LOGIN [$SQLUserName] WITH PASSWORD = '`$NewPwd';`" -ServerInstance `"$FQDNAndPort`" -Username `"$SQLUserName`" -Password `"$SQLPwd`" -TrustServerCertificate;";
284+
$PwdChngCommand = "`$NewPwd = -join ((40..95+97..126) | Get-Random -Count 40 | % {[char]`$_}); Write-Output `"New Password: `$NewPwd`"; Invoke-Sqlcmd -Query `"ALTER LOGIN [$SQLUserName] WITH PASSWORD = '`$NewPwd';`" -ServerInstance `"$FQDNAndPort`" -Username `"$SQLUserName`" -Password `"$SQLPwd`" -TrustServerCertificate;";
285285
Write-Host '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' -ForegroundColor Yellow;
286286
Write-Host $PwdChngCommand
287287
Write-Host '==========================================================' -ForegroundColor Yellow;
@@ -435,9 +435,6 @@ stages:
435435
${{ format('{0}', version.name) }}:
436436
SQLVersionEdition: ${{ version.SQLVersionEdition }}
437437

438-
pool:
439-
vmImage: 'windows-latest'
440-
441438
variables:
442439
databaseAccessDetails: $[convertToJson(stageDependencies.Create_Environments.Create.outputs)]
443440

0 commit comments

Comments
 (0)