Skip to content

Commit 0cfa6f7

Browse files
authored
Add Azure marketplace VM choices (#1358)
Add Azure VM configurations for the marketplace option
1 parent 13a5a71 commit 0cfa6f7

File tree

1 file changed

+56
-1
lines changed
  • portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources

1 file changed

+56
-1
lines changed

portal-ui/src/screens/Console/Tenants/AddTenant/Steps/TenantResources/utils.tsx

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ export const AWSStorageTypes: Opts[] = [
4545
{ label: "HDD", value: "hdd" },
4646
];
4747

48+
export const AzureStorageTypes: Opts[] = [
49+
{ label: "Standard_L32s_v2", value: "Standard_L32s_v2" },
50+
{ label: "Standard_L48s_v2", value: "Standard_L48s_v2" },
51+
{ label: "Standard_L64s_v2", value: "Standard_L64s_v2" },
52+
];
53+
4854
export const resourcesConfigurations = {
4955
"mp-mode-aws": IMkEnvs.aws,
5056
"mp-mode-azure": IMkEnvs.azure,
@@ -70,14 +76,63 @@ export const AWSConfigurations: IntegrationConfiguration[] = [
7076
},
7177
];
7278

79+
export const AzureConfigurations: IntegrationConfiguration[] = [
80+
{
81+
typeSelection: "Standard_L8s_v2",
82+
storageClass: "local-nvme",
83+
CPU: 8,
84+
memory: 64,
85+
driveSize: { driveSize: "1787", sizeUnit: "Gi" },
86+
drivesPerServer: 1,
87+
},
88+
{
89+
typeSelection: "Standard_L16s_v2",
90+
storageClass: "local-nvme",
91+
CPU: 16,
92+
memory: 128,
93+
driveSize: { driveSize: "1787", sizeUnit: "Gi" },
94+
drivesPerServer: 2,
95+
},
96+
{
97+
typeSelection: "Standard_L32s_v2",
98+
storageClass: "local-nvme",
99+
CPU: 32,
100+
memory: 256,
101+
driveSize: { driveSize: "1787", sizeUnit: "Gi" },
102+
drivesPerServer: 4,
103+
},
104+
{
105+
typeSelection: "Standard_L48s_v2",
106+
storageClass: "local-nvme",
107+
CPU: 48,
108+
memory: 384,
109+
driveSize: { driveSize: "1787", sizeUnit: "Gi" },
110+
drivesPerServer: 6,
111+
},
112+
{
113+
typeSelection: "Standard_L64s_v2",
114+
storageClass: "local-nvme",
115+
CPU: 64,
116+
memory: 512,
117+
driveSize: { driveSize: "1787", sizeUnit: "Gi" },
118+
drivesPerServer: 8,
119+
},
120+
];
121+
122+
73123
export const mkPanelConfigurations = {
74124
[IMkEnvs.aws]: {
75125
variantSelectorLabel: "Storage Type",
76126
variantSelectorValues: AWSStorageTypes,
77127
configurations: AWSConfigurations,
78128
sizingComponent: <TenantSizeMK formToRender={IMkEnvs.aws} />,
79129
},
80-
[IMkEnvs.azure]: {},
130+
[IMkEnvs.azure]: {
131+
variantSelectorLabel: "VM Size",
132+
variantSelectorValues: AzureStorageTypes,
133+
configurations: AzureConfigurations,
134+
sizingComponent: <TenantSizeMK formToRender={IMkEnvs.azure} />,
135+
},
81136
[IMkEnvs.gcs]: {},
82137
[IMkEnvs.default]: {},
83138
[IMkEnvs.undefined]: {},

0 commit comments

Comments
 (0)