Gallery Application Args
data class GalleryApplicationArgs(val description: Output<String>? = null, val endOfLifeDate: Output<String>? = null, val eula: Output<String>? = null, val galleryId: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val privacyStatementUri: Output<String>? = null, val releaseNoteUri: Output<String>? = null, val supportedOsType: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<GalleryApplicationArgs>
Manages a Gallery Application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-rg",
location: "West Europe",
});
const exampleSharedImageGallery = new azure.compute.SharedImageGallery("example", {
name: "examplegallery",
resourceGroupName: example.name,
location: example.location,
});
const exampleGalleryApplication = new azure.compute.GalleryApplication("example", {
name: "example-app",
galleryId: exampleSharedImageGallery.id,
location: example.location,
supportedOsType: "Linux",
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-rg",
location="West Europe")
example_shared_image_gallery = azure.compute.SharedImageGallery("example",
name="examplegallery",
resource_group_name=example.name,
location=example.location)
example_gallery_application = azure.compute.GalleryApplication("example",
name="example-app",
gallery_id=example_shared_image_gallery.id,
location=example.location,
supported_os_type="Linux")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-rg",
Location = "West Europe",
});
var exampleSharedImageGallery = new Azure.Compute.SharedImageGallery("example", new()
{
Name = "examplegallery",
ResourceGroupName = example.Name,
Location = example.Location,
});
var exampleGalleryApplication = new Azure.Compute.GalleryApplication("example", new()
{
Name = "example-app",
GalleryId = exampleSharedImageGallery.Id,
Location = example.Location,
SupportedOsType = "Linux",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-rg"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleSharedImageGallery, err := compute.NewSharedImageGallery(ctx, "example", &compute.SharedImageGalleryArgs{
Name: pulumi.String("examplegallery"),
ResourceGroupName: example.Name,
Location: example.Location,
})
if err != nil {
return err
}
_, err = compute.NewGalleryApplication(ctx, "example", &compute.GalleryApplicationArgs{
Name: pulumi.String("example-app"),
GalleryId: exampleSharedImageGallery.ID(),
Location: example.Location,
SupportedOsType: pulumi.String("Linux"),
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.SharedImageGallery;
import com.pulumi.azure.compute.SharedImageGalleryArgs;
import com.pulumi.azure.compute.GalleryApplication;
import com.pulumi.azure.compute.GalleryApplicationArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-rg")
.location("West Europe")
.build());
var exampleSharedImageGallery = new SharedImageGallery("exampleSharedImageGallery", SharedImageGalleryArgs.builder()
.name("examplegallery")
.resourceGroupName(example.name())
.location(example.location())
.build());
var exampleGalleryApplication = new GalleryApplication("exampleGalleryApplication", GalleryApplicationArgs.builder()
.name("example-app")
.galleryId(exampleSharedImageGallery.id())
.location(example.location())
.supportedOsType("Linux")
.build());
}
}
Content copied to clipboard
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-rg
location: West Europe
exampleSharedImageGallery:
type: azure:compute:SharedImageGallery
name: example
properties:
name: examplegallery
resourceGroupName: ${example.name}
location: ${example.location}
exampleGalleryApplication:
type: azure:compute:GalleryApplication
name: example
properties:
name: example-app
galleryId: ${exampleSharedImageGallery.id}
location: ${example.location}
supportedOsType: Linux
Content copied to clipboard
API Providers
This resource uses the following Azure API Providers:
Microsoft.Compute
: 2022-03-03
Import
Gallery Applications can be imported using the resource id
, e.g.
$ pulumi import azure:compute/galleryApplication:GalleryApplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/galleries/gallery1/applications/galleryApplication1
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(description: Output<String>? = null, endOfLifeDate: Output<String>? = null, eula: Output<String>? = null, galleryId: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, privacyStatementUri: Output<String>? = null, releaseNoteUri: Output<String>? = null, supportedOsType: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
A description of the Gallery Application.
Link copied to clipboard
The end of life date in RFC3339 format of the Gallery Application.
Link copied to clipboard
The URI containing the Privacy Statement associated with the Gallery Application.
Link copied to clipboard
The URI containing the Release Notes associated with the Gallery Application.
Link copied to clipboard
The type of the Operating System supported for the Gallery Application. Possible values are Linux
and Windows
. Changing this forces a new resource to be created.