question

PapiReddyPakala-4075 avatar image
0 Votes"
PapiReddyPakala-4075 asked srbhatta-msft commented

Need help on azure arm template copy and attach managed disk issue

"status": "Failed",
"error": {
"code": "BadRequest",
"target": "vm.properties.storageProfile.pri-DataDisk",
"message": "Could not find member 'pri-DataDisk' on object of type 'StorageProfile'. Path 'properties.storageProfile.pri-DataDisk', line 1, position 820."
}
}



"storageProfile": {
"osDisk": {
"osType": "linux",
"caching": "none",
"createOption": "Attach",
"managedDisk": {
"id": "[resourceId('Microsoft.Compute/disks', concat(variables('kodPocMachineName'),'pri-OsDisk'))]"
}
},
"copy": [
{
"name": "pri-DataDisk",
"count": 4,
"input": {
"lun": "[copyIndex('pri-DataDisk')]",
"createOption": "Attach"
},
"managedDisk": {
"id": "[resourceId('Microsoft.Compute/disks', concat(variables('PocMachineName'),'pri-DataDisk',copyIndex('pri-DataDisk')))]"
}

               }
               ]
azure-dtl-arm-enviorments
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @PapiReddyPakala-4075 ,
Thanks for posting your query on Microsoft QnA. Sorry for the delay in response. Could you please share the entire ARM template with us over an attachment? Thanks.

0 Votes 0 ·

Thanks for the response this issue is resolved, Post updating the managedDisk info correctly it is working

0 Votes 0 ·
srbhatta-msft avatar image srbhatta-msft PapiReddyPakala-4075 ·

Thanks for the update. Glad to hear that it is now working.

0 Votes 0 ·

0 Answers