GalleryImage

class GalleryImage : KotlinCustomResource

Specifies information about the gallery image definition that you want to create or update. API Version: 2020-09-30.

Example Usage

Create or update a simple gallery image.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var galleryImage = new AzureNative.Compute.GalleryImage("galleryImage", new()
{
GalleryImageName = "myGalleryImageName",
GalleryName = "myGalleryName",
HyperVGeneration = "V1",
Identifier = new AzureNative.Compute.Inputs.GalleryImageIdentifierArgs
{
Offer = "myOfferName",
Publisher = "myPublisherName",
Sku = "mySkuName",
},
Location = "West US",
OsState = AzureNative.Compute.OperatingSystemStateTypes.Generalized,
OsType = AzureNative.Compute.OperatingSystemTypes.Windows,
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewGalleryImage(ctx, "galleryImage", &compute.GalleryImageArgs{
GalleryImageName: pulumi.String("myGalleryImageName"),
GalleryName: pulumi.String("myGalleryName"),
HyperVGeneration: pulumi.String("V1"),
Identifier: &compute.GalleryImageIdentifierArgs{
Offer: pulumi.String("myOfferName"),
Publisher: pulumi.String("myPublisherName"),
Sku: pulumi.String("mySkuName"),
},
Location: pulumi.String("West US"),
OsState: compute.OperatingSystemStateTypesGeneralized,
OsType: compute.OperatingSystemTypesWindows,
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.GalleryImage;
import com.pulumi.azurenative.compute.GalleryImageArgs;
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 galleryImage = new GalleryImage("galleryImage", GalleryImageArgs.builder()
.galleryImageName("myGalleryImageName")
.galleryName("myGalleryName")
.hyperVGeneration("V1")
.identifier(Map.ofEntries(
Map.entry("offer", "myOfferName"),
Map.entry("publisher", "myPublisherName"),
Map.entry("sku", "mySkuName")
))
.location("West US")
.osState("Generalized")
.osType("Windows")
.resourceGroupName("myResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:compute:GalleryImage myGalleryImageName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}

Properties

Link copied to clipboard
val description: Output<String>?

The description of this gallery image definition resource. This property is updatable.

Link copied to clipboard

Describes the disallowed disk types.

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

The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

Link copied to clipboard
val eula: Output<String>?

The Eula agreement for the gallery image definition.

Link copied to clipboard

A list of gallery image features.

Link copied to clipboard
val hyperVGeneration: Output<String>?

The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

This is the gallery image definition identifier.

Link copied to clipboard
val location: Output<String>

Resource location

Link copied to clipboard
val name: Output<String>

Resource name

Link copied to clipboard
val osState: Output<String>

This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

Link copied to clipboard
val osType: Output<String>

This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

Windows

Linux

Link copied to clipboard

The privacy statement uri.

Link copied to clipboard

The provisioning state, which only appears in the response.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Describes the gallery image definition purchase plan. This is used by marketplace images.

Link copied to clipboard

The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

Link copied to clipboard
val releaseNoteUri: Output<String>?

The release note uri.

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

Resource tags

Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val urn: Output<String>