azure-native.batch.Application
Explore with Pulumi AI
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, 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",
});
});
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:
- Account
Name string - The name of the Batch account.
- Resource
Group stringName - 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 string - The name of the application. This must be unique within the account.
- Default
Version 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.
- Display
Name string - The display name for the application.
- Account
Name string - The name of the Batch account.
- Resource
Group stringName - 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 string - The name of the application. This must be unique within the account.
- Default
Version 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.
- Display
Name string - The display name for the application.
- account
Name String - The name of the Batch account.
- resource
Group StringName - The name of the resource group that contains the Batch account.
- allow
Updates Boolean - A value indicating whether packages within the application may be overwritten using the same version string.
- application
Name String - The name of the application. This must be unique within the account.
- default
Version 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.
- display
Name String - The display name for the application.
- account
Name string - The name of the Batch account.
- resource
Group stringName - The name of the resource group that contains the Batch account.
- allow
Updates boolean - A value indicating whether packages within the application may be overwritten using the same version string.
- application
Name string - The name of the application. This must be unique within the account.
- default
Version 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.
- display
Name string - The display name for the application.
- account_
name str - The name of the Batch account.
- resource_
group_ strname - 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.
- account
Name String - The name of the Batch account.
- resource
Group StringName - The name of the resource group that contains the Batch account.
- allow
Updates Boolean - A value indicating whether packages within the application may be overwritten using the same version string.
- application
Name String - The name of the application. This must be unique within the account.
- default
Version 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.
- display
Name 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:
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