Application Args
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) : ConvertibleToJava<ApplicationArgs>
Contains information about an application in a Batch account. API Version: 2021-01-01.
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",
});
});
Content copied to clipboard
package main
import (
batch "github.com/pulumi/pulumi-azure-native-sdk/batch"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:batch:Application app1 /subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1
Content copied to clipboard
Constructors
Properties
Link copied to clipboard
The name of the Batch account.
Link copied to clipboard
A value indicating whether packages within the application may be overwritten using the same version string.
Link copied to clipboard
The name of the application. This must be unique within the account.
Link copied to clipboard
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
The display name for the application.
Link copied to clipboard
The name of the resource group that contains the Batch account.