Skip to content

Data Source: azurermSharedImageVersions

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

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermSharedImageVersions.DataAzurermSharedImageVersions(
  this,
  "example",
  {
    gallery_name: "my-image-gallery",
    image_name: "my-image",
    resource_group_name: "example-resources",
  }
);

Argument Reference

The following arguments are supported:

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

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

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

  • tagsFilter - A mapping of tags to filter the list of images against.

Attributes Reference

The following attributes are exported:

  • images - An images block as defined below:

A images block exports the following:

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

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

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

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

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


The targetRegion block exports the following:

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

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

  • storageAccountType - 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 Versions of a Shared Image within a Shared Image Gallery.