Skip to content

Commit 0ba7a77

Browse files
author
Carlos Mestre del Pino
committed
add parameter for jumpbox VM size as well as AKS VMs
1 parent d5e4ebe commit 0ba7a77

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed

Scenarios/AKS-Secure-Baseline-PrivateCluster/Bicep/04-Network-LZ/main.bicep

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ param spokeSubnetAppGWPrefix string = '10.1.2.0/27'
2323
param spokeSubnetVMPrefix string = '10.1.3.0/24'
2424
param spokeSubnetPLinkervicePrefix string = '10.1.4.0/24'
2525
param remotePeeringName string = 'spoke-hub-peering'
26+
param vmSize string = 'Standard_DS2_v2'
2627

2728
var privateDNSZoneAKSSuffixes = {
2829
AzureCloud: '.azmk8s.io'
@@ -350,7 +351,7 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.5.0' = {
350351
}
351352
}
352353
osType: 'Linux'
353-
vmSize: 'Standard_DS2_v2'
354+
vmSize: vmSize
354355
zone: 0
355356
// Non-required parameters
356357
disablePasswordAuthentication: false

Scenarios/AKS-Secure-Baseline-PrivateCluster/Bicep/All-in-One-Bicep/main.bicep

+4-2
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ param azureBastionSubnetName string = 'AzureBastionSubnet'
251251
param azureBastionSubnetAddressPrefix string = '10.0.2.0/27'
252252
param vmsubnetSubnetName string = 'vmsubnet'
253253
param vmsubnetSubnetAddressPrefix string = '10.0.3.0/24'
254+
param linuxVirtualMachineVMSize string = 'Standard_DS2_v2'
254255

255256
/////////////////
256257
// 05-AKS-Supporting
@@ -299,7 +300,7 @@ param aksadminaccessprincipalId string
299300
param kubernetesVersion string = '1.30'
300301
param networkPlugin string = 'azure'
301302
param aksClusterName string = 'aksCluster'
302-
param vmSize string = 'Standard_D4d_v5'
303+
param aksVMSize string = 'Standard_D4d_v5'
303304

304305
//////////////////////////////////
305306
//////////////////////////////////
@@ -367,6 +368,7 @@ module networkSpoke '../04-Network-LZ/main.bicep' = {
367368
spokeSubnetVMPrefix:spokeSubnetVMPrefix
368369
spokeSubnetPLinkervicePrefix: spokeSubnetPLinkervicePrefix
369370
remotePeeringName: remotePeeringName
371+
vmSize: linuxVirtualMachineVMSize
370372

371373
}
372374
dependsOn: deployHub ? [networkHub] : []
@@ -412,6 +414,6 @@ module aksCluster '../06-AKS-Cluster/main.bicep' = {
412414
networkPlugin: networkPlugin
413415
acrName: aksSupporting.outputs.acrName
414416
aksClusterName: aksClusterName
415-
vmSize: vmSize
417+
vmSize: aksVMSize
416418
}
417419
}

Scenarios/AKS-Secure-Baseline-PrivateCluster/Bicep/All-in-One-Bicep/main.json

+16-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.30.23.60470",
8-
"templateHash": "3419662636992204656"
8+
"templateHash": "2060098085920409973"
99
}
1010
},
1111
"parameters": {
@@ -365,6 +365,10 @@
365365
"type": "string",
366366
"defaultValue": "10.0.3.0/24"
367367
},
368+
"linuxVirtualMachineVMSize": {
369+
"type": "string",
370+
"defaultValue": "Standard_DS2_v2"
371+
},
368372
"subnetName": {
369373
"type": "string",
370374
"defaultValue": "servicespe"
@@ -438,7 +442,7 @@
438442
"type": "string",
439443
"defaultValue": "aksCluster"
440444
},
441-
"vmSize": {
445+
"aksVMSize": {
442446
"type": "string",
443447
"defaultValue": "Standard_D4d_v5"
444448
}
@@ -7749,6 +7753,9 @@
77497753
},
77507754
"remotePeeringName": {
77517755
"value": "[parameters('remotePeeringName')]"
7756+
},
7757+
"vmSize": {
7758+
"value": "[parameters('linuxVirtualMachineVMSize')]"
77527759
}
77537760
},
77547761
"template": {
@@ -7758,7 +7765,7 @@
77587765
"_generator": {
77597766
"name": "bicep",
77607767
"version": "0.30.23.60470",
7761-
"templateHash": "9558533891196009747"
7768+
"templateHash": "7704816282859867531"
77627769
}
77637770
},
77647771
"parameters": {
@@ -7836,6 +7843,10 @@
78367843
"remotePeeringName": {
78377844
"type": "string",
78387845
"defaultValue": "spoke-hub-peering"
7846+
},
7847+
"vmSize": {
7848+
"type": "string",
7849+
"defaultValue": "Standard_DS2_v2"
78397850
}
78407851
},
78417852
"variables": {
@@ -22653,7 +22664,7 @@
2265322664
"value": "Linux"
2265422665
},
2265522666
"vmSize": {
22656-
"value": "Standard_DS2_v2"
22667+
"value": "[parameters('vmSize')]"
2265722668
},
2265822669
"zone": {
2265922670
"value": 0
@@ -37936,7 +37947,7 @@
3793637947
"value": "[parameters('aksClusterName')]"
3793737948
},
3793837949
"vmSize": {
37939-
"value": "[parameters('vmSize')]"
37950+
"value": "[parameters('aksVMSize')]"
3794037951
}
3794137952
},
3794237953
"template": {

Scenarios/AKS-Secure-Baseline-PrivateCluster/Bicep/All-in-One-Bicep/main.portal.ui.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@
606606
"visible": true
607607
},
608608
{
609-
"name": "vmSize",
609+
"name": "aksVMSize",
610610
"type": "Microsoft.Common.TextBox",
611611
"label": "AKS VM Size",
612612
"subLabel": "",
@@ -621,6 +621,22 @@
621621
"infoMessages": [],
622622
"visible": true
623623
},
624+
{
625+
"name": "linuxVirtualMachineVMSize",
626+
"type": "Microsoft.Common.TextBox",
627+
"label": "Linux Jumpbox VM Size",
628+
"subLabel": "",
629+
"defaultValue": "Standard_DS2_v2",
630+
"toolTip": "VM size availability varies by region",
631+
"constraints": {
632+
"required": true,
633+
"regex": "",
634+
"validationMessage": "",
635+
"validations": []
636+
},
637+
"infoMessages": [],
638+
"visible": true
639+
},
624640
{
625641
"name": "aksSubnetName",
626642
"type": "Microsoft.Common.TextBox",

0 commit comments

Comments
 (0)