Ver Fonte

add standardDCSv2Family family (#4532)

d-g-town há 2 anos atrás
pai
commit
64125305c5

+ 24 - 0
dashboard/src/components/azureUtils.ts

@@ -326,6 +326,30 @@ const AzureMachineTypeOptions: MachineTypeOption[] = [
       "westus3",
     ]),
   },
+  {
+    value: "Standard_DC1s_v2",
+    label: "Standard_DC1s_v2",
+    resources: { vCPU: 1, RAM: 4 },
+    supportedRegions: new Set<string>(["eastus", "westeurope"]),
+  },
+  {
+    value: "Standard_DC2s_v2",
+    label: "Standard_DC2s_v2",
+    resources: { vCPU: 2, RAM: 8 },
+    supportedRegions: new Set<string>(["eastus", "westeurope"]),
+  },
+  {
+    value: "Standard_DC4s_v2",
+    label: "Standard_DC4s_v2",
+    resources: { vCPU: 4, RAM: 16 },
+    supportedRegions: new Set<string>(["eastus", "westeurope"]),
+  },
+  {
+    value: "Standard_DC8_v2",
+    label: "Standard_DC8_v2",
+    resources: { vCPU: 8, RAM: 32 },
+    supportedRegions: new Set<string>(["eastus", "westeurope"]),
+  },
   {
     value: "Standard_NC4as_T4_v3",
     label: "Standard_NC4as_T4_v3",

+ 32 - 0
dashboard/src/lib/clusters/constants.ts

@@ -1198,6 +1198,38 @@ const SUPPORTED_AZURE_MACHINE_TYPES: ClientMachineType[] = [
     cpuCores: 2,
     ramMegabytes: 8192,
   },
+  {
+    name: "Standard_DC1s_v2",
+    displayName: "Standard_DC1s_v2",
+    supportedRegions: ["eastus", "westeurope"],
+    isGPU: false,
+    cpuCores: 1,
+    ramMegabytes: 4096,
+  },
+  {
+    name: "Standard_DC2s_v2",
+    displayName: "Standard_DC2s_v2",
+    supportedRegions: ["eastus", "westeurope"],
+    isGPU: false,
+    cpuCores: 2,
+    ramMegabytes: 8192,
+  },
+  {
+    name: "Standard_DC4s_v2",
+    displayName: "Standard_DC4s_v2",
+    supportedRegions: ["eastus", "westeurope"],
+    isGPU: false,
+    cpuCores: 4,
+    ramMegabytes: 16384,
+  },
+  {
+    name: "Standard_DC8_v2",
+    displayName: "Standard_DC8_v2",
+    supportedRegions: ["eastus", "westeurope"],
+    isGPU: false,
+    cpuCores: 8,
+    ramMegabytes: 32768,
+  },
   {
     name: "Standard_B4als_v2",
     displayName: "Standard_B4als_v2",

+ 4 - 0
dashboard/src/lib/clusters/types.ts

@@ -242,6 +242,10 @@ const azureMachineTypeValidator = z.enum([
   "Standard_DS1_v2",
   "Standard_DS2_v2",
   "Standard_D2ads_v5",
+  "Standard_DC1s_v2",
+  "Standard_DC2s_v2",
+  "Standard_DC4s_v2",
+  "Standard_DC8_v2",
   "Standard_B4als_v2",
   "Standard_B8als_v2",
   "Standard_B16als_v2",