Azure/azure-devtestlab

How to create a formula in Azure DevTest Lab attaching shared image gallery image reference from ARM Template

Closed this issue · 1 comments

Hi Team,

I am able to create a formula in Azure DevTest Lab attaching shared image gallery image reference manually from the Azure portal. But when i tried to create using ARM template i did not find any help.
Thanks,

In your ARM template, specify the sharedImageId property for the lab SIG. For example,

{
  "resources": [
    {
      "apiVersion": "2018-10-15-preview",
      "type": "Microsoft.DevTestLab/labs/virtualmachines",
      "name": "[variables('vmName')]",
      "location": "[resourceGroup().location]",
      "properties": {
        "sharedImageId": "/subscriptions/<subId>/resourcegroups/<rgName>/providers/microsoft.devtestlab/labs/<labName>/sharedgalleries/<sigName>/sharedimages/<imgName>",
      }
    }
  ]
}