Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored and azure-sdk committed Oct 16, 2023
1 parent 6390db3 commit d2c5ede
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 @'
Expand Down Expand Up @@ -804,7 +803,7 @@ try {
Remove-Item $templateFile.jsonFilePath
}

Write-Host "Deleting ARM deployment as it may contain secrets. Deployed resources will not be ffected."
Write-Host "Deleting ARM deployment as it may contain secrets. Deployed resources will not be affected."
$null = $deployment | Remove-AzResourceGroupDeployment
}

Expand Down

0 comments on commit d2c5ede

Please sign in to comment.