Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 VM 的托管映像,如此处所述。我需要使用托管磁盘作为操作系统磁盘从该映像部署一些虚拟机。如何使用 ARM 模板做到这一点?
只需使用常规的 VM arm 模板并替换storageProfile为:
storageProfile
"storageProfile": { "imageReference": { "id": "[resourceId('Microsoft.Compute/images', 'imageName')]" }, "osDisk": { "createOption": "FromImage" } },