azure logo
Azure Classic v5.38.0, Mar 21 23

azure.batch.Application

Manages Azure Batch Application instance.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleAccount = new Azure.Storage.Account("exampleAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleBatch_accountAccount = new Azure.Batch.Account("exampleBatch/accountAccount", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        PoolAllocationMode = "BatchService",
        StorageAccountId = exampleAccount.Id,
    });

    var exampleApplication = new Azure.Batch.Application("exampleApplication", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        AccountName = exampleBatch / accountAccount.Name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/batch"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
			ResourceGroupName:      exampleResourceGroup.Name,
			Location:               exampleResourceGroup.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		_, err = batch.NewAccount(ctx, "exampleBatch/accountAccount", &batch.AccountArgs{
			ResourceGroupName:  exampleResourceGroup.Name,
			Location:           exampleResourceGroup.Location,
			PoolAllocationMode: pulumi.String("BatchService"),
			StorageAccountId:   exampleAccount.ID(),
		})
		if err != nil {
			return err
		}
		_, err = batch.NewApplication(ctx, "exampleApplication", &batch.ApplicationArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			AccountName:       exampleBatch / accountAccount.Name,
		})
		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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.batch.Account;
import com.pulumi.azure.batch.AccountArgs;
import com.pulumi.azure.batch.Application;
import com.pulumi.azure.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleBatch_accountAccount = new Account("exampleBatch/accountAccount", AccountArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .poolAllocationMode("BatchService")
            .storageAccountId(exampleAccount.id())
            .build());

        var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()        
            .resourceGroupName(exampleResourceGroup.name())
            .accountName(exampleBatch / accountAccount.name())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.storage.Account("exampleAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_batch_account_account = azure.batch.Account("exampleBatch/accountAccount",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    pool_allocation_mode="BatchService",
    storage_account_id=example_account.id)
example_application = azure.batch.Application("exampleApplication",
    resource_group_name=example_resource_group.name,
    account_name=example_batch / account_account["name"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.storage.Account("exampleAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleBatch_accountAccount = new azure.batch.Account("exampleBatch/accountAccount", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    poolAllocationMode: "BatchService",
    storageAccountId: exampleAccount.id,
});
const exampleApplication = new azure.batch.Application("exampleApplication", {
    resourceGroupName: exampleResourceGroup.name,
    accountName: exampleBatch / accountAccount.name,
});

Coming soon!

Create Application Resource

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                allow_updates: Optional[bool] = None,
                default_version: Optional[str] = None,
                display_name: Optional[str] = None,
                name: Optional[str] = None,
                resource_group_name: Optional[str] = None)
@overload
def Application(resource_name: str,
                args: ApplicationArgs,
                opts: Optional[ResourceOptions] = 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:batch:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args 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 string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The Application resource accepts the following input properties:

AccountName string

The name of the Batch account. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

AllowUpdates bool

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

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.

Name string

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

AccountName string

The name of the Batch account. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

AllowUpdates bool

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

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.

Name string

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

accountName String

The name of the Batch account. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

allowUpdates Boolean

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

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.

name String

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

accountName string

The name of the Batch account. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

allowUpdates boolean

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

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.

name string

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

account_name str

The name of the Batch account. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

allow_updates bool

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

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.

name str

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

accountName String

The name of the Batch account. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

allowUpdates Boolean

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

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.

name String

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Application Resource

Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_name: Optional[str] = None,
        allow_updates: Optional[bool] = None,
        default_version: Optional[str] = None,
        display_name: Optional[str] = None,
        name: Optional[str] = None,
        resource_group_name: Optional[str] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountName string

The name of the Batch account. Changing this forces a new resource to be created.

AllowUpdates bool

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

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.

Name string

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

AccountName string

The name of the Batch account. Changing this forces a new resource to be created.

AllowUpdates bool

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

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.

Name string

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

ResourceGroupName string

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

accountName String

The name of the Batch account. Changing this forces a new resource to be created.

allowUpdates Boolean

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

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.

name String

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

accountName string

The name of the Batch account. Changing this forces a new resource to be created.

allowUpdates boolean

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

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.

name string

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

resourceGroupName string

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

account_name str

The name of the Batch account. Changing this forces a new resource to be created.

allow_updates bool

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

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.

name str

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

resource_group_name str

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

accountName String

The name of the Batch account. Changing this forces a new resource to be created.

allowUpdates Boolean

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

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.

name String

The name of the application. This must be unique within the account. Changing this forces a new resource to be created.

resourceGroupName String

The name of the resource group that contains the Batch account. Changing this forces a new resource to be created.

Import

Batch Applications can be imported using the resource id, e.g.

 $ pulumi import azure:batch/application:Application example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Batch/batchAccounts/exampleba/applications/example-batch-application

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.