Skip to content

Commit

Permalink
Add set firewall flag to live test resource cleanup (#8622)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored Jul 15, 2024
1 parent 4eeacd8 commit db97d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/live-test-resource-cleanup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function DeleteAndPurgeGroups([array]$toDelete) {
# For storage tests specifically, if they are aborted then blobs with immutability policies
# can be left around which prevent deletion.
if ($rg.Tags?.ContainsKey('ServiceDirectory') -and $rg.Tags.ServiceDirectory -like '*storage*') {
SetStorageNetworkAccessRules -ResourceGroupName $rg.ResourceGroupName -Override -CI:($null -ne $env:SYSTEM_TEAMPROJECTID)
SetStorageNetworkAccessRules -ResourceGroupName $rg.ResourceGroupName -SetFirewall -CI:($null -ne $env:SYSTEM_TEAMPROJECTID)
Remove-WormStorageAccounts -GroupPrefix $rg.ResourceGroupName -CI:($null -ne $env:SYSTEM_TEAMPROJECTID)
} else {
Write-Host ($rg | Remove-AzResourceGroup -Force -AsJob).Name
Expand Down

0 comments on commit db97d69

Please sign in to comment.