Skip to content

Commit

Permalink
remove Set-ResourceGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Sep 11, 2017
1 parent 3f78229 commit 1ea0d9d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ function New-AzVm {
}
}

function Set-ResourceGroup {
param(
[parameter(Mandatory = $true)][string]$Name,
[parameter(Mandatory = $true)][string]$Location
)

$resourceGroup = Get-AzureRmResourceGroup `
| Where-Object { $_.ResourceGroupName -eq $Name } `
| Select-Object -First 1 -Wait;
if ($resourceGroup) {
$resourceGroup;
} else {
New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location
}
}

class Location {
[int] $Priority;
[string] $Value;
Expand Down

0 comments on commit 1ea0d9d

Please sign in to comment.