» Data Source: azurerm_shared_image_version

Use this data source to access information about an existing Version of a Shared Image within a Shared Image Gallery.

» Example Usage

data "azurerm_shared_image_version" "example" {
  name                = "1.0.0"
  image_name          = "my-image"
  gallery_name        = "my-image-gallery"
  resource_group_name = "example-resources"
}

» Argument Reference

The following arguments are supported:

  • name - The name of the Image Version.
  • image_name - The name of the Shared Image in which this Version exists.

  • gallery_name - The name of the Shared Image in which the Shared Image exists.

  • resource_group_name - The name of the Resource Group in which the Shared Image Gallery exists.

» Attributes Reference

The following attributes are exported:

  • id - The Resource ID of the Shared Image.

  • exclude_from_latest - Is this Image Version excluded from the latest filter?

  • location - The supported Azure location where the Shared Image Gallery exists.

  • managed_image_id - The ID of the Managed Image which was the source of this Shared Image Version.

  • target_region - One or more target_region blocks as documented below.

  • os_disk_snapshot_id - The ID of the OS disk snapshot which was the source of this Shared Image Version.

  • tags - A mapping of tags assigned to the Shared Image.


The target_region block exports the following:

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Version of a Shared Image within a Shared Image Gallery.