Package

class Package : KotlinCustomResource

Definition of the Package type. Uses Azure REST API version 2023-05-15-preview. Other available API versions: 2024-10-23.

Example Usage

Create or update a package

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var package = new AzureNative.Automation.Package("package", new()
{
AutomationAccountName = "myAutomationAccount33",
ContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
{
ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
{
Algorithm = "sha265",
Value = "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A",
},
Uri = "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
},
PackageName = "OmsCompositeResources",
ResourceGroupName = "rg",
RuntimeEnvironmentName = "runtimeEnvironmentName",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewPackage(ctx, "package", &automation.PackageArgs{
AutomationAccountName: pulumi.String("myAutomationAccount33"),
ContentLink: &automation.ContentLinkArgs{
ContentHash: &automation.ContentHashArgs{
Algorithm: pulumi.String("sha265"),
Value: pulumi.String("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A"),
},
Uri: pulumi.String("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"),
},
PackageName: pulumi.String("OmsCompositeResources"),
ResourceGroupName: pulumi.String("rg"),
RuntimeEnvironmentName: pulumi.String("runtimeEnvironmentName"),
})
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.automation.Package;
import com.pulumi.azurenative.automation.PackageArgs;
import com.pulumi.azurenative.automation.inputs.ContentLinkArgs;
import com.pulumi.azurenative.automation.inputs.ContentHashArgs;
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 package_ = new Package("package", PackageArgs.builder()
.automationAccountName("myAutomationAccount33")
.contentLink(ContentLinkArgs.builder()
.contentHash(ContentHashArgs.builder()
.algorithm("sha265")
.value("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A")
.build())
.uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip")
.build())
.packageName("OmsCompositeResources")
.resourceGroupName("rg")
.runtimeEnvironmentName("runtimeEnvironmentName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:automation:Package OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runtimeEnvironments/{runtimeEnvironmentName}/packages/{packageName}

Properties

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard

Gets or sets the contentLink of the Package.

Link copied to clipboard
val default: Output<Boolean>?

Gets or sets the isGlobal flag of the package.

Link copied to clipboard

Gets or sets the error info of the Package.

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Gets or sets the provisioning state of the Package.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sizeInBytes: Output<Double>?

Gets or sets the size in bytes of the Package.

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>?

Gets or sets the version of the Package.