GalleryApplicationVersionArgs

data class GalleryApplicationVersionArgs(val enableHealthCheck: Output<Boolean>? = null, val endOfLifeDate: Output<String>? = null, val excludeFromLatest: Output<Boolean>? = null, val galleryApplicationId: Output<String>? = null, val location: Output<String>? = null, val manageAction: Output<GalleryApplicationVersionManageActionArgs>? = null, val name: Output<String>? = null, val source: Output<GalleryApplicationVersionSourceArgs>? = null, val tags: Output<Map<String, String>>? = null, val targetRegions: Output<List<GalleryApplicationVersionTargetRegionArgs>>? = null) : ConvertibleToJava<GalleryApplicationVersionArgs>

Manages a Gallery Application Version.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.SharedImageGallery;
import com.pulumi.azure.compute.SharedImageGalleryArgs;
import com.pulumi.azure.compute.GalleryApplication;
import com.pulumi.azure.compute.GalleryApplicationArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azure.storage.Blob;
import com.pulumi.azure.storage.BlobArgs;
import com.pulumi.azure.compute.GalleryApplicationVersion;
import com.pulumi.azure.compute.GalleryApplicationVersionArgs;
import com.pulumi.azure.compute.inputs.GalleryApplicationVersionManageActionArgs;
import com.pulumi.azure.compute.inputs.GalleryApplicationVersionSourceArgs;
import com.pulumi.azure.compute.inputs.GalleryApplicationVersionTargetRegionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleGalleryApplication = new GalleryApplication("exampleGalleryApplication", GalleryApplicationArgs.builder()
.galleryId(exampleSharedImageGallery.id())
.location(exampleResourceGroup.location())
.supportedOsType("Linux")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
.storageAccountName(exampleAccount.name())
.containerAccessType("blob")
.build());
var exampleBlob = new Blob("exampleBlob", BlobArgs.builder()
.storageAccountName(exampleAccount.name())
.storageContainerName(exampleContainer.name())
.type("Block")
.sourceContent("[scripts file content]")
.build());
var exampleGalleryApplicationVersion = new GalleryApplicationVersion("exampleGalleryApplicationVersion", GalleryApplicationVersionArgs.builder()
.galleryApplicationId(exampleGalleryApplication.id())
.location(exampleGalleryApplication.location())
.manageAction(GalleryApplicationVersionManageActionArgs.builder()
.install("[install command]")
.remove("[remove command]")
.build())
.source(GalleryApplicationVersionSourceArgs.builder()
.mediaLink(exampleBlob.id())
.build())
.targetRegions(GalleryApplicationVersionTargetRegionArgs.builder()
.name(exampleGalleryApplication.location())
.regionalReplicaCount(1)
.build())
.build());
}
}

Import

Gallery Application Versions can be imported using the resource id, e.g.

$ pulumi import azure:compute/galleryApplicationVersion:GalleryApplicationVersion example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1/versions/galleryApplicationVersion1

Constructors

Link copied to clipboard
fun GalleryApplicationVersionArgs(enableHealthCheck: Output<Boolean>? = null, endOfLifeDate: Output<String>? = null, excludeFromLatest: Output<Boolean>? = null, galleryApplicationId: Output<String>? = null, location: Output<String>? = null, manageAction: Output<GalleryApplicationVersionManageActionArgs>? = null, name: Output<String>? = null, source: Output<GalleryApplicationVersionSourceArgs>? = null, tags: Output<Map<String, String>>? = null, targetRegions: Output<List<GalleryApplicationVersionTargetRegionArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GalleryApplicationVersionArgs

Properties

Link copied to clipboard
val enableHealthCheck: Output<Boolean>? = null

Should the Gallery Application reports health. Defaults to false.

Link copied to clipboard
val endOfLifeDate: Output<String>? = null

The end of life date in RFC3339 format of the Gallery Application Version.

Link copied to clipboard
val excludeFromLatest: Output<Boolean>? = null

Should the Gallery Application Version be excluded from the latest filter? If set to true this Gallery Application Version won't be returned for the latest version. Defaults to false.

Link copied to clipboard
val galleryApplicationId: Output<String>? = null

The ID of the Gallery Application. Changing this forces a new resource to be created.

Link copied to clipboard
val location: Output<String>? = null

The Azure Region where the Gallery Application Version exists. Changing this forces a new resource to be created.

Link copied to clipboard

A manage_action block as defined below.

Link copied to clipboard
val name: Output<String>? = null

The version name of the Gallery Application Version, such as 1.0.0. Changing this forces a new resource to be created.

Link copied to clipboard

A source block as defined below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the Gallery Application Version.

Link copied to clipboard

One or more target_region blocks as defined below.