1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. automation
  6. RuntimeEnvironmentPackage

We recommend using Azure Native.

Viewing docs for Azure v6.35.0
published on Tuesday, Apr 21, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.35.0
published on Tuesday, Apr 21, 2026 by Pulumi

    Manages a Package within an Automation Runtime Environment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resource-group",
        location: "westeurope",
    });
    const exampleAccount = new azure.automation.Account("example", {
        name: "example-account",
        location: example.location,
        resourceGroupName: example.name,
        skuName: "Basic",
    });
    const exampleRuntimeEnvironment = new azure.automation.RuntimeEnvironment("example", {
        name: "example-runtime-env",
        automationAccountId: exampleAccount.id,
        runtimeLanguage: "PowerShell",
        runtimeVersion: "7.2",
        location: example.location,
    });
    const exampleRuntimeEnvironmentPackage = new azure.automation.RuntimeEnvironmentPackage("example", {
        name: "example-package",
        automationRuntimeEnvironmentId: exampleRuntimeEnvironment.id,
        contentUri: "https://www.powershellgallery.com/api/v2/package/example-package/1.0.0",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resource-group",
        location="westeurope")
    example_account = azure.automation.Account("example",
        name="example-account",
        location=example.location,
        resource_group_name=example.name,
        sku_name="Basic")
    example_runtime_environment = azure.automation.RuntimeEnvironment("example",
        name="example-runtime-env",
        automation_account_id=example_account.id,
        runtime_language="PowerShell",
        runtime_version="7.2",
        location=example.location)
    example_runtime_environment_package = azure.automation.RuntimeEnvironmentPackage("example",
        name="example-package",
        automation_runtime_environment_id=example_runtime_environment.id,
        content_uri="https://www.powershellgallery.com/api/v2/package/example-package/1.0.0")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resource-group"),
    			Location: pulumi.String("westeurope"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := automation.NewAccount(ctx, "example", &automation.AccountArgs{
    			Name:              pulumi.String("example-account"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			SkuName:           pulumi.String("Basic"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleRuntimeEnvironment, err := automation.NewRuntimeEnvironment(ctx, "example", &automation.RuntimeEnvironmentArgs{
    			Name:                pulumi.String("example-runtime-env"),
    			AutomationAccountId: exampleAccount.ID(),
    			RuntimeLanguage:     pulumi.String("PowerShell"),
    			RuntimeVersion:      pulumi.String("7.2"),
    			Location:            example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = automation.NewRuntimeEnvironmentPackage(ctx, "example", &automation.RuntimeEnvironmentPackageArgs{
    			Name:                           pulumi.String("example-package"),
    			AutomationRuntimeEnvironmentId: exampleRuntimeEnvironment.ID(),
    			ContentUri:                     pulumi.String("https://www.powershellgallery.com/api/v2/package/example-package/1.0.0"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resource-group",
            Location = "westeurope",
        });
    
        var exampleAccount = new Azure.Automation.Account("example", new()
        {
            Name = "example-account",
            Location = example.Location,
            ResourceGroupName = example.Name,
            SkuName = "Basic",
        });
    
        var exampleRuntimeEnvironment = new Azure.Automation.RuntimeEnvironment("example", new()
        {
            Name = "example-runtime-env",
            AutomationAccountId = exampleAccount.Id,
            RuntimeLanguage = "PowerShell",
            RuntimeVersion = "7.2",
            Location = example.Location,
        });
    
        var exampleRuntimeEnvironmentPackage = new Azure.Automation.RuntimeEnvironmentPackage("example", new()
        {
            Name = "example-package",
            AutomationRuntimeEnvironmentId = exampleRuntimeEnvironment.Id,
            ContentUri = "https://www.powershellgallery.com/api/v2/package/example-package/1.0.0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.automation.Account;
    import com.pulumi.azure.automation.AccountArgs;
    import com.pulumi.azure.automation.RuntimeEnvironment;
    import com.pulumi.azure.automation.RuntimeEnvironmentArgs;
    import com.pulumi.azure.automation.RuntimeEnvironmentPackage;
    import com.pulumi.azure.automation.RuntimeEnvironmentPackageArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resource-group")
                .location("westeurope")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("example-account")
                .location(example.location())
                .resourceGroupName(example.name())
                .skuName("Basic")
                .build());
    
            var exampleRuntimeEnvironment = new RuntimeEnvironment("exampleRuntimeEnvironment", RuntimeEnvironmentArgs.builder()
                .name("example-runtime-env")
                .automationAccountId(exampleAccount.id())
                .runtimeLanguage("PowerShell")
                .runtimeVersion("7.2")
                .location(example.location())
                .build());
    
            var exampleRuntimeEnvironmentPackage = new RuntimeEnvironmentPackage("exampleRuntimeEnvironmentPackage", RuntimeEnvironmentPackageArgs.builder()
                .name("example-package")
                .automationRuntimeEnvironmentId(exampleRuntimeEnvironment.id())
                .contentUri("https://www.powershellgallery.com/api/v2/package/example-package/1.0.0")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resource-group
          location: westeurope
      exampleAccount:
        type: azure:automation:Account
        name: example
        properties:
          name: example-account
          location: ${example.location}
          resourceGroupName: ${example.name}
          skuName: Basic
      exampleRuntimeEnvironment:
        type: azure:automation:RuntimeEnvironment
        name: example
        properties:
          name: example-runtime-env
          automationAccountId: ${exampleAccount.id}
          runtimeLanguage: PowerShell
          runtimeVersion: '7.2'
          location: ${example.location}
      exampleRuntimeEnvironmentPackage:
        type: azure:automation:RuntimeEnvironmentPackage
        name: example
        properties:
          name: example-package
          automationRuntimeEnvironmentId: ${exampleRuntimeEnvironment.id}
          contentUri: https://www.powershellgallery.com/api/v2/package/example-package/1.0.0
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.Automation - 2024-10-23

    Create RuntimeEnvironmentPackage Resource

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

    Constructor syntax

    new RuntimeEnvironmentPackage(name: string, args: RuntimeEnvironmentPackageArgs, opts?: CustomResourceOptions);
    @overload
    def RuntimeEnvironmentPackage(resource_name: str,
                                  args: RuntimeEnvironmentPackageArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def RuntimeEnvironmentPackage(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  automation_runtime_environment_id: Optional[str] = None,
                                  content_uri: Optional[str] = None,
                                  content_version: Optional[str] = None,
                                  hash_algorithm: Optional[str] = None,
                                  hash_value: Optional[str] = None,
                                  name: Optional[str] = None)
    func NewRuntimeEnvironmentPackage(ctx *Context, name string, args RuntimeEnvironmentPackageArgs, opts ...ResourceOption) (*RuntimeEnvironmentPackage, error)
    public RuntimeEnvironmentPackage(string name, RuntimeEnvironmentPackageArgs args, CustomResourceOptions? opts = null)
    public RuntimeEnvironmentPackage(String name, RuntimeEnvironmentPackageArgs args)
    public RuntimeEnvironmentPackage(String name, RuntimeEnvironmentPackageArgs args, CustomResourceOptions options)
    
    type: azure:automation:RuntimeEnvironmentPackage
    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 RuntimeEnvironmentPackageArgs
    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 RuntimeEnvironmentPackageArgs
    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 RuntimeEnvironmentPackageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuntimeEnvironmentPackageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuntimeEnvironmentPackageArgs
    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 runtimeEnvironmentPackageResource = new Azure.Automation.RuntimeEnvironmentPackage("runtimeEnvironmentPackageResource", new()
    {
        AutomationRuntimeEnvironmentId = "string",
        ContentUri = "string",
        ContentVersion = "string",
        HashAlgorithm = "string",
        HashValue = "string",
        Name = "string",
    });
    
    example, err := automation.NewRuntimeEnvironmentPackage(ctx, "runtimeEnvironmentPackageResource", &automation.RuntimeEnvironmentPackageArgs{
    	AutomationRuntimeEnvironmentId: pulumi.String("string"),
    	ContentUri:                     pulumi.String("string"),
    	ContentVersion:                 pulumi.String("string"),
    	HashAlgorithm:                  pulumi.String("string"),
    	HashValue:                      pulumi.String("string"),
    	Name:                           pulumi.String("string"),
    })
    
    var runtimeEnvironmentPackageResource = new RuntimeEnvironmentPackage("runtimeEnvironmentPackageResource", RuntimeEnvironmentPackageArgs.builder()
        .automationRuntimeEnvironmentId("string")
        .contentUri("string")
        .contentVersion("string")
        .hashAlgorithm("string")
        .hashValue("string")
        .name("string")
        .build());
    
    runtime_environment_package_resource = azure.automation.RuntimeEnvironmentPackage("runtimeEnvironmentPackageResource",
        automation_runtime_environment_id="string",
        content_uri="string",
        content_version="string",
        hash_algorithm="string",
        hash_value="string",
        name="string")
    
    const runtimeEnvironmentPackageResource = new azure.automation.RuntimeEnvironmentPackage("runtimeEnvironmentPackageResource", {
        automationRuntimeEnvironmentId: "string",
        contentUri: "string",
        contentVersion: "string",
        hashAlgorithm: "string",
        hashValue: "string",
        name: "string",
    });
    
    type: azure:automation:RuntimeEnvironmentPackage
    properties:
        automationRuntimeEnvironmentId: string
        contentUri: string
        contentVersion: string
        hashAlgorithm: string
        hashValue: string
        name: string
    

    RuntimeEnvironmentPackage 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 RuntimeEnvironmentPackage resource accepts the following input properties:

    AutomationRuntimeEnvironmentId string
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    ContentUri string
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    ContentVersion string

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    HashAlgorithm string

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    HashValue string

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    Name string
    The name of the package. Changing this forces a new resource to be created.
    AutomationRuntimeEnvironmentId string
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    ContentUri string
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    ContentVersion string

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    HashAlgorithm string

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    HashValue string

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    Name string
    The name of the package. Changing this forces a new resource to be created.
    automationRuntimeEnvironmentId String
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    contentUri String
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    contentVersion String

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    hashAlgorithm String

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hashValue String

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name String
    The name of the package. Changing this forces a new resource to be created.
    automationRuntimeEnvironmentId string
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    contentUri string
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    contentVersion string

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    hashAlgorithm string

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hashValue string

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name string
    The name of the package. Changing this forces a new resource to be created.
    automation_runtime_environment_id str
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    content_uri str
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    content_version str

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    hash_algorithm str

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hash_value str

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name str
    The name of the package. Changing this forces a new resource to be created.
    automationRuntimeEnvironmentId String
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    contentUri String
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    contentVersion String

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    hashAlgorithm String

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hashValue String

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name String
    The name of the package. Changing this forces a new resource to be created.

    Outputs

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

    Default bool
    Whether this is a default package.
    Id string
    The provider-assigned unique ID for this managed resource.
    SizeInBytes int
    The size of the package in bytes.
    Version string
    The version of the package as reported by the platform.
    Default bool
    Whether this is a default package.
    Id string
    The provider-assigned unique ID for this managed resource.
    SizeInBytes int
    The size of the package in bytes.
    Version string
    The version of the package as reported by the platform.
    default_ Boolean
    Whether this is a default package.
    id String
    The provider-assigned unique ID for this managed resource.
    sizeInBytes Integer
    The size of the package in bytes.
    version String
    The version of the package as reported by the platform.
    default boolean
    Whether this is a default package.
    id string
    The provider-assigned unique ID for this managed resource.
    sizeInBytes number
    The size of the package in bytes.
    version string
    The version of the package as reported by the platform.
    default bool
    Whether this is a default package.
    id str
    The provider-assigned unique ID for this managed resource.
    size_in_bytes int
    The size of the package in bytes.
    version str
    The version of the package as reported by the platform.
    default Boolean
    Whether this is a default package.
    id String
    The provider-assigned unique ID for this managed resource.
    sizeInBytes Number
    The size of the package in bytes.
    version String
    The version of the package as reported by the platform.

    Look up Existing RuntimeEnvironmentPackage Resource

    Get an existing RuntimeEnvironmentPackage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RuntimeEnvironmentPackageState, opts?: CustomResourceOptions): RuntimeEnvironmentPackage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            automation_runtime_environment_id: Optional[str] = None,
            content_uri: Optional[str] = None,
            content_version: Optional[str] = None,
            default: Optional[bool] = None,
            hash_algorithm: Optional[str] = None,
            hash_value: Optional[str] = None,
            name: Optional[str] = None,
            size_in_bytes: Optional[int] = None,
            version: Optional[str] = None) -> RuntimeEnvironmentPackage
    func GetRuntimeEnvironmentPackage(ctx *Context, name string, id IDInput, state *RuntimeEnvironmentPackageState, opts ...ResourceOption) (*RuntimeEnvironmentPackage, error)
    public static RuntimeEnvironmentPackage Get(string name, Input<string> id, RuntimeEnvironmentPackageState? state, CustomResourceOptions? opts = null)
    public static RuntimeEnvironmentPackage get(String name, Output<String> id, RuntimeEnvironmentPackageState state, CustomResourceOptions options)
    resources:  _:    type: azure:automation:RuntimeEnvironmentPackage    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutomationRuntimeEnvironmentId string
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    ContentUri string
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    ContentVersion string

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    Default bool
    Whether this is a default package.
    HashAlgorithm string

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    HashValue string

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    Name string
    The name of the package. Changing this forces a new resource to be created.
    SizeInBytes int
    The size of the package in bytes.
    Version string
    The version of the package as reported by the platform.
    AutomationRuntimeEnvironmentId string
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    ContentUri string
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    ContentVersion string

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    Default bool
    Whether this is a default package.
    HashAlgorithm string

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    HashValue string

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    Name string
    The name of the package. Changing this forces a new resource to be created.
    SizeInBytes int
    The size of the package in bytes.
    Version string
    The version of the package as reported by the platform.
    automationRuntimeEnvironmentId String
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    contentUri String
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    contentVersion String

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    default_ Boolean
    Whether this is a default package.
    hashAlgorithm String

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hashValue String

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name String
    The name of the package. Changing this forces a new resource to be created.
    sizeInBytes Integer
    The size of the package in bytes.
    version String
    The version of the package as reported by the platform.
    automationRuntimeEnvironmentId string
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    contentUri string
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    contentVersion string

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    default boolean
    Whether this is a default package.
    hashAlgorithm string

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hashValue string

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name string
    The name of the package. Changing this forces a new resource to be created.
    sizeInBytes number
    The size of the package in bytes.
    version string
    The version of the package as reported by the platform.
    automation_runtime_environment_id str
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    content_uri str
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    content_version str

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    default bool
    Whether this is a default package.
    hash_algorithm str

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hash_value str

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name str
    The name of the package. Changing this forces a new resource to be created.
    size_in_bytes int
    The size of the package in bytes.
    version str
    The version of the package as reported by the platform.
    automationRuntimeEnvironmentId String
    The ID of the Automation Runtime Environment in which to create this package. Changing this forces a new resource to be created.
    contentUri String
    The HTTPS URI of the package content. Changing this forces a new resource to be created.
    contentVersion String

    The version of the package content. Changing this forces a new resource to be created.

    Note: The contentVersion must be a version string with 2 to 4 segments (e.g. 1.0, 1.0.0, or 1.0.0.0).

    default Boolean
    Whether this is a default package.
    hashAlgorithm String

    The hash algorithm used to hash the content. Changing this forces a new resource to be created.

    Note: The argument hashAlgorithm is required when hashValue is specified.

    hashValue String

    The hash value of the content. Changing this forces a new resource to be created.

    Note: The argument hashValue is required when hashAlgorithm is specified.

    name String
    The name of the package. Changing this forces a new resource to be created.
    sizeInBytes Number
    The size of the package in bytes.
    version String
    The version of the package as reported by the platform.

    Import

    An Automation Runtime Environment Package can be imported using the resource id, e.g.

    $ pulumi import azure:automation/runtimeEnvironmentPackage:RuntimeEnvironmentPackage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Automation/automationAccounts/automationAccount1/runtimeEnvironments/runtimeEnvironment1/packages/package1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v6.35.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.