Skip to content

Commit 2092058

Browse files
committed
update batch deployment name
1 parent de4097e commit 2092058

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

workload/arm/brownfield/deployNewSessionHosts.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "14660889037149156946"
8+
"templateHash": "2268327073182408167"
99
}
1010
},
1111
"parameters": {
@@ -2327,7 +2327,7 @@
23272327
},
23282328
"type": "Microsoft.Resources/deployments",
23292329
"apiVersion": "2022-09-01",
2330-
"name": "[format('SH-Batch-{0}-{1}', sub(range(1, variables('varSessionHostBatchCount'))[copyIndex()], 1), parameters('time'))]",
2330+
"name": "[format('SH-Batch-{0}-{1}', range(1, variables('varSessionHostBatchCount'))[copyIndex()], parameters('time'))]",
23312331
"location": "[deployment().location]",
23322332
"properties": {
23332333
"expressionEvaluationOptions": {

workload/arm/deploy-baseline.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "4562918871433087489"
8+
"templateHash": "2976440548318123692"
99
},
1010
"name": "AVD Accelerator - Baseline Deployment",
1111
"description": "AVD Accelerator - Deployment Baseline",
@@ -32730,7 +32730,7 @@
3273032730
"condition": "[parameters('avdDeploySessionHosts')]",
3273132731
"type": "Microsoft.Resources/deployments",
3273232732
"apiVersion": "2022-09-01",
32733-
"name": "[format('SH-Batch-{0}-{1}', sub(range(1, variables('varSessionHostBatchCount'))[copyIndex()], 1), parameters('time'))]",
32733+
"name": "[format('SH-Batch-{0}-{1}', range(1, variables('varSessionHostBatchCount'))[copyIndex()], parameters('time'))]",
3273432734
"location": "[deployment().location]",
3273532735
"properties": {
3273632736
"expressionEvaluationOptions": {

workload/bicep/brownfield/newSessionHosts/deployNewSessionHosts.bicep

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ module hostPool '../../../../avm/1.0.0/res/desktop-virtualization/host-pool/main
302302
@batchSize(10)
303303
module sessionHosts '../../modules/avdSessionHosts/deploy.bicep' = [
304304
for i in range(1, varSessionHostBatchCount): {
305-
name: 'SH-Batch-${i-1}-${time}'
305+
name: 'SH-Batch-${i}-${time}'
306306
params: {
307307
asgResourceId: asgResourceId
308308
availability: availability

workload/bicep/deploy-baseline.bicep

+1-1
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ module appAttachAzureFilesStorage './modules/storageAzureFiles/deploy.bicep' = i
15601560
@batchSize(3)
15611561
module sessionHosts './modules/avdSessionHosts/deploy.bicep' = [
15621562
for i in range(1, varSessionHostBatchCount): if (avdDeploySessionHosts) {
1563-
name: 'SH-Batch-${i-1}-${time}'
1563+
name: 'SH-Batch-${i}-${time}'
15641564
params: {
15651565
asgResourceId: (avdDeploySessionHosts || createAvdFslogixDeployment || varCreateAppAttachDeployment)
15661566
? '${networking.outputs.applicationSecurityGroupResourceId}'

0 commit comments

Comments
 (0)