Skip to content

azurermGalleryApplication

Manages a Gallery Application.

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.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-rg",
  }
);
const azurermSharedImageGalleryExample =
  new azurerm.sharedImageGallery.SharedImageGallery(this, "example_1", {
    location: azurermResourceGroupExample.location,
    name: "example-gallery",
    resource_group_name: azurermResourceGroupExample.name,
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermSharedImageGalleryExample.overrideLogicalId("example");
const azurermGalleryApplicationExample =
  new azurerm.galleryApplication.GalleryApplication(this, "example_2", {
    gallery_id: azurermSharedImageGalleryExample.id,
    location: azurermResourceGroupExample.location,
    name: "example-app",
    supported_os_type: "Linux",
  });
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermGalleryApplicationExample.overrideLogicalId("example");

Arguments Reference

The following arguments are supported:

  • name - (Required) The name of the Gallery Application. Changing this forces a new resource to be created.

  • galleryId - (Required) The ID of the Shared Image Gallery. Changing this forces a new resource to be created.

  • location - (Required) The Azure Region where the Gallery Application exists. Changing this forces a new resource to be created.

  • supportedOsType - (Required) The type of the Operating System supported for the Gallery Application. Possible values are linux and windows. Changing this forces a new resource to be created.


  • description - (Optional) A description of the Gallery Application.

  • endOfLifeDate - (Optional) The end of life date in RFC3339 format of the Gallery Application.

  • eula - (Optional) The End User Licence Agreement of the Gallery Application.

  • privacyStatementUri - (Optional) The URI containing the Privacy Statement associated with the Gallery Application.

  • releaseNoteUri - (Optional) The URI containing the Release Notes associated with the Gallery Application.

  • tags - (Optional) A mapping of tags to assign to the Gallery Application.

Attributes Reference

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

  • id - The ID of the Gallery Application.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the Gallery Application.
  • read - (Defaults to 5 minutes) Used when retrieving the Gallery Application.
  • update - (Defaults to 30 minutes) Used when updating the Gallery Application.
  • delete - (Defaults to 30 minutes) Used when deleting the Gallery Application.

Import

Gallery Applications can be imported using the resourceId, e.g.

terraform import azurerm_gallery_application.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1