Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 2053 (#18501)
Browse files Browse the repository at this point in the history
* Changing inline bash for stress test resource deployment

* PR-mod

* pr-mod

* pr-mod

* pr-mod

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
  • Loading branch information
azure-sdk and ckairen authored Nov 3, 2021
1 parent 57cb538 commit 8d46ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ try {
$serviceName = if (Split-Path $ServiceDirectory) {
Split-Path -Leaf $ServiceDirectory
} else {
$ServiceDirectory
$ServiceDirectory.Trim('/')
}

$ResourceGroupName = if ($ResourceGroupName) {
Expand Down Expand Up @@ -600,7 +600,7 @@ try {
$outputFile = "$($templateFile.originalFilePath).env"

$environmentText = $deploymentOutputs | ConvertTo-Json;
$bytes = ([System.Text.Encoding]::UTF8).GetBytes($environmentText)
$bytes = [System.Text.Encoding]::UTF8.GetBytes($environmentText)
$protectedBytes = [Security.Cryptography.ProtectedData]::Protect($bytes, $null, [Security.Cryptography.DataProtectionScope]::CurrentUser)

Set-Content $outputFile -Value $protectedBytes -AsByteStream -Force
Expand Down

0 comments on commit 8d46ea0

Please sign in to comment.