Skip to content

Commit 4dae5f5

Browse files
committed
jumpbox size visibility and allowlist
1 parent 40b870a commit 4dae5f5

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

infra/main.bicep

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ param vmAdminUsername string?
7171
//param vmAdminPassword string = newGuid()
7272
param vmAdminPassword string?
7373

74+
@allowed([
75+
'Standard_B2s'
76+
'Standard_D2s_v3'
77+
'Standard_D4s_v3'
78+
'Standard_DS2_v2'
79+
])
80+
@description('Optional. Size of the Jumpbox Virtual Machine when created. Set to custom value if enablePrivateNetworking is true. Defaults to Standard_B2s.')
81+
param vmSize string?
82+
7483
@description('Optional. Specifies the resource tags for all the resources. Tag "azd-env-name" is automatically added to all resources.')
7584
param tags object = {}
7685

@@ -207,6 +216,7 @@ module network 'modules/network.bicep' = if (enablePrivateNetworking) {
207216
logAnalyticsWorkSpaceResourceId: logAnalyticsWorkspaceResourceId
208217
vmAdminUsername: vmAdminUsername ?? 'JumpboxAdminUser'
209218
vmAdminPassword: vmAdminPassword ?? 'JumpboxAdminP@ssw0rd1234!'
219+
vmSize: vmSize ?? 'Standard_B2s'
210220
location: location
211221
tags: allTags
212222
enableTelemetry: enableTelemetry

infra/modules/network.bicep

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ param vmAdminUsername string
2222
@secure()
2323
param vmAdminPassword string
2424

25+
@description('Required. VM size for the Jumpbox VM.')
26+
param vmSize string
27+
28+
2529
// Subnet Classless Inter-Doman Routing (CIDR) Sizing Reference Table (Best Practices)
2630
// | CIDR | # of Addresses | # of /24s | Notes |
2731
// |-----------|---------------|-----------|----------------------------------------|
@@ -124,7 +128,7 @@ module network 'network/main.bicep' = {
124128
}
125129
jumpboxConfiguration: {
126130
name: 'vm-jumpbox-${resourcesName}'
127-
size: 'Standard_D2s_v3'
131+
size: vmSize
128132
username: vmAdminUsername
129133
password: vmAdminPassword
130134
subnet: {

0 commit comments

Comments
 (0)