Gallery Image Args
data class GalleryImageArgs(val cloudInitDataSource: Output<Either<String, CloudInitDataSource>>? = null, val containerName: Output<String>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val galleryImageName: Output<String>? = null, val hyperVGeneration: Output<Either<String, HyperVGeneration>>? = null, val identifier: Output<GalleryImageIdentifierArgs>? = null, val imagePath: Output<String>? = null, val location: Output<String>? = null, val osType: Output<OperatingSystemTypes>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val version: Output<GalleryImageVersionArgs>? = null) : ConvertibleToJava<GalleryImageArgs>
The gallery images resource definition. Azure REST API version: 2022-12-15-preview. Other available API versions: 2023-07-01-preview, 2023-09-01-preview, 2024-01-01.
Example Usage
PutGalleryImage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var galleryImage = new AzureNative.AzureStackHCI.GalleryImage("galleryImage", new()
{
ContainerName = "Default_Container",
ExtendedLocation = new AzureNative.AzureStackHCI.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
Type = AzureNative.AzureStackHCI.ExtendedLocationTypes.CustomLocation,
},
GalleryImageName = "test-gallery-image",
ImagePath = "C:\\test.vhdx",
Location = "West US2",
ResourceGroupName = "test-rg",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewGalleryImage(ctx, "galleryImage", &azurestackhci.GalleryImageArgs{
ContainerName: pulumi.String("Default_Container"),
ExtendedLocation: &azurestackhci.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location"),
Type: pulumi.String(azurestackhci.ExtendedLocationTypesCustomLocation),
},
GalleryImageName: pulumi.String("test-gallery-image"),
ImagePath: pulumi.String("C:\\test.vhdx"),
Location: pulumi.String("West US2"),
ResourceGroupName: pulumi.String("test-rg"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.azurestackhci.GalleryImage;
import com.pulumi.azurenative.azurestackhci.GalleryImageArgs;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
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()
.containerName("Default_Container")
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
.type("CustomLocation")
.build())
.galleryImageName("test-gallery-image")
.imagePath("C:\\test.vhdx")
.location("West US2")
.resourceGroupName("test-rg")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azurestackhci:GalleryImage test-gallery-image /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(cloudInitDataSource: Output<Either<String, CloudInitDataSource>>? = null, containerName: Output<String>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, galleryImageName: Output<String>? = null, hyperVGeneration: Output<Either<String, HyperVGeneration>>? = null, identifier: Output<GalleryImageIdentifierArgs>? = null, imagePath: Output<String>? = null, location: Output<String>? = null, osType: Output<OperatingSystemTypes>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, version: Output<GalleryImageVersionArgs>? = null)
Properties
Link copied to clipboard
Datasource for the gallery image when provisioning with cloud-init NoCloud, Azure
Link copied to clipboard
Container Name for storage container
Link copied to clipboard
The extendedLocation of the resource.
Link copied to clipboard
Name of the gallery image
Link copied to clipboard
The hypervisor generation of the Virtual Machine V1, V2
Link copied to clipboard
This is the gallery image definition identifier.
Link copied to clipboard
Operating system type that the gallery image uses Windows, Linux
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Specifies information about the gallery image version that you want to create or update.