Gallery Application Args
data class GalleryApplicationArgs(val customActions: Output<List<GalleryApplicationCustomActionArgs>>? = null, val description: Output<String>? = null, val endOfLifeDate: Output<String>? = null, val eula: Output<String>? = null, val galleryApplicationName: Output<String>? = null, val galleryName: Output<String>? = null, val location: Output<String>? = null, val privacyStatementUri: Output<String>? = null, val releaseNoteUri: Output<String>? = null, val resourceGroupName: Output<String>? = null, val supportedOSType: Output<OperatingSystemTypes>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<GalleryApplicationArgs>
Specifies information about the gallery Application Definition that you want to create or update. Azure REST API version: 2022-03-03. Prior API version in Azure Native 1.x: 2020-09-30.
Example Usage
Create or update a simple gallery Application.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var galleryApplication = new AzureNative.Compute.GalleryApplication("galleryApplication", new()
{
CustomActions = new[]
{
new AzureNative.Compute.Inputs.GalleryApplicationCustomActionArgs
{
Description = "This is the custom action description.",
Name = "myCustomAction",
Parameters = new[]
{
new AzureNative.Compute.Inputs.GalleryApplicationCustomActionParameterArgs
{
DefaultValue = "default value of parameter.",
Description = "This is the description of the parameter",
Name = "myCustomActionParameter",
Required = false,
Type = AzureNative.Compute.GalleryApplicationCustomActionParameterType.String,
},
},
Script = "myCustomActionScript",
},
},
Description = "This is the gallery application description.",
Eula = "This is the gallery application EULA.",
GalleryApplicationName = "myGalleryApplicationName",
GalleryName = "myGalleryName",
Location = "West US",
PrivacyStatementUri = "myPrivacyStatementUri}",
ReleaseNoteUri = "myReleaseNoteUri",
ResourceGroupName = "myResourceGroup",
SupportedOSType = AzureNative.Compute.OperatingSystemTypes.Windows,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewGalleryApplication(ctx, "galleryApplication", &compute.GalleryApplicationArgs{
CustomActions: []compute.GalleryApplicationCustomActionArgs{
{
Description: pulumi.String("This is the custom action description."),
Name: pulumi.String("myCustomAction"),
Parameters: compute.GalleryApplicationCustomActionParameterArray{
{
DefaultValue: pulumi.String("default value of parameter."),
Description: pulumi.String("This is the description of the parameter"),
Name: pulumi.String("myCustomActionParameter"),
Required: pulumi.Bool(false),
Type: compute.GalleryApplicationCustomActionParameterTypeString,
},
},
Script: pulumi.String("myCustomActionScript"),
},
},
Description: pulumi.String("This is the gallery application description."),
Eula: pulumi.String("This is the gallery application EULA."),
GalleryApplicationName: pulumi.String("myGalleryApplicationName"),
GalleryName: pulumi.String("myGalleryName"),
Location: pulumi.String("West US"),
PrivacyStatementUri: pulumi.String("myPrivacyStatementUri}"),
ReleaseNoteUri: pulumi.String("myReleaseNoteUri"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SupportedOSType: compute.OperatingSystemTypesWindows,
})
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.compute.GalleryApplication;
import com.pulumi.azurenative.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 galleryApplication = new GalleryApplication("galleryApplication", GalleryApplicationArgs.builder()
.customActions(Map.ofEntries(
Map.entry("description", "This is the custom action description."),
Map.entry("name", "myCustomAction"),
Map.entry("parameters", Map.ofEntries(
Map.entry("defaultValue", "default value of parameter."),
Map.entry("description", "This is the description of the parameter"),
Map.entry("name", "myCustomActionParameter"),
Map.entry("required", false),
Map.entry("type", "String")
)),
Map.entry("script", "myCustomActionScript")
))
.description("This is the gallery application description.")
.eula("This is the gallery application EULA.")
.galleryApplicationName("myGalleryApplicationName")
.galleryName("myGalleryName")
.location("West US")
.privacyStatementUri("myPrivacyStatementUri}")
.releaseNoteUri("myReleaseNoteUri")
.resourceGroupName("myResourceGroup")
.supportedOSType("Windows")
.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:compute:GalleryApplication myGalleryApplicationName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun GalleryApplicationArgs(customActions: Output<List<GalleryApplicationCustomActionArgs>>? = null, description: Output<String>? = null, endOfLifeDate: Output<String>? = null, eula: Output<String>? = null, galleryApplicationName: Output<String>? = null, galleryName: Output<String>? = null, location: Output<String>? = null, privacyStatementUri: Output<String>? = null, releaseNoteUri: Output<String>? = null, resourceGroupName: Output<String>? = null, supportedOSType: Output<OperatingSystemTypes>? = null, tags: Output<Map<String, String>>? = null)