1

I have created an image file in resource manager portal.And I tried to create multiple VMs using that created image file. But the exception occurs as follows: New-AzureRmVM : InvalidParameterConflictingProperties: The property 'imageReference' cannot be used together withproperty 'image'. I am able to create only one VM using that image file. Please let me know is there any solution.

mRhNs13
  • 479
  • 5
  • 25
  • are you sure you're using it as an image and not as a primary disk? – Michael B Feb 10 '16 at 12:53
  • Yes am using an image file only. $vm=Set-AzureRmVMOSDisk -VM $vm -Name $diskName -VhdUri $osDiskUri -CreateOption fromImage -SourceImageUri $sourceImageUri -Windows New-AzureRmVM -ResourceGroupName $resourceGroupName -Location $location -VM $vm In this $sourceImageUri is the image file am using for creating VM. – mRhNs13 Feb 10 '16 at 16:43

0 Answers0