Skip to content

Commit b763043

Browse files
authored
Merge pull request #293 from BrianLPeterson/user/bpet/newquotafix2
Adding new Vm Scaleset compute quota properties.
2 parents 15e8f32 + 96449cf commit b763043

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CanaryValidator/Canary.Utilities.psm1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ function NewComputeQuota
483483
$memoryLimitMB = 102400
484484
$coresLimit = 100
485485
$ApiVersion = "2015-12-01-preview"
486+
$availabilitySetCount = 10
487+
$vmScaleSetCount = 100
486488

487489
$uri = "{0}/subscriptions/{1}/providers/Microsoft.Compute.Admin/locations/{2}/quotas/{3}?api-version={4}" -f $AdminUri, $SubscriptionId, $ArmLocation, $quotaName, $ApiVersion
488490
$RequestBody = @"
@@ -493,7 +495,9 @@ function NewComputeQuota
493495
"properties":{
494496
"virtualMachineCount":$vmCount,
495497
"memoryLimitMB":$memoryLimitMB,
496-
"coresLimit":$coresLimit
498+
"coresLimit":$coresLimit,
499+
"availabilitySetCount":$availabilitySetCount,
500+
"vmScaleSetCount":$vmScaleSetCount
497501
}
498502
}
499503
"@

0 commit comments

Comments
 (0)