MarketplaceGalleryImageArgs

data class MarketplaceGalleryImageArgs(val cloudInitDataSource: Output<Either<String, CloudInitDataSource>>? = null, val containerId: Output<String>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val hyperVGeneration: Output<Either<String, HyperVGeneration>>? = null, val identifier: Output<GalleryImageIdentifierArgs>? = null, val location: Output<String>? = null, val marketplaceGalleryImageName: Output<String>? = null, val osType: Output<Either<String, OperatingSystemTypes>>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val version: Output<GalleryImageVersionArgs>? = null) : ConvertibleToJava<MarketplaceGalleryImageArgs>

The marketplace gallery image resource definition. Uses Azure REST API version 2025-02-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-12-15-preview. Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurestackhci [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

PutMarketplaceGalleryImage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var marketplaceGalleryImage = new AzureNative.AzureStackHCI.MarketplaceGalleryImage("marketplaceGalleryImage", new()
{
CloudInitDataSource = AzureNative.AzureStackHCI.CloudInitDataSource.Azure,
ContainerId = "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-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,
},
HyperVGeneration = AzureNative.AzureStackHCI.HyperVGeneration.V1,
Identifier = new AzureNative.AzureStackHCI.Inputs.GalleryImageIdentifierArgs
{
Offer = "myOfferName",
Publisher = "myPublisherName",
Sku = "mySkuName",
},
Location = "West US2",
MarketplaceGalleryImageName = "test-marketplace-gallery-image",
OsType = AzureNative.AzureStackHCI.OperatingSystemTypes.Windows,
ResourceGroupName = "test-rg",
Version = new AzureNative.AzureStackHCI.Inputs.GalleryImageVersionArgs
{
Name = "1.0.0",
},
});
});
package main
import (
azurestackhci "github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azurestackhci.NewMarketplaceGalleryImage(ctx, "marketplaceGalleryImage", &azurestackhci.MarketplaceGalleryImageArgs{
CloudInitDataSource: pulumi.String(azurestackhci.CloudInitDataSourceAzure),
ContainerId: pulumi.String("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-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),
},
HyperVGeneration: pulumi.String(azurestackhci.HyperVGenerationV1),
Identifier: &azurestackhci.GalleryImageIdentifierArgs{
Offer: pulumi.String("myOfferName"),
Publisher: pulumi.String("myPublisherName"),
Sku: pulumi.String("mySkuName"),
},
Location: pulumi.String("West US2"),
MarketplaceGalleryImageName: pulumi.String("test-marketplace-gallery-image"),
OsType: pulumi.String(azurestackhci.OperatingSystemTypesWindows),
ResourceGroupName: pulumi.String("test-rg"),
Version: &azurestackhci.GalleryImageVersionArgs{
Name: pulumi.String("1.0.0"),
},
})
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.azurestackhci.MarketplaceGalleryImage;
import com.pulumi.azurenative.azurestackhci.MarketplaceGalleryImageArgs;
import com.pulumi.azurenative.azurestackhci.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.azurestackhci.inputs.GalleryImageIdentifierArgs;
import com.pulumi.azurenative.azurestackhci.inputs.GalleryImageVersionArgs;
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 marketplaceGalleryImage = new MarketplaceGalleryImage("marketplaceGalleryImage", MarketplaceGalleryImageArgs.builder()
.cloudInitDataSource("Azure")
.containerId("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container")
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location")
.type("CustomLocation")
.build())
.hyperVGeneration("V1")
.identifier(GalleryImageIdentifierArgs.builder()
.offer("myOfferName")
.publisher("myPublisherName")
.sku("mySkuName")
.build())
.location("West US2")
.marketplaceGalleryImageName("test-marketplace-gallery-image")
.osType("Windows")
.resourceGroupName("test-rg")
.version(GalleryImageVersionArgs.builder()
.name("1.0.0")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:azurestackhci:MarketplaceGalleryImage test-marketplace-gallery-image /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}

Constructors

Link copied to clipboard
constructor(cloudInitDataSource: Output<Either<String, CloudInitDataSource>>? = null, containerId: Output<String>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, hyperVGeneration: Output<Either<String, HyperVGeneration>>? = null, identifier: Output<GalleryImageIdentifierArgs>? = null, location: Output<String>? = null, marketplaceGalleryImageName: Output<String>? = null, osType: Output<Either<String, OperatingSystemTypes>>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null, version: Output<GalleryImageVersionArgs>? = null)

Properties

Link copied to clipboard
val cloudInitDataSource: Output<Either<String, CloudInitDataSource>>? = null

Datasource for the gallery image when provisioning with cloud-init NoCloud, Azure

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

Storage ContainerID of the storage container to be used for marketplace gallery image

Link copied to clipboard

The extendedLocation of the resource.

Link copied to clipboard
val hyperVGeneration: Output<Either<String, HyperVGeneration>>? = null

The hypervisor generation of the Virtual Machine V1, V2

Link copied to clipboard

This is the gallery image definition identifier.

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

The geo-location where the resource lives

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

Name of the marketplace gallery image

Link copied to clipboard
val osType: Output<Either<String, OperatingSystemTypes>>? = null

Operating system type that the gallery image uses Windows, Linux

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

The name of the resource group. The name is case insensitive.

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

Resource tags.

Link copied to clipboard
val version: Output<GalleryImageVersionArgs>? = null

Specifies information about the gallery image version that you want to create or update.

Functions

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