1. Packages
  2. Azure Native v2
  3. API Docs
  4. batch
  5. ApplicationPackage
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.ApplicationPackage

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

An application package which represents a particular version of an application. 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

ApplicationPackageCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var applicationPackage = new AzureNative.Batch.ApplicationPackage("applicationPackage", new()
    {
        AccountName = "sampleacct",
        ApplicationName = "app1",
        ResourceGroupName = "default-azurebatch-japaneast",
        VersionName = "1",
    });

});
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.NewApplicationPackage(ctx, "applicationPackage", &batch.ApplicationPackageArgs{
			AccountName:       pulumi.String("sampleacct"),
			ApplicationName:   pulumi.String("app1"),
			ResourceGroupName: pulumi.String("default-azurebatch-japaneast"),
			VersionName:       pulumi.String("1"),
		})
		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.ApplicationPackage;
import com.pulumi.azurenative.batch.ApplicationPackageArgs;
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 applicationPackage = new ApplicationPackage("applicationPackage", ApplicationPackageArgs.builder()
            .accountName("sampleacct")
            .applicationName("app1")
            .resourceGroupName("default-azurebatch-japaneast")
            .versionName("1")
            .build());

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

const applicationPackage = new azure_native.batch.ApplicationPackage("applicationPackage", {
    accountName: "sampleacct",
    applicationName: "app1",
    resourceGroupName: "default-azurebatch-japaneast",
    versionName: "1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

application_package = azure_native.batch.ApplicationPackage("applicationPackage",
    account_name="sampleacct",
    application_name="app1",
    resource_group_name="default-azurebatch-japaneast",
    version_name="1")
Copy
resources:
  applicationPackage:
    type: azure-native:batch:ApplicationPackage
    properties:
      accountName: sampleacct
      applicationName: app1
      resourceGroupName: default-azurebatch-japaneast
      versionName: '1'
Copy

Create ApplicationPackage Resource

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

Constructor syntax

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

@overload
def ApplicationPackage(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       account_name: Optional[str] = None,
                       application_name: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       version_name: Optional[str] = None)
func NewApplicationPackage(ctx *Context, name string, args ApplicationPackageArgs, opts ...ResourceOption) (*ApplicationPackage, error)
public ApplicationPackage(string name, ApplicationPackageArgs args, CustomResourceOptions? opts = null)
public ApplicationPackage(String name, ApplicationPackageArgs args)
public ApplicationPackage(String name, ApplicationPackageArgs args, CustomResourceOptions options)
type: azure-native:batch:ApplicationPackage
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. ApplicationPackageArgs
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. ApplicationPackageArgs
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. ApplicationPackageArgs
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. ApplicationPackageArgs
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. ApplicationPackageArgs
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 applicationPackageResource = new AzureNative.Batch.ApplicationPackage("applicationPackageResource", new()
{
    AccountName = "string",
    ApplicationName = "string",
    ResourceGroupName = "string",
    VersionName = "string",
});
Copy
example, err := batch.NewApplicationPackage(ctx, "applicationPackageResource", &batch.ApplicationPackageArgs{
	AccountName:       "string",
	ApplicationName:   "string",
	ResourceGroupName: "string",
	VersionName:       "string",
})
Copy
var applicationPackageResource = new ApplicationPackage("applicationPackageResource", ApplicationPackageArgs.builder()
    .accountName("string")
    .applicationName("string")
    .resourceGroupName("string")
    .versionName("string")
    .build());
Copy
application_package_resource = azure_native.batch.ApplicationPackage("applicationPackageResource",
    account_name=string,
    application_name=string,
    resource_group_name=string,
    version_name=string)
Copy
const applicationPackageResource = new azure_native.batch.ApplicationPackage("applicationPackageResource", {
    accountName: "string",
    applicationName: "string",
    resourceGroupName: "string",
    versionName: "string",
});
Copy
type: azure-native:batch:ApplicationPackage
properties:
    accountName: string
    applicationName: string
    resourceGroupName: string
    versionName: string
Copy

ApplicationPackage 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 ApplicationPackage 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.
ApplicationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the application. This must be unique within the 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.
VersionName Changes to this property will trigger replacement. string
The version of the application.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Batch account.
ApplicationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the application. This must be unique within the 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.
VersionName Changes to this property will trigger replacement. string
The version of the application.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Batch account.
applicationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the application. This must be unique within the 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.
versionName Changes to this property will trigger replacement. String
The version of the application.
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Batch account.
applicationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the application. This must be unique within the 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.
versionName Changes to this property will trigger replacement. string
The version of the application.
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Batch account.
application_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the application. This must be unique within the 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.
version_name Changes to this property will trigger replacement. str
The version of the application.
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Batch account.
applicationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the application. This must be unique within the 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.
versionName Changes to this property will trigger replacement. String
The version of the application.

Outputs

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

Etag string
The ETag of the resource, used for concurrency statements.
Format string
The format of the application package, if the package is active.
Id string
The provider-assigned unique ID for this managed resource.
LastActivationTime string
The time at which the package was last activated, if the package is active.
Name string
The name of the resource.
State string
The current state of the application package.
StorageUrl string
The URL for the application package in Azure Storage.
StorageUrlExpiry string
The UTC time at which the Azure Storage URL will expire.
Type string
The type of the resource.
Etag string
The ETag of the resource, used for concurrency statements.
Format string
The format of the application package, if the package is active.
Id string
The provider-assigned unique ID for this managed resource.
LastActivationTime string
The time at which the package was last activated, if the package is active.
Name string
The name of the resource.
State string
The current state of the application package.
StorageUrl string
The URL for the application package in Azure Storage.
StorageUrlExpiry string
The UTC time at which the Azure Storage URL will expire.
Type string
The type of the resource.
etag String
The ETag of the resource, used for concurrency statements.
format String
The format of the application package, if the package is active.
id String
The provider-assigned unique ID for this managed resource.
lastActivationTime String
The time at which the package was last activated, if the package is active.
name String
The name of the resource.
state String
The current state of the application package.
storageUrl String
The URL for the application package in Azure Storage.
storageUrlExpiry String
The UTC time at which the Azure Storage URL will expire.
type String
The type of the resource.
etag string
The ETag of the resource, used for concurrency statements.
format string
The format of the application package, if the package is active.
id string
The provider-assigned unique ID for this managed resource.
lastActivationTime string
The time at which the package was last activated, if the package is active.
name string
The name of the resource.
state string
The current state of the application package.
storageUrl string
The URL for the application package in Azure Storage.
storageUrlExpiry string
The UTC time at which the Azure Storage URL will expire.
type string
The type of the resource.
etag str
The ETag of the resource, used for concurrency statements.
format str
The format of the application package, if the package is active.
id str
The provider-assigned unique ID for this managed resource.
last_activation_time str
The time at which the package was last activated, if the package is active.
name str
The name of the resource.
state str
The current state of the application package.
storage_url str
The URL for the application package in Azure Storage.
storage_url_expiry str
The UTC time at which the Azure Storage URL will expire.
type str
The type of the resource.
etag String
The ETag of the resource, used for concurrency statements.
format String
The format of the application package, if the package is active.
id String
The provider-assigned unique ID for this managed resource.
lastActivationTime String
The time at which the package was last activated, if the package is active.
name String
The name of the resource.
state String
The current state of the application package.
storageUrl String
The URL for the application package in Azure Storage.
storageUrlExpiry String
The UTC time at which the Azure Storage URL will expire.
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:ApplicationPackage 1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName} 
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