ApplicationPackage

class ApplicationPackage : KotlinCustomResource

An application package which represents a particular version of an application. 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/#accessing-any-api-version-via-local-packages for details.

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",
});
});
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.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
})
}
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());
}
}

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val etag: Output<String>

The ETag of the resource, used for concurrency statements.

Link copied to clipboard
val format: Output<String>

The format of the application package, if the package is active.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The time at which the package was last activated, if the package is active.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

The current state of the application package.

Link copied to clipboard
val storageUrl: Output<String>

The URL for the application package in Azure Storage.

Link copied to clipboard

The UTC time at which the Azure Storage URL will expire.

Link copied to clipboard
val tags: Output<Map<String, String>>?

The tags of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>