Azure上。如何使用ARM模板从托管映像部署VM

时间:2017-09-01 16:47:10

标签: azure azure-storage arm-template azure-template

我有一个VM的托管映像,如上所述here. 我需要从托管磁盘作为操作系统磁盘部署该映像中的一些虚拟机。我怎么能用ARM模板做到这一点?

1 个答案:

答案 0 :(得分:3)

只需使用常规VM arm模板并将storageProfile替换为:

"storageProfile": {
                    "imageReference": {
                        "id": "[resourceId('Microsoft.Compute/images', 'imageName')]"
                    },
                    "osDisk": {
                        "createOption": "FromImage"
                    }
                },
相关问题