GalleryArgs

data class GalleryArgs(val devCenterName: Output<String>? = null, val galleryName: Output<String>? = null, val galleryResourceId: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<GalleryArgs>

Represents a gallery. API Version: 2022-09-01-preview.

Example Usage

Galleries_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var gallery = new AzureNative.DevCenter.Gallery("gallery", new()
{
DevCenterName = "Contoso",
GalleryName = "{galleryName}",
GalleryResourceId = "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.Compute/galleries/{galleryName}",
ResourceGroupName = "rg1",
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewGallery(ctx, "gallery", &devcenter.GalleryArgs{
DevCenterName: pulumi.String("Contoso"),
GalleryName: pulumi.String("{galleryName}"),
GalleryResourceId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.Compute/galleries/{galleryName}"),
ResourceGroupName: pulumi.String("rg1"),
})
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.devcenter.Gallery;
import com.pulumi.azurenative.devcenter.GalleryArgs;
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 gallery = new Gallery("gallery", GalleryArgs.builder()
.devCenterName("Contoso")
.galleryName("{galleryName}")
.galleryResourceId("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.Compute/galleries/{galleryName}")
.resourceGroupName("rg1")
.build());
}
}

Import

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

$ pulumi import azure-native:devcenter:Gallery {galleryName} /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/{galleryName}

Constructors

Link copied to clipboard
constructor(devCenterName: Output<String>? = null, galleryName: Output<String>? = null, galleryResourceId: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

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

The name of the devcenter.

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

The name of the gallery.

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

The resource ID of the backing Azure Compute Gallery.

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

Name of the resource group within the Azure subscription.

Functions

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