File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,13 @@ try {
477477 & $preDeploymentScript - ResourceGroupName $ResourceGroupName @PSBoundParameters
478478 }
479479
480- Log " Deploying template '$ ( $templateFile.originalFilePath ) ' to resource group '$ ( $resourceGroup.ResourceGroupName ) '"
480+ $msg = if ($templateFile.jsonFilePath -ne $templateFile.originalFilePath ) {
481+ " Deployment template $ ( $templateFile.jsonFilePath ) from $ ( $templateFile.originalFilePath ) to resource group $ ( $resourceGroup.ResourceGroupName ) "
482+ } else {
483+ " Deployment template $ ( $templateFile.jsonFilePath ) to resource group $ ( $resourceGroup.ResourceGroupName ) "
484+ }
485+ Log $msg
486+
481487 $deployment = Retry {
482488 $lastDebugPreference = $DebugPreference
483489 try {
@@ -538,7 +544,7 @@ try {
538544 Write-Host ' File option is supported only on Windows'
539545 }
540546
541- $outputFile = " $ ( $templateFile.jsonFilePath ) .env"
547+ $outputFile = " $ ( $templateFile.originalFilePath ) .env"
542548
543549 $environmentText = $deploymentOutputs | ConvertTo-Json ;
544550 $bytes = ([System.Text.Encoding ]::UTF8).GetBytes($environmentText )
You can’t perform that action at this time.
0 commit comments