Contains information about an application in a Batch account.
Uses Azure REST API version 2024-07-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01.
Other available API versions: 2023-05-01, 2023-11-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native batch [ApiVersion]. See the version guide for details.
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/v3"
"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 * 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",
});
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")
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,
tags: Optional[Mapping[str, 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",
Tags =
{
{ "string", "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"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var applicationResource = new com.pulumi.azurenative.batch.Application("applicationResource", com.pulumi.azurenative.batch.ApplicationArgs.builder()
.accountName("string")
.resourceGroupName("string")
.allowUpdates(false)
.applicationName("string")
.defaultVersion("string")
.displayName("string")
.tags(Map.of("string", "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",
tags={
"string": "string",
})
const applicationResource = new azure_native.batch.Application("applicationResource", {
accountName: "string",
resourceGroupName: "string",
allowUpdates: false,
applicationName: "string",
defaultVersion: "string",
displayName: "string",
tags: {
string: "string",
},
});
type: azure-native:batch:Application
properties:
accountName: string
allowUpdates: false
applicationName: string
defaultVersion: string
displayName: string
resourceGroupName: string
tags:
string: 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
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:
- Account
Name string - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- 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.
- Dictionary<string, string>
- The tags of the resource.
- Account
Name string - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- 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.
- map[string]string
- The tags of the resource.
- account
Name String - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- 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.
- Map<String,String>
- The tags of the resource.
- account
Name string - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- 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.
- {[key: string]: string}
- The tags of the resource.
- account_
name str - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- 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.
- Mapping[str, str]
- The tags of the resource.
- account
Name String - A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- 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.
- Map<String>
- The tags of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version 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
- System
Data Pulumi.Azure Native. Batch. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version 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
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version 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
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version 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
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version 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
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version 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
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified 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
