Sync eng/common directory with azure-sdk-tools for PR 7113 (#1634)
* Remove ARM deployment after deploy * Update eng/common/TestResources/New-TestResources.ps1 Co-authored-by: Heath Stewart <heaths@outlook.com> * Apply suggestions from code review --------- Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com> Co-authored-by: Heath Stewart <heaths@outlook.com>
This commit is contained in:
Родитель
a64e2f4c55
Коммит
2018714c93
|
@ -771,7 +771,6 @@ try {
|
|||
-TemplateParameterObject $templateFileParameters `
|
||||
-Force:$Force
|
||||
}
|
||||
|
||||
if ($deployment.ProvisioningState -ne 'Succeeded') {
|
||||
Write-Host "Deployment '$($deployment.DeploymentName)' has state '$($deployment.ProvisioningState)' with CorrelationId '$($deployment.CorrelationId)'. Exiting..."
|
||||
Write-Host @'
|
||||
|
@ -803,6 +802,9 @@ try {
|
|||
Write-Verbose "Removing compiled bicep file $($templateFile.jsonFilePath)"
|
||||
Remove-Item $templateFile.jsonFilePath
|
||||
}
|
||||
|
||||
Write-Host "Deleting ARM deployment as it may contain secrets. Deployed resources will not be affected."
|
||||
$null = $deployment | Remove-AzResourceGroupDeployment
|
||||
}
|
||||
|
||||
} finally {
|
||||
|
|
Загрузка…
Ссылка в новой задаче