1. Packages
  2. Azure Native v1
  3. API Docs
  4. batch
  5. ApplicationPackage
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.batch.ApplicationPackage

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    An application package which represents a particular version of an application. API Version: 2021-01-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",
        });
    
    });
    
    package main
    
    import (
    	batch "github.com/pulumi/pulumi-azure-native-sdk/batch"
    	"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 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")
    
    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",
    });
    
    resources:
      applicationPackage:
        type: azure-native:batch:ApplicationPackage
        properties:
          accountName: sampleacct
          applicationName: app1
          resourceGroupName: default-azurebatch-japaneast
          versionName: '1'
    

    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 string
    The unique name of the resource.
    args ApplicationPackageArgs
    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 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 string
    The unique name of the resource.
    args ApplicationPackageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplicationPackageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
    });
    
    example, err := batch.NewApplicationPackage(ctx, "applicationPackageResource", &batch.ApplicationPackageArgs{
    	AccountName:       "string",
    	ApplicationName:   "string",
    	ResourceGroupName: "string",
    	VersionName:       "string",
    })
    
    var applicationPackageResource = new ApplicationPackage("applicationPackageResource", ApplicationPackageArgs.builder()
        .accountName("string")
        .applicationName("string")
        .resourceGroupName("string")
        .versionName("string")
        .build());
    
    application_package_resource = azure_native.batch.ApplicationPackage("applicationPackageResource",
        account_name=string,
        application_name=string,
        resource_group_name=string,
        version_name=string)
    
    const applicationPackageResource = new azure_native.batch.ApplicationPackage("applicationPackageResource", {
        accountName: "string",
        applicationName: "string",
        resourceGroupName: "string",
        versionName: "string",
    });
    
    type: azure-native:batch:ApplicationPackage
    properties:
        accountName: string
        applicationName: string
        resourceGroupName: string
        versionName: string
    

    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

    The ApplicationPackage resource accepts the following input properties:

    AccountName string
    The name of the Batch account.
    ApplicationName string
    The name of the application. This must be unique within the account.
    ResourceGroupName string
    The name of the resource group that contains the Batch account.
    VersionName string
    The version of the application.
    AccountName string
    The name of the Batch account.
    ApplicationName string
    The name of the application. This must be unique within the account.
    ResourceGroupName string
    The name of the resource group that contains the Batch account.
    VersionName string
    The version of the application.
    accountName String
    The name of the Batch account.
    applicationName String
    The name of the application. This must be unique within the account.
    resourceGroupName String
    The name of the resource group that contains the Batch account.
    versionName String
    The version of the application.
    accountName string
    The name of the Batch account.
    applicationName string
    The name of the application. This must be unique within the account.
    resourceGroupName string
    The name of the resource group that contains the Batch account.
    versionName string
    The version of the application.
    account_name str
    The name of the Batch account.
    application_name str
    The name of the application. This must be unique within the account.
    resource_group_name str
    The name of the resource group that contains the Batch account.
    version_name str
    The version of the application.
    accountName String
    The name of the Batch account.
    applicationName String
    The name of the application. This must be unique within the account.
    resourceGroupName String
    The name of the resource group that contains the Batch account.
    versionName 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/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/applications/app1/versions/1 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi