Gallery Args
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard