ApplicationArgs

data class ApplicationArgs(val accountName: Output<String>? = null, val allowUpdates: Output<Boolean>? = null, val applicationName: Output<String>? = null, val defaultVersion: Output<String>? = null, val displayName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ApplicationArgs>

Contains information about an application in a Batch account. Uses Azure REST API version 2024-07-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. Other available API versions: 2023-05-01, 2023-11-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native batch [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ApplicationCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var application = new AzureNative.Batch.Application("application", new()
{
AccountName = "sampleacct",
AllowUpdates = false,
ApplicationName = "app1",
DisplayName = "myAppName",
ResourceGroupName = "default-azurebatch-japaneast",
});
});
package main
import (
batch "github.com/pulumi/pulumi-azure-native-sdk/batch/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := batch.NewApplication(ctx, "application", &batch.ApplicationArgs{
AccountName: pulumi.String("sampleacct"),
AllowUpdates: pulumi.Bool(false),
ApplicationName: pulumi.String("app1"),
DisplayName: pulumi.String("myAppName"),
ResourceGroupName: pulumi.String("default-azurebatch-japaneast"),
})
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.batch.Application;
import com.pulumi.azurenative.batch.ApplicationArgs;
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 application = new Application("application", ApplicationArgs.builder()
.accountName("sampleacct")
.allowUpdates(false)
.applicationName("app1")
.displayName("myAppName")
.resourceGroupName("default-azurebatch-japaneast")
.build());
}
}

Import

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

$ pulumi import azure-native:batch:Application app1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, allowUpdates: Output<Boolean>? = null, applicationName: Output<String>? = null, defaultVersion: Output<String>? = null, displayName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The name of the Batch account.

Link copied to clipboard
val allowUpdates: Output<Boolean>? = null

A value indicating whether packages within the application may be overwritten using the same version string.

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

The name of the application. This must be unique within the account.

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

The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.

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

The display name for the application.

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

The name of the resource group that contains the Batch account.

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

The tags of the resource.

Functions

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