azure-native.automation.Package
Explore with Pulumi AI
Definition of the Package type. Azure REST API version: 2023-05-15-preview.
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 pulumi
import pulumi_azure_native as azure_native
package = azure_native.automation.Package("package",
automation_account_name="myAutomationAccount33",
content_link={
"content_hash": {
"algorithm": "sha265",
"value": "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A",
},
"uri": "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
},
package_name="OmsCompositeResources",
resource_group_name="rg",
runtime_environment_name="runtimeEnvironmentName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const _package = new azure_native.automation.Package("package", {
automationAccountName: "myAutomationAccount33",
contentLink: {
contentHash: {
algorithm: "sha265",
value: "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A",
},
uri: "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
},
packageName: "OmsCompositeResources",
resourceGroupName: "rg",
runtimeEnvironmentName: "runtimeEnvironmentName",
});
resources:
package:
type: azure-native:automation:Package
properties:
automationAccountName: myAutomationAccount33
contentLink:
contentHash:
algorithm: sha265
value: 07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A
uri: https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip
packageName: OmsCompositeResources
resourceGroupName: rg
runtimeEnvironmentName: runtimeEnvironmentName
Create Package Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Package(name: string, args: PackageArgs, opts?: CustomResourceOptions);
@overload
def Package(resource_name: str,
args: PackageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Package(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
content_link: Optional[ContentLinkArgs] = None,
resource_group_name: Optional[str] = None,
runtime_environment_name: Optional[str] = None,
all_of: Optional[TrackedResourceArgs] = None,
package_name: Optional[str] = None)
func NewPackage(ctx *Context, name string, args PackageArgs, opts ...ResourceOption) (*Package, error)
public Package(string name, PackageArgs args, CustomResourceOptions? opts = null)
public Package(String name, PackageArgs args)
public Package(String name, PackageArgs args, CustomResourceOptions options)
type: azure-native:automation:Package
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 PackageArgs
- 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 PackageArgs
- 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 PackageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PackageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PackageArgs
- 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 packageResource = new AzureNative.Automation.Package("packageResource", new()
{
AutomationAccountName = "string",
ContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
{
ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
{
Algorithm = "string",
Value = "string",
},
Uri = "string",
Version = "string",
},
ResourceGroupName = "string",
RuntimeEnvironmentName = "string",
AllOf = new AzureNative.Automation.Inputs.TrackedResourceArgs
{
Location = "string",
Tags =
{
{ "string", "string" },
},
},
PackageName = "string",
});
example, err := automation.NewPackage(ctx, "packageResource", &automation.PackageArgs{
AutomationAccountName: pulumi.String("string"),
ContentLink: &automation.ContentLinkArgs{
ContentHash: &automation.ContentHashArgs{
Algorithm: pulumi.String("string"),
Value: pulumi.String("string"),
},
Uri: pulumi.String("string"),
Version: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
RuntimeEnvironmentName: pulumi.String("string"),
AllOf: &automation.TrackedResourceArgs{
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
PackageName: pulumi.String("string"),
})
var packageResource = new Package("packageResource", PackageArgs.builder()
.automationAccountName("string")
.contentLink(ContentLinkArgs.builder()
.contentHash(ContentHashArgs.builder()
.algorithm("string")
.value("string")
.build())
.uri("string")
.version("string")
.build())
.resourceGroupName("string")
.runtimeEnvironmentName("string")
.allOf(TrackedResourceArgs.builder()
.location("string")
.tags(Map.of("string", "string"))
.build())
.packageName("string")
.build());
package_resource = azure_native.automation.Package("packageResource",
automation_account_name="string",
content_link={
"contentHash": {
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
resource_group_name="string",
runtime_environment_name="string",
all_of={
"location": "string",
"tags": {
"string": "string",
},
},
package_name="string")
const packageResource = new azure_native.automation.Package("packageResource", {
automationAccountName: "string",
contentLink: {
contentHash: {
algorithm: "string",
value: "string",
},
uri: "string",
version: "string",
},
resourceGroupName: "string",
runtimeEnvironmentName: "string",
allOf: {
location: "string",
tags: {
string: "string",
},
},
packageName: "string",
});
type: azure-native:automation:Package
properties:
allOf:
location: string
tags:
string: string
automationAccountName: string
contentLink:
contentHash:
algorithm: string
value: string
uri: string
version: string
packageName: string
resourceGroupName: string
runtimeEnvironmentName: string
Package 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 Package resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account.
- Content
Link Pulumi.Azure Native. Automation. Inputs. Content Link - Gets or sets the package content link.
- Resource
Group stringName - Name of an Azure Resource group.
- Runtime
Environment stringName - The name of the Runtime Environment.
- All
Of Pulumi.Azure Native. Automation. Inputs. Tracked Resource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- Package
Name string - The name of Package.
- Automation
Account stringName - The name of the automation account.
- Content
Link ContentLink Args - Gets or sets the package content link.
- Resource
Group stringName - Name of an Azure Resource group.
- Runtime
Environment stringName - The name of the Runtime Environment.
- All
Of TrackedResource Args - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- Package
Name string - The name of Package.
- automation
Account StringName - The name of the automation account.
- content
Link ContentLink - Gets or sets the package content link.
- resource
Group StringName - Name of an Azure Resource group.
- runtime
Environment StringName - The name of the Runtime Environment.
- all
Of TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package
Name String - The name of Package.
- automation
Account stringName - The name of the automation account.
- content
Link ContentLink - Gets or sets the package content link.
- resource
Group stringName - Name of an Azure Resource group.
- runtime
Environment stringName - The name of the Runtime Environment.
- all
Of TrackedResource - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package
Name string - The name of Package.
- automation_
account_ strname - The name of the automation account.
- content_
link ContentLink Args - Gets or sets the package content link.
- resource_
group_ strname - Name of an Azure Resource group.
- runtime_
environment_ strname - The name of the Runtime Environment.
- all_
of TrackedResource Args - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package_
name str - The name of Package.
- automation
Account StringName - The name of the automation account.
- content
Link Property Map - Gets or sets the package content link.
- resource
Group StringName - Name of an Azure Resource group.
- runtime
Environment StringName - The name of the Runtime Environment.
- all
Of Property Map - The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
- package
Name String - The name of Package.
Outputs
All input properties are implicitly available as output properties. Additionally, the Package resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Provisioning
State string - Gets or sets the provisioning state of the Package.
- System
Data Pulumi.Azure Native. Automation. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Default bool
- Gets or sets the isGlobal flag of the package.
- Error
Pulumi.
Azure Native. Automation. Outputs. Package Error Info Response - Gets or sets the error info of the Package.
- Size
In doubleBytes - Gets or sets the size in bytes of the Package.
- Dictionary<string, string>
- Resource tags.
- Version string
- Gets or sets the version of the Package.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Provisioning
State string - Gets or sets the provisioning state of the Package.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Default bool
- Gets or sets the isGlobal flag of the package.
- Error
Package
Error Info Response - Gets or sets the error info of the Package.
- Size
In float64Bytes - Gets or sets the size in bytes of the Package.
- map[string]string
- Resource tags.
- Version string
- Gets or sets the version of the Package.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- provisioning
State String - Gets or sets the provisioning state of the Package.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default_ Boolean
- Gets or sets the isGlobal flag of the package.
- error
Package
Error Info Response - Gets or sets the error info of the Package.
- size
In DoubleBytes - Gets or sets the size in bytes of the Package.
- Map<String,String>
- Resource tags.
- version String
- Gets or sets the version of the Package.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- provisioning
State string - Gets or sets the provisioning state of the Package.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default boolean
- Gets or sets the isGlobal flag of the package.
- error
Package
Error Info Response - Gets or sets the error info of the Package.
- size
In numberBytes - Gets or sets the size in bytes of the Package.
- {[key: string]: string}
- Resource tags.
- version string
- Gets or sets the version of the Package.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- provisioning_
state str - Gets or sets the provisioning state of the Package.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default bool
- Gets or sets the isGlobal flag of the package.
- error
Package
Error Info Response - Gets or sets the error info of the Package.
- size_
in_ floatbytes - Gets or sets the size in bytes of the Package.
- Mapping[str, str]
- Resource tags.
- version str
- Gets or sets the version of the Package.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- provisioning
State String - Gets or sets the provisioning state of the Package.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- default Boolean
- Gets or sets the isGlobal flag of the package.
- error Property Map
- Gets or sets the error info of the Package.
- size
In NumberBytes - Gets or sets the size in bytes of the Package.
- Map<String>
- Resource tags.
- version String
- Gets or sets the version of the Package.
Supporting Types
ContentHash, ContentHashArgs
ContentHashResponse, ContentHashResponseArgs
ContentLink, ContentLinkArgs
- Content
Hash Pulumi.Azure Native. Automation. Inputs. Content Hash - Gets or sets the hash.
- Uri string
- Gets or sets the uri of the runbook content.
- Version string
- Gets or sets the version of the content.
- Content
Hash ContentHash - Gets or sets the hash.
- Uri string
- Gets or sets the uri of the runbook content.
- Version string
- Gets or sets the version of the content.
- content
Hash ContentHash - Gets or sets the hash.
- uri String
- Gets or sets the uri of the runbook content.
- version String
- Gets or sets the version of the content.
- content
Hash ContentHash - Gets or sets the hash.
- uri string
- Gets or sets the uri of the runbook content.
- version string
- Gets or sets the version of the content.
- content_
hash ContentHash - Gets or sets the hash.
- uri str
- Gets or sets the uri of the runbook content.
- version str
- Gets or sets the version of the content.
- content
Hash Property Map - Gets or sets the hash.
- uri String
- Gets or sets the uri of the runbook content.
- version String
- Gets or sets the version of the content.
ContentLinkResponse, ContentLinkResponseArgs
- Content
Hash Pulumi.Azure Native. Automation. Inputs. Content Hash Response - Gets or sets the hash.
- Uri string
- Gets or sets the uri of the runbook content.
- Version string
- Gets or sets the version of the content.
- Content
Hash ContentHash Response - Gets or sets the hash.
- Uri string
- Gets or sets the uri of the runbook content.
- Version string
- Gets or sets the version of the content.
- content
Hash ContentHash Response - Gets or sets the hash.
- uri String
- Gets or sets the uri of the runbook content.
- version String
- Gets or sets the version of the content.
- content
Hash ContentHash Response - Gets or sets the hash.
- uri string
- Gets or sets the uri of the runbook content.
- version string
- Gets or sets the version of the content.
- content_
hash ContentHash Response - Gets or sets the hash.
- uri str
- Gets or sets the uri of the runbook content.
- version str
- Gets or sets the version of the content.
- content
Hash Property Map - Gets or sets the hash.
- uri String
- Gets or sets the uri of the runbook content.
- version String
- Gets or sets the version of the content.
PackageErrorInfoResponse, PackageErrorInfoResponseArgs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
TrackedResource, TrackedResourceArgs
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0