Skip to content

Support for azurerm_shared_image_version creation from different shared image version source #28962

Open
@philbal611

Description

@philbal611

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

The Azure API supports creation of a shared image version from the ID reference of a different shared image version. It would be helpful to allow this functionality within Terraform.

New or Affected Resource(s)/Data Source(s)

azurerm_shared_image_version

Potential Terraform Configuration

resource "azurerm_shared_image_version" "example" {
  name                    = "0.0.1"
  gallery_name            = data.azurerm_shared_image.existing.gallery_name
  image_name              = data.azurerm_shared_image.existing.name
  resource_group_name     = data.azurerm_shared_image.existing.resource_group_name
  location                = data.azurerm_shared_image.existing.location
  shared_image_version_id = data.azurerm_shared_image_version.source.id

  target_region {
    name                   = data.azurerm_shared_image.existing.location
    regional_replica_count = 5
    storage_account_type   = "Standard_LRS"
  }
}

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions