Expand description

Manages a custom virtual machine image that can be used to create virtual machines.

§Example Usage

Note: For a more complete example, see the examples/image directory within the GitHub Repository.

resources:
  exampleImage:
    type: azure:compute:Image
    name: example
    properties:
      name: exampleimage
      location: ${example.location}
      resourceGroupName: ${example.name}
      sourceVirtualMachineId: ${example.id}
variables:
  example:
    fn::invoke:
      function: azure:compute:getVirtualMachine
      arguments:
        name: examplevm
        resourceGroupName: example-resources

§Import

Images can be imported using the resource id, e.g.

$ pulumi import azure:compute/image:Image example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/images/image1

Structs§

Functions§

  • Registers a new resource with the given unique name and arguments