Sync eng/common directory with azure-sdk-tools for PR 1202 (#970)

* 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>
This commit is contained in:
Azure SDK Bot 2020-11-12 17:31:23 -08:00 committed by GitHub
parent de005643ce
commit 941d33fe90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}