azure-native.batch.ApplicationPackage
Explore with Pulumi AI
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:
- Account
Name string - The name of the Batch account.
- Application
Name string - The name of the application. This must be unique within the account.
- Resource
Group stringName - The name of the resource group that contains the Batch account.
- Version
Name string - The version of the application.
- Account
Name string - The name of the Batch account.
- Application
Name string - The name of the application. This must be unique within the account.
- Resource
Group stringName - The name of the resource group that contains the Batch account.
- Version
Name string - The version of the application.
- account
Name String - The name of the Batch account.
- application
Name String - The name of the application. This must be unique within the account.
- resource
Group StringName - The name of the resource group that contains the Batch account.
- version
Name String - The version of the application.
- account
Name string - The name of the Batch account.
- application
Name string - The name of the application. This must be unique within the account.
- resource
Group stringName - The name of the resource group that contains the Batch account.
- version
Name 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_ strname - The name of the resource group that contains the Batch account.
- version_
name str - The version of the application.
- account
Name String - The name of the Batch account.
- application
Name String - The name of the application. This must be unique within the account.
- resource
Group StringName - The name of the resource group that contains the Batch account.
- version
Name 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.
- Last
Activation stringTime - 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.
- Storage
Url string - The URL for the application package in Azure Storage.
- Storage
Url stringExpiry - 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.
- Last
Activation stringTime - 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.
- Storage
Url string - The URL for the application package in Azure Storage.
- Storage
Url stringExpiry - 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.
- last
Activation StringTime - 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.
- storage
Url String - The URL for the application package in Azure Storage.
- storage
Url StringExpiry - 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.
- last
Activation stringTime - 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.
- storage
Url string - The URL for the application package in Azure Storage.
- storage
Url stringExpiry - 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_ strtime - 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_ strexpiry - 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.
- last
Activation StringTime - 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.
- storage
Url String - The URL for the application package in Azure Storage.
- storage
Url StringExpiry - 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