azure::virtual-machine-image

Creates a virtual machine image

Example

azure::virtual-machine-image virtual-machine-image-example
    name: "virtual-machine-image-example"
    resource-group: $(azure::resource-group resource-group-example-VM)
    virtual-machine: $(azure::virtual-machine virtual-machine-example)
end

Attributes

Attribute Description
name The name of the virtual machine image. (Required)
resource-group The resource group under which the virtual machine image would reside. (Required)
virtual-machine The virtual machine from which the image would be generated. The virtual machine needs to be in the Generalized state. (Required)
hyper-v-generation The Hyper V Generation for the virtual machine image. Defaults to V1. Valid values are V1 or V2.
tags map Tags for the virtual machine image.
enable-zone-resilience Enable or Disable zone resilience of the virtual machine image.

Outputs

Attribute Description
id The ID of the virtual machine image.