Sync eng/common directory with azure-sdk-tools for PR 1943 (#2810)
* Bug fix: Storing .env file for bicep file at service dir * Styling Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
This commit is contained in:
parent
2ef96b0b72
commit
0758a43000
@ -477,7 +477,13 @@ try {
|
||||
&$preDeploymentScript -ResourceGroupName $ResourceGroupName @PSBoundParameters
|
||||
}
|
||||
|
||||
Log "Deploying template '$($templateFile.originalFilePath)' to resource group '$($resourceGroup.ResourceGroupName)'"
|
||||
$msg = if ($templateFile.jsonFilePath -ne $templateFile.originalFilePath) {
|
||||
"Deployment template $($templateFile.jsonFilePath) from $($templateFile.originalFilePath) to resource group $($resourceGroup.ResourceGroupName)"
|
||||
} else {
|
||||
"Deployment template $($templateFile.jsonFilePath) to resource group $($resourceGroup.ResourceGroupName)"
|
||||
}
|
||||
Log $msg
|
||||
|
||||
$deployment = Retry {
|
||||
$lastDebugPreference = $DebugPreference
|
||||
try {
|
||||
@ -538,7 +544,7 @@ try {
|
||||
Write-Host 'File option is supported only on Windows'
|
||||
}
|
||||
|
||||
$outputFile = "$($templateFile.jsonFilePath).env"
|
||||
$outputFile = "$($templateFile.originalFilePath).env"
|
||||
|
||||
$environmentText = $deploymentOutputs | ConvertTo-Json;
|
||||
$bytes = ([System.Text.Encoding]::UTF8).GetBytes($environmentText)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user