Merge pull request #9467 from ArseniiPetrovich/patch-1
Fix data disks URI
This commit is contained in:
commit
38eef12b83
|
@ -149,7 +149,7 @@
|
||||||
"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')]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -275,7 +275,7 @@ func (s *TemplateBuilder) SetAdditionalDisks(diskSizeGB []int32, dataDiskname st
|
||||||
dataDisks[i].ManagedDisk = profile.OsDisk.ManagedDisk
|
dataDisks[i].ManagedDisk = profile.OsDisk.ManagedDisk
|
||||||
} else {
|
} else {
|
||||||
dataDisks[i].Vhd = &compute.VirtualHardDisk{
|
dataDisks[i].Vhd = &compute.VirtualHardDisk{
|
||||||
URI: to.StringPtr(fmt.Sprintf("[concat(parameters('storageAccountBlobEndpoint'),variables('vmStorageAccountContainerName'),parameters('dataDiskName'), '-%d','.vhd')]", i+1)),
|
URI: to.StringPtr(fmt.Sprintf("[concat(parameters('storageAccountBlobEndpoint'),variables('vmStorageAccountContainerName'),'/',parameters('dataDiskName'),'-%d','.vhd')]", i+1)),
|
||||||
}
|
}
|
||||||
dataDisks[i].ManagedDisk = nil
|
dataDisks[i].ManagedDisk = nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,7 +163,7 @@
|
||||||
"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')]"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
"lun": 1,
|
"lun": 1,
|
||||||
"name": "[concat(parameters('dataDiskName'),'-2')]",
|
"name": "[concat(parameters('dataDiskName'),'-2')]",
|
||||||
"vhd": {
|
"vhd": {
|
||||||
"uri": "[concat(parameters('storageAccountBlobEndpoint'),variables('vmStorageAccountContainerName'),parameters('dataDiskName'), '-2','.vhd')]"
|
"uri": "[concat(parameters('storageAccountBlobEndpoint'),variables('vmStorageAccountContainerName'),'/',parameters('dataDiskName'),'-2','.vhd')]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue