Skip to content

Commit 7bcd368

Browse files
committed
Overwrite the 'Clean-ResourceGroup' function
1 parent ca92d78 commit 7bcd368

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/ComputeTestCommon.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ function Get-ComputTestLocation
9898
return $env:AZURE_COMPUTE_TEST_LOCATION;
9999
}
100100

101+
<#
102+
.SYNOPSIS
103+
Cleans the created resource groups
104+
#>
105+
function Clean-ResourceGroup($rgname)
106+
{
107+
Remove-AzureResourceGroup -Name $rgname -Force;
108+
}
101109

102110
######################
103111
#

0 commit comments

Comments
 (0)