Skip to content

Commit af05c90

Browse files
Refactor jumpbox VM and maintenance configuration naming conventions
1 parent 629d2eb commit af05c90

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

infra/main.bicep

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ module bastionHost 'br/public:avm/res/network/bastion-host:0.8.0' = if (enablePr
228228
// ========== VM Maintenance Configuration Mapping ========== //
229229

230230
// Jumpbox Virtual Machine
231-
var jumpboxVmName = take('vm-jumpbox-${solutionSuffix}', 15)
231+
var jumpboxVmName = take('vm-${solutionSuffix}', 15)
232232
module jumpboxVM 'br/public:avm/res/compute/virtual-machine:0.20.0' = if (enablePrivateNetworking) {
233233
name: take('avm.res.compute.virtual-machine.${jumpboxVmName}', 64)
234234
params: {
@@ -246,10 +246,10 @@ module jumpboxVM 'br/public:avm/res/compute/virtual-machine:0.20.0' = if (enable
246246
}
247247
patchMode: 'AutomaticByPlatform'
248248
bypassPlatformSafetyChecksOnUserSchedule: true
249-
maintenanceConfigurationResourceId: maintenanceConfiguration.outputs.resourceId
249+
maintenanceConfigurationResourceId: maintenanceConfiguration!.outputs.resourceId
250250
enableAutomaticUpdates: true
251251
encryptionAtHost: false
252-
proximityPlacementGroupResourceId: proximityPlacementGroup.outputs.resourceId
252+
proximityPlacementGroupResourceId: proximityPlacementGroup!.outputs.resourceId
253253
availabilityZone: enableRedundancy ? 1 : -1
254254
imageReference: {
255255
publisher: 'microsoft-dsvm'
@@ -331,7 +331,7 @@ module jumpboxVM 'br/public:avm/res/compute/virtual-machine:0.20.0' = if (enable
331331
}
332332

333333
module maintenanceConfiguration 'br/public:avm/res/maintenance/maintenance-configuration:0.3.2' = if (enablePrivateNetworking) {
334-
name: take('${jumpboxVmName}-jumpbox-maintenance-config', 64)
334+
name: take('avm.res.maintenance-configuration.${jumpboxVmName}', 64)
335335
params: {
336336
name: 'mc-${jumpboxVmName}'
337337
location: location

infra/main.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.38.33.27573",
9-
"templateHash": "12815126820516898428"
9+
"templateHash": "12020835849064853237"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -264,7 +264,7 @@
264264
},
265265
"replicaLocation": "[tryGet(variables('replicaRegionPairs'), parameters('location'))]",
266266
"bastionHostName": "[format('bas-{0}', variables('solutionSuffix'))]",
267-
"jumpboxVmName": "[take(format('vm-jumpbox-{0}', variables('solutionSuffix')), 15)]",
267+
"jumpboxVmName": "[take(format('vm-{0}', variables('solutionSuffix')), 15)]",
268268
"dataCollectionRulesResourceName": "[format('dcr-{0}', variables('solutionSuffix'))]",
269269
"proximityPlacementGroupResourceName": "[format('ppg-{0}', variables('solutionSuffix'))]",
270270
"privateDnsZones": [
@@ -13835,7 +13835,7 @@
1383513835
"condition": "[parameters('enablePrivateNetworking')]",
1383613836
"type": "Microsoft.Resources/deployments",
1383713837
"apiVersion": "2025-04-01",
13838-
"name": "[take(format('{0}-jumpbox-maintenance-config', variables('jumpboxVmName')), 64)]",
13838+
"name": "[take(format('avm.res.maintenance-configuration.{0}', variables('jumpboxVmName')), 64)]",
1383913839
"properties": {
1384013840
"expressionEvaluationOptions": {
1384113841
"scope": "inner"
@@ -40908,10 +40908,10 @@
4090840908
"dependsOn": [
4090940909
"avmContainerApp",
4091040910
"avmManagedIdentity",
40911-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4091240911
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
40913-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
40912+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4091440913
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
40914+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
4091540915
"logAnalyticsWorkspace",
4091640916
"virtualNetwork"
4091740917
]
@@ -43513,8 +43513,8 @@
4351343513
"dependsOn": [
4351443514
"avmContainerApp",
4351543515
"avmManagedIdentity",
43516-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
4351743516
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
43517+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
4351843518
"virtualNetwork"
4351943519
]
4352043520
},

0 commit comments

Comments
 (0)