1. Packages
  2. Azure Native v2
  3. API Docs
  4. batch
  5. Application
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.batch.Application

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Contains information about an application in a Batch account. Azure REST API version: 2023-05-01. Prior API version in Azure Native 1.x: 2021-01-01.

Other available API versions: 2023-11-01, 2024-02-01, 2024-07-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",
    });

});
Copy
package main

import (
	batch "github.com/pulumi/pulumi-azure-native-sdk/batch/v2"
	"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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const application = new azure_native.batch.Application("application", {
    accountName: "sampleacct",
    allowUpdates: false,
    applicationName: "app1",
    displayName: "myAppName",
    resourceGroupName: "default-azurebatch-japaneast",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

application = azure_native.batch.Application("application",
    account_name="sampleacct",
    allow_updates=False,
    application_name="app1",
    display_name="myAppName",
    resource_group_name="default-azurebatch-japaneast")
Copy
resources:
  application:
    type: azure-native:batch:Application
    properties:
      accountName: sampleacct
      allowUpdates: false
      applicationName: app1
      displayName: myAppName
      resourceGroupName: default-azurebatch-japaneast
Copy

Create Application Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                args: ApplicationArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                allow_updates: Optional[bool] = None,
                application_name: Optional[str] = None,
                default_version: Optional[str] = None,
                display_name: Optional[str] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: azure-native:batch:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ApplicationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ApplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var applicationResource = new AzureNative.Batch.Application("applicationResource", new()
{
    AccountName = "string",
    ResourceGroupName = "string",
    AllowUpdates = false,
    ApplicationName = "string",
    DefaultVersion = "string",
    DisplayName = "string",
});
Copy
example, err := batch.NewApplication(ctx, "applicationResource", &batch.ApplicationArgs{
	AccountName:       "string",
	ResourceGroupName: "string",
	AllowUpdates:      false,
	ApplicationName:   "string",
	DefaultVersion:    "string",
	DisplayName:       "string",
})
Copy
var applicationResource = new Application("applicationResource", ApplicationArgs.builder()
    .accountName("string")
    .resourceGroupName("string")
    .allowUpdates(false)
    .applicationName("string")
    .defaultVersion("string")
    .displayName("string")
    .build());
Copy
application_resource = azure_native.batch.Application("applicationResource",
    account_name=string,
    resource_group_name=string,
    allow_updates=False,
    application_name=string,
    default_version=string,
    display_name=string)
Copy
const applicationResource = new azure_native.batch.Application("applicationResource", {
    accountName: "string",
    resourceGroupName: "string",
    allowUpdates: false,
    applicationName: "string",
    defaultVersion: "string",
    displayName: "string",
});
Copy
type: azure-native:batch:Application
properties:
    accountName: string
    allowUpdates: false
    applicationName: string
    defaultVersion: string
    displayName: string
    resourceGroupName: string
Copy

Application Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Application resource accepts the following input properties:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Batch account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the Batch account.
AllowUpdates bool
A value indicating whether packages within the application may be overwritten using the same version string.
ApplicationName Changes to this property will trigger replacement. string
The name of the application. This must be unique within the account.
DefaultVersion string
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.
DisplayName string
The display name for the application.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Batch account.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the Batch account.
AllowUpdates bool
A value indicating whether packages within the application may be overwritten using the same version string.
ApplicationName Changes to this property will trigger replacement. string
The name of the application. This must be unique within the account.
DefaultVersion string
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.
DisplayName string
The display name for the application.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Batch account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the Batch account.
allowUpdates Boolean
A value indicating whether packages within the application may be overwritten using the same version string.
applicationName Changes to this property will trigger replacement. String
The name of the application. This must be unique within the account.
defaultVersion String
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.
displayName String
The display name for the application.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Batch account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the Batch account.
allowUpdates boolean
A value indicating whether packages within the application may be overwritten using the same version string.
applicationName Changes to this property will trigger replacement. string
The name of the application. This must be unique within the account.
defaultVersion string
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.
displayName string
The display name for the application.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Batch account.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group that contains the Batch account.
allow_updates bool
A value indicating whether packages within the application may be overwritten using the same version string.
application_name Changes to this property will trigger replacement. str
The name of the application. This must be unique within the account.
default_version str
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.
display_name str
The display name for the application.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Batch account.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the Batch account.
allowUpdates Boolean
A value indicating whether packages within the application may be overwritten using the same version string.
applicationName Changes to this property will trigger replacement. String
The name of the application. This must be unique within the account.
defaultVersion String
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.
displayName String
The display name for the application.

Outputs

All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:

Etag string
The ETag of the resource, used for concurrency statements.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
Type string
The type of the resource.
Etag string
The ETag of the resource, used for concurrency statements.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
Type string
The type of the resource.
etag String
The ETag of the resource, used for concurrency statements.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
type String
The type of the resource.
etag string
The ETag of the resource, used for concurrency statements.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource.
type string
The type of the resource.
etag str
The ETag of the resource, used for concurrency statements.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource.
type str
The type of the resource.
etag String
The ETag of the resource, used for concurrency statements.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
type String
The type of the resource.

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} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi