运行terraform脚本时出现错误,该脚本使用Packer创建的自定义映像创建具有托管磁盘的VM:
azurerm_virtual_machine.test: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="Id /subscriptions/e*************************b2c/resourceGroups/A*******VM/providers/Microsoft.Compute/images/myVM-image-Test is not a valid resource reference." Target="osDisk.managedDisk.id"