|
|
@ -179,7 +179,7 @@ class AzureRMImage(AzureRMModuleBase):
|
|
|
|
if vm:
|
|
|
|
if vm:
|
|
|
|
if self.data_disk_sources:
|
|
|
|
if self.data_disk_sources:
|
|
|
|
self.fail('data_disk_sources is not allowed when capturing image from vm')
|
|
|
|
self.fail('data_disk_sources is not allowed when capturing image from vm')
|
|
|
|
image_instance = self.compute_models.Image(self.location, source_virtual_machine=self.compute_models.SubResource(vm.id))
|
|
|
|
image_instance = self.compute_models.Image(self.location, source_virtual_machine=self.compute_models.SubResource(vm.id), tags=self.tags)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
if not self.os_type:
|
|
|
|
if not self.os_type:
|
|
|
|
self.fail('os_type is required to create the image')
|
|
|
|
self.fail('os_type is required to create the image')
|
|
|
|