WinBoss
WinBoss

Reputation: 923

Azure. How to deploy VM from managed image with ARM Template

I have an managed image of VM, as described here. I need to deploy some VMs from that image with Managed Disk as OS disk. How can I do that with ARM Templates?

Upvotes: 3

Views: 2830

Answers (1)

4c74356b41
4c74356b41

Reputation: 72151

Just take a regular VM arm template and replace storageProfile with this:

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

Upvotes: 3

Related Questions