1. Packages
  2. Azure Native
  3. API Docs
  4. batch
  5. Application
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.batch.Application

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 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: 2017-09-01, 2023-11-01, 2024-02-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",
        });
    
    });
    
    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
    	})
    }
    
    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 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")
    
    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",
    });
    
    resources:
      application:
        type: azure-native:batch:Application
        properties:
          accountName: sampleacct
          allowUpdates: false
          applicationName: app1
          displayName: myAppName
          resourceGroupName: default-azurebatch-japaneast
    

    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 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.

    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",
    });
    
    example, err := batch.NewApplication(ctx, "applicationResource", &batch.ApplicationArgs{
    AccountName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    AllowUpdates: pulumi.Bool(false),
    ApplicationName: pulumi.String("string"),
    DefaultVersion: pulumi.String("string"),
    DisplayName: pulumi.String("string"),
    })
    
    var applicationResource = new Application("applicationResource", ApplicationArgs.builder()
        .accountName("string")
        .resourceGroupName("string")
        .allowUpdates(false)
        .applicationName("string")
        .defaultVersion("string")
        .displayName("string")
        .build());
    
    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")
    
    const applicationResource = new azure_native.batch.Application("applicationResource", {
        accountName: "string",
        resourceGroupName: "string",
        allowUpdates: false,
        applicationName: "string",
        defaultVersion: "string",
        displayName: "string",
    });
    
    type: azure-native:batch:Application
    properties:
        accountName: string
        allowUpdates: false
        applicationName: string
        defaultVersion: string
        displayName: string
        resourceGroupName: string
    

    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.
    ResourceGroupName 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 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 string
    The name of the Batch account.
    ResourceGroupName 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 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 String
    The name of the Batch account.
    resourceGroupName 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 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 string
    The name of the Batch account.
    resourceGroupName 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 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 str
    The name of the Batch account.
    resource_group_name 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 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 String
    The name of the Batch account.
    resourceGroupName 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 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} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi