From ae9548d71d2b39df1d52eb2c01fd52a92d171ea7 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 12 Nov 2020 17:31:39 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 1202 (#1510) * 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 --- eng/common/TestResources/New-TestResources.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eng/common/TestResources/New-TestResources.ps1 b/eng/common/TestResources/New-TestResources.ps1 index 535fd634fc..7af197ef9d 100644 --- a/eng/common/TestResources/New-TestResources.ps1 +++ b/eng/common/TestResources/New-TestResources.ps1 @@ -393,6 +393,14 @@ foreach ($templateFile in $templateFiles) { $DebugPreference = "Continue" } New-AzResourceGroupDeployment -Name $BaseName -ResourceGroupName $resourceGroup.ResourceGroupName -TemplateFile $templateFile -TemplateParameterObject $templateFileParameters + } catch { + Write-Output @" +================================================== +For help debugging live test provisioning issues, +see http://aka.ms/azsdk/engsys/live-test-help, +================================================== +"@ + throw } finally { $DebugPreference = $lastDebugPreference }