Skip to content

Latest commit

 

History

History
69 lines (41 loc) · 2.16 KB

shared_image_version.html.markdown

File metadata and controls

69 lines (41 loc) · 2.16 KB
subcategory layout page_title description
Compute
azurerm
Azure Resource Manager: azurerm_shared_image_version
Gets information about an existing Version of a Shared Image within a Shared Image Gallery.

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.

~> Note: You may specify latest to obtain the latest version or recent to obtain the most recently updated 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.

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


The target_region block exports the following:

  • name - The Azure Region in which this Image Version exists.

  • regional_replica_count - The number of replicas of the Image Version to be created per region.

  • storage_account_type - The storage account type for the image version.

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.