azurerm_shared_image_gallery

Manages a Shared Image Gallery.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_shared_image_gallery" "example" {
  name                = "example_image_gallery"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  description         = "Shared images and things."

  tags = {
    Hello = "There"
    World = "Example"
  }
}

Argument Reference

The following arguments are supported:


A sharing block supports the following:


A community_gallery block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A community_gallery block exports the following:

Timeouts

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

Import

Shared Image Galleries can be imported using the resource id, e.g.

terraform import azurerm_shared_image_gallery.gallery1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Compute/galleries/gallery1