Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Support additional VM SKUs (#205)
Browse files Browse the repository at this point in the history
This commit adds other available VM SKUs such as L-Series VMs.

Closes #107
  • Loading branch information
russcam authored Jul 13, 2018
1 parent 2949a33 commit 83efebe
Show file tree
Hide file tree
Showing 4 changed files with 670 additions and 70 deletions.
114 changes: 80 additions & 34 deletions build/allowedValues.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,46 +35,50 @@
["Standard_A5", 4, "Standard", false],
["Standard_A6", 8, "Standard", false],
["Standard_A7", 16, "Standard", false],
["Standard_A8", 32, "Standard", false],
["Standard_A9", 64, "Standard", false],
["Standard_A10", 32, "Standard", false],
["Standard_A11", 64, "Standard", false],

["Standard_D1", 2, "Standard", false],
["Standard_D2", 4, "Standard", false],
["Standard_D3", 8, "Standard", false],
["Standard_D4", 16, "Standard", false],
["Standard_D11", 4, "Standard", false],
["Standard_D12", 8, "Standard", false],
["Standard_D13", 16, "Standard", false],
["Standard_D14", 32, "Standard", false],
["Standard_D1", 4, "Standard", false],
["Standard_D2", 8, "Standard", false],
["Standard_D3", 16, "Standard", false],
["Standard_D4", 32, "Standard", false],
["Standard_D11", 8, "Standard", false],
["Standard_D12", 16, "Standard", false],
["Standard_D13", 32, "Standard", false],
["Standard_D14", 64, "Standard", false],

["Standard_D1_v2", 2, "Standard", false],
["Standard_D2_v2", 4, "Standard", false],
["Standard_D3_v2", 8, "Standard", false],
["Standard_D4_v2", 16, "Standard", false],
["Standard_D5_v2", 32, "Standard", false],
["Standard_D11_v2", 4, "Standard", false],
["Standard_D12_v2", 8, "Standard", false],
["Standard_D13_v2", 16, "Standard", false],
["Standard_D14_v2", 32, "Standard", false],
["Standard_D15_v2", 40, "Standard", false],

["Standard_DS1", 2, "Premium", false],
["Standard_DS2", 4, "Premium", false],
["Standard_DS3", 8, "Premium", false],
["Standard_DS4", 16, "Premium", false],
["Standard_DS11", 4, "Premium", false],
["Standard_DS12", 8, "Premium", false],
["Standard_DS13", 16, "Premium", false],
["Standard_DS14", 32, "Premium", false],
["Standard_D11_v2", 8, "Standard", false],
["Standard_D12_v2", 16, "Standard", false],
["Standard_D13_v2", 32, "Standard", false],
["Standard_D14_v2", 64, "Standard", false],
["Standard_D15_v2", 64, "Standard", false],

["Standard_DS1", 4, "Premium", false],
["Standard_DS2", 8, "Premium", false],
["Standard_DS3", 16, "Premium", false],
["Standard_DS4", 32, "Premium", false],
["Standard_DS11", 8, "Premium", false],
["Standard_DS12", 16, "Premium", false],
["Standard_DS13", 32, "Premium", false],
["Standard_DS14", 64, "Premium", false],

["Standard_DS1_v2", 2, "Premium", true],
["Standard_DS2_v2", 4, "Premium", true],
["Standard_DS3_v2", 8, "Premium", true],
["Standard_DS4_v2", 16, "Premium", false],
["Standard_DS5_v2", 32, "Premium", false],
["Standard_DS11_v2", 4, "Premium", true],
["Standard_DS12_v2", 8, "Premium", true],
["Standard_DS13_v2", 16, "Premium", false],
["Standard_DS14_v2", 32, "Premium", false],
["Standard_DS15_v2", 40, "Premium", false],
["Standard_DS11_v2", 8, "Premium", true],
["Standard_DS12_v2", 16, "Premium", true],
["Standard_DS13_v2", 32, "Premium", false],
["Standard_DS14_v2", 64, "Premium", false],
["Standard_DS15_v2", 64, "Premium", false],

["Standard_D2s_v3", 4, "Premium", false],
["Standard_D4s_v3", 8, "Premium", false],
Expand All @@ -83,6 +87,22 @@
["Standard_D32s_v3", 32, "Premium", false],
["Standard_D64s_v3", 32, "Premium", false],

["Standard_E2_v3", 4, "Standard", false],
["Standard_E4_v3", 8, "Standard", false],
["Standard_E8_v3", 16, "Standard", false],
["Standard_E16_v3", 32, "Standard", false],
["Standard_E32_v3", 32, "Standard", false],
["Standard_E64_v3", 32, "Standard", false],
["Standard_E64i_v3", 32, "Standard", false],

["Standard_E2s_v3", 4, "Premium", false],
["Standard_E4s_v3", 8, "Premium", false],
["Standard_E8s_v3", 16, "Premium", false],
["Standard_E16s_v3", 32, "Premium", false],
["Standard_E32s_v3", 32, "Premium", false],
["Standard_E64s_v3", 32, "Premium", false],
["Standard_E64is_v3", 32, "Premium", false],

["Standard_F1", 2, "Standard", false],
["Standard_F2", 4, "Standard", false],
["Standard_F4", 8, "Standard", false],
Expand All @@ -93,13 +113,39 @@
["Standard_F2s", 4, "Premium", false],
["Standard_F4s", 8, "Premium", false],
["Standard_F8s", 16, "Premium", false],
["Standard_F16s", 32, "Premium", false]
],
"ignoredVmsBecauseWeHaveNo32DisksResource" : [
"D14", "D5_v2", "D14_v2", "DS14", "DS5_v2", "DS14_v2"
],
"ignoredVmsBecauseWeHaveNo40DisksResource" : [
"D15_v2", "DS15_v2"
["Standard_F16s", 32, "Premium", false],

["Standard_G1", 8, "Standard", false],
["Standard_G2", 16, "Standard", false],
["Standard_G3", 32, "Standard", false],
["Standard_G4", 64, "Standard", false],
["Standard_G5", 64, "Standard", false],

["Standard_GS1", 8, "Premium", false],
["Standard_GS2", 16, "Premium", false],
["Standard_GS3", 32, "Premium", false],
["Standard_GS4", 64, "Premium", false],
["Standard_GS5", 64, "Premium", false],

["Standard_L4s", 16, "Premium", false],
["Standard_L8s", 32, "Premium", false],
["Standard_L16s", 64, "Premium", false],
["Standard_L32s", 64, "Premium", false],

["Standard_M8ms", 8, "Premium", false],
["Standard_M16ms", 16, "Premium", false],
["Standard_M32ts", 32, "Premium", false],
["Standard_M32ls", 32, "Premium", false],
["Standard_M32ms", 32, "Premium", false],
["Standard_M64s", 64, "Premium", false],
["Standard_M64ls", 64, "Premium", false],
["Standard_M64ms", 64, "Premium", false],
["Standard_M128s", 64, "Premium", false],
["Standard_M128ms", 64, "Premium", false],
["Standard_M64", 64, "Premium", false],
["Standard_M64m", 64, "Premium", false],
["Standard_M128", 64, "Premium", false],
["Standard_M128m", 64, "Premium", false]
],
"ignoredKibanaVmsBecauseNotEnoughRam" : [
"Standard_A0", "Standard_A1"
Expand Down
2 changes: 2 additions & 0 deletions build/tasks/patch-values.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ gulp.task("patch", function(cb) {
userJobFunctionsControl.constraints.allowedValues = userJobTitles;
userJobFunctionsControl.defaultValue = userJobTitles[0].label;

ui.parameters.outputs.vmDataDiskCount = _(allowedValues.vmSizes).map((vm) => vm[1]).max();

jsonfile.writeFile(uiTemplate, ui, function (err) {
cb();
});
Expand Down
Loading

0 comments on commit 83efebe

Please sign in to comment.