Skip to content

Commit 54a632c

Browse files
committed
Removing the version check for New-AzureRmPlan cmdlet
1 parent 65b9aab commit 54a632c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

ServiceAdmin/AzureStack.ServiceAdmin.psm1

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,7 @@ function New-AzSTenantOfferAndQuotas
4444
New-AzureRmResourceGroup -Name $Name -Location $Location -ErrorAction Stop
4545

4646
Write-Verbose "Creating plan..." -Verbose
47-
if((Get-Module AzureStack).Version -ge [System.Version] "1.2.9")
48-
{
49-
$plan = New-AzureRMPlan -Name $Name -DisplayName $Name -ArmLocation $Location -ResourceGroup $Name -QuotaIds $Quotas
50-
}
51-
else {
52-
$plan = New-AzureRMPlan -Name $Name -DisplayName $Name -ArmLocation $Location -ResourceGroup $Name -SubscriptionId $subscription -QuotaIds $Quotas
53-
}
47+
$plan = New-AzureRMPlan -Name $Name -DisplayName $Name -ArmLocation $Location -ResourceGroup $Name -QuotaIds $Quotas
5448

5549
Write-Verbose "Creating public offer..." -Verbose
5650
$offer = New-AzureRMOffer -Name $Name -DisplayName $Name -State Public -BasePlanIds @($plan.Id) -ArmLocation $Location -ResourceGroup $Name

0 commit comments

Comments
 (0)