fix typo (add missing ')]' )

This commit is contained in:
Vijay Rajah 2020-04-06 11:40:05 +05:30
parent 0589f57d4d
commit 1314d69b51
3 changed files with 3 additions and 3 deletions

View File

@ -147,7 +147,7 @@
"createOption": "Empty", "createOption": "Empty",
"diskSizeGB": 32, "diskSizeGB": 32,
"lun": 0, "lun": 0,
"name": "[concat(parameters('dataDiskName'),'-1'", "name": "[concat(parameters('dataDiskName'),'-1')]",
"vhd": { "vhd": {
"uri": "[concat(parameters('storageAccountBlobEndpoint'),variables('vmStorageAccountContainerName'),parameters('dataDiskName'), '-1','.vhd')]" "uri": "[concat(parameters('storageAccountBlobEndpoint'),variables('vmStorageAccountContainerName'),parameters('dataDiskName'), '-1','.vhd')]"
} }

View File

@ -150,7 +150,7 @@
"managedDisk": { "managedDisk": {
"storageAccountType": "Standard_LRS" "storageAccountType": "Standard_LRS"
}, },
"name": "[concat(parameters('dataDiskName'),'-1'" "name": "[concat(parameters('dataDiskName'),'-1')]"
} }
], ],
"imageReference": { "imageReference": {

View File

@ -244,7 +244,7 @@ func (s *TemplateBuilder) SetAdditionalDisks(diskSizeGB []int32, dataDiskname st
dataDisks[i].DiskSizeGB = to.Int32Ptr(additionalSize) dataDisks[i].DiskSizeGB = to.Int32Ptr(additionalSize)
dataDisks[i].Lun = to.IntPtr(i) dataDisks[i].Lun = to.IntPtr(i)
// dataDisks[i].Name = to.StringPtr(fmt.Sprintf("%s-%d", dataDiskname, i+1)) // dataDisks[i].Name = to.StringPtr(fmt.Sprintf("%s-%d", dataDiskname, i+1))
dataDisks[i].Name = to.StringPtr(fmt.Sprintf("[concat(parameters('dataDiskName'),'-%d'", i+1)) dataDisks[i].Name = to.StringPtr(fmt.Sprintf("[concat(parameters('dataDiskName'),'-%d')]", i+1))
dataDisks[i].CreateOption = "Empty" dataDisks[i].CreateOption = "Empty"
dataDisks[i].Caching = cachingType dataDisks[i].Caching = cachingType
if isManaged { if isManaged {