Terraform creating VM from managed disk image made in Packer

前端 未结 2 1840
遇见更好的自我
遇见更好的自我 2021-01-22 15:48

I have created a custom VM image using Packer, and now I am trying to create a new VM based on this image using Terraform, but I am confused on how I need to set up my .TF file

2条回答
  •  伪装坚强ぢ
    2021-01-22 16:10

    I have added the below code in the .TF file and it's working fine. Thank you for your help!

    storage_image_reference {
        id = "/subscriptions/33efe2dc-e7a0-4fb8-827d-8be939879420/resourceGroups/packerRG/providers/Microsoft.Compute/images/myPackerImage"
    }
    

提交回复
热议问题