Skip to content

Commit 1ea0d9d

Browse files
remove Set-ResourceGroup
1 parent 3f78229 commit 1ea0d9d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,6 @@ function New-AzVm {
4444
}
4545
}
4646

47-
function Set-ResourceGroup {
48-
param(
49-
[parameter(Mandatory = $true)][string]$Name,
50-
[parameter(Mandatory = $true)][string]$Location
51-
)
52-
53-
$resourceGroup = Get-AzureRmResourceGroup `
54-
| Where-Object { $_.ResourceGroupName -eq $Name } `
55-
| Select-Object -First 1 -Wait;
56-
if ($resourceGroup) {
57-
$resourceGroup;
58-
} else {
59-
New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location
60-
}
61-
}
62-
6347
class Location {
6448
[int] $Priority;
6549
[string] $Value;

0 commit comments

Comments
 (0)