Skip to content

Commit eb98c16

Browse files
azure-sdkbenbp
andauthored
Sync eng/common directory with azure-sdk-tools for PR 1202 (Azure#17547)
* Add debugging link on resource deployment failures to log output * Update aka link for live test help docs. Use here string and empty throw. Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
1 parent b637d40 commit eb98c16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,14 @@ foreach ($templateFile in $templateFiles) {
393393
$DebugPreference = "Continue"
394394
}
395395
New-AzResourceGroupDeployment -Name $BaseName -ResourceGroupName $resourceGroup.ResourceGroupName -TemplateFile $templateFile -TemplateParameterObject $templateFileParameters
396+
} catch {
397+
Write-Output @"
398+
==================================================
399+
For help debugging live test provisioning issues,
400+
see http://aka.ms/azsdk/engsys/live-test-help,
401+
==================================================
402+
"@
403+
throw
396404
} finally {
397405
$DebugPreference = $lastDebugPreference
398406
}

0 commit comments

Comments
 (0)