Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 2053 (Azure#21558)
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 49f51c0 commit cbb395e
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 cbb395e

Please sign in to comment.