1. Packages
  2. Azure Native
  3. API Docs
  4. automation
  5. PowerShell72Module
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

azure-native.automation.PowerShell72Module

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

    Definition of the module type. Azure REST API version: 2023-11-01.

    Example Usage

    Create or update a module

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var powerShell72Module = new AzureNative.Automation.PowerShell72Module("powerShell72Module", new()
        {
            AutomationAccountName = "myAutomationAccount33",
            ContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
            {
                ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
                {
                    Algorithm = "sha265",
                    Value = "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B",
                },
                Uri = "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
                Version = "1.0.0.0",
            },
            ModuleName = "OmsCompositeResources",
            ResourceGroupName = "rg",
        });
    
    });
    
    package main
    
    import (
    	"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.NewPowerShell72Module(ctx, "powerShell72Module", &automation.PowerShell72ModuleArgs{
    			AutomationAccountName: pulumi.String("myAutomationAccount33"),
    			ContentLink: &automation.ContentLinkArgs{
    				ContentHash: &automation.ContentHashArgs{
    					Algorithm: pulumi.String("sha265"),
    					Value:     pulumi.String("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B"),
    				},
    				Uri:     pulumi.String("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"),
    				Version: pulumi.String("1.0.0.0"),
    			},
    			ModuleName:        pulumi.String("OmsCompositeResources"),
    			ResourceGroupName: pulumi.String("rg"),
    		})
    		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.PowerShell72Module;
    import com.pulumi.azurenative.automation.PowerShell72ModuleArgs;
    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 powerShell72Module = new PowerShell72Module("powerShell72Module", PowerShell72ModuleArgs.builder()        
                .automationAccountName("myAutomationAccount33")
                .contentLink(ContentLinkArgs.builder()
                    .contentHash(ContentHashArgs.builder()
                        .algorithm("sha265")
                        .value("07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B")
                        .build())
                    .uri("https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip")
                    .version("1.0.0.0")
                    .build())
                .moduleName("OmsCompositeResources")
                .resourceGroupName("rg")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    power_shell72_module = azure_native.automation.PowerShell72Module("powerShell72Module",
        automation_account_name="myAutomationAccount33",
        content_link=azure_native.automation.ContentLinkArgs(
            content_hash=azure_native.automation.ContentHashArgs(
                algorithm="sha265",
                value="07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B",
            ),
            uri="https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
            version="1.0.0.0",
        ),
        module_name="OmsCompositeResources",
        resource_group_name="rg")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const powerShell72Module = new azure_native.automation.PowerShell72Module("powerShell72Module", {
        automationAccountName: "myAutomationAccount33",
        contentLink: {
            contentHash: {
                algorithm: "sha265",
                value: "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B",
            },
            uri: "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip",
            version: "1.0.0.0",
        },
        moduleName: "OmsCompositeResources",
        resourceGroupName: "rg",
    });
    
    resources:
      powerShell72Module:
        type: azure-native:automation:PowerShell72Module
        properties:
          automationAccountName: myAutomationAccount33
          contentLink:
            contentHash:
              algorithm: sha265
              value: 07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87B
            uri: https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip
            version: 1.0.0.0
          moduleName: OmsCompositeResources
          resourceGroupName: rg
    

    Create PowerShell72Module Resource

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

    Constructor syntax

    new PowerShell72Module(name: string, args: PowerShell72ModuleArgs, opts?: CustomResourceOptions);
    @overload
    def PowerShell72Module(resource_name: str,
                           args: PowerShell72ModuleArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def PowerShell72Module(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           automation_account_name: Optional[str] = None,
                           content_link: Optional[ContentLinkArgs] = None,
                           resource_group_name: Optional[str] = None,
                           location: Optional[str] = None,
                           module_name: Optional[str] = None,
                           name: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None)
    func NewPowerShell72Module(ctx *Context, name string, args PowerShell72ModuleArgs, opts ...ResourceOption) (*PowerShell72Module, error)
    public PowerShell72Module(string name, PowerShell72ModuleArgs args, CustomResourceOptions? opts = null)
    public PowerShell72Module(String name, PowerShell72ModuleArgs args)
    public PowerShell72Module(String name, PowerShell72ModuleArgs args, CustomResourceOptions options)
    
    type: azure-native:automation:PowerShell72Module
    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 PowerShell72ModuleArgs
    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 PowerShell72ModuleArgs
    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 PowerShell72ModuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PowerShell72ModuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PowerShell72ModuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var powerShell72ModuleResource = new AzureNative.Automation.PowerShell72Module("powerShell72ModuleResource", 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",
        Location = "string",
        ModuleName = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := automation.NewPowerShell72Module(ctx, "powerShell72ModuleResource", &automation.PowerShell72ModuleArgs{
    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"),
    Location: pulumi.String("string"),
    ModuleName: pulumi.String("string"),
    Name: pulumi.String("string"),
    Tags: pulumi.StringMap{
    "string": pulumi.String("string"),
    },
    })
    
    var powerShell72ModuleResource = new PowerShell72Module("powerShell72ModuleResource", PowerShell72ModuleArgs.builder()        
        .automationAccountName("string")
        .contentLink(ContentLinkArgs.builder()
            .contentHash(ContentHashArgs.builder()
                .algorithm("string")
                .value("string")
                .build())
            .uri("string")
            .version("string")
            .build())
        .resourceGroupName("string")
        .location("string")
        .moduleName("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    power_shell72_module_resource = azure_native.automation.PowerShell72Module("powerShell72ModuleResource",
        automation_account_name="string",
        content_link=azure_native.automation.ContentLinkArgs(
            content_hash=azure_native.automation.ContentHashArgs(
                algorithm="string",
                value="string",
            ),
            uri="string",
            version="string",
        ),
        resource_group_name="string",
        location="string",
        module_name="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const powerShell72ModuleResource = new azure_native.automation.PowerShell72Module("powerShell72ModuleResource", {
        automationAccountName: "string",
        contentLink: {
            contentHash: {
                algorithm: "string",
                value: "string",
            },
            uri: "string",
            version: "string",
        },
        resourceGroupName: "string",
        location: "string",
        moduleName: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:automation:PowerShell72Module
    properties:
        automationAccountName: string
        contentLink:
            contentHash:
                algorithm: string
                value: string
            uri: string
            version: string
        location: string
        moduleName: string
        name: string
        resourceGroupName: string
        tags:
            string: string
    

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

    AutomationAccountName string
    The name of the automation account.
    ContentLink Pulumi.AzureNative.Automation.Inputs.ContentLink
    Sets the hash.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    Sets the location of the resource.
    ModuleName string
    The name of module.
    Name string
    Sets name of the resource.
    Tags Dictionary<string, string>
    Sets the tags attached to the resource.
    AutomationAccountName string
    The name of the automation account.
    ContentLink ContentLinkArgs
    Sets the hash.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Location string
    Sets the location of the resource.
    ModuleName string
    The name of module.
    Name string
    Sets name of the resource.
    Tags map[string]string
    Sets the tags attached to the resource.
    automationAccountName String
    The name of the automation account.
    contentLink ContentLink
    Sets the hash.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    Sets the location of the resource.
    moduleName String
    The name of module.
    name String
    Sets name of the resource.
    tags Map<String,String>
    Sets the tags attached to the resource.
    automationAccountName string
    The name of the automation account.
    contentLink ContentLink
    Sets the hash.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    location string
    Sets the location of the resource.
    moduleName string
    The name of module.
    name string
    Sets name of the resource.
    tags {[key: string]: string}
    Sets the tags attached to the resource.
    automation_account_name str
    The name of the automation account.
    content_link ContentLinkArgs
    Sets the hash.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    location str
    Sets the location of the resource.
    module_name str
    The name of module.
    name str
    Sets name of the resource.
    tags Mapping[str, str]
    Sets the tags attached to the resource.
    automationAccountName String
    The name of the automation account.
    contentLink Property Map
    Sets the hash.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    location String
    Sets the location of the resource.
    moduleName String
    The name of module.
    name String
    Sets name of the resource.
    tags Map<String>
    Sets the tags attached to the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The type of the resource.
    ActivityCount int
    Gets the activity count of the module.
    CreationTime string
    Gets the creation time.
    Description string
    Gets or sets the description.
    Error Pulumi.AzureNative.Automation.Outputs.ModuleErrorInfoResponse
    Gets the error info of the module.
    Etag string
    Gets the etag of the resource.
    IsComposite bool
    Gets type of module, if its composite or not.
    IsGlobal bool
    Gets the isGlobal flag of the module.
    LastModifiedTime string
    Gets the last modified time.
    ProvisioningState string
    Gets the provisioning state of the module.
    SizeInBytes double
    Gets the size in bytes of the module.
    Version string
    Gets the version of the module.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    The type of the resource.
    ActivityCount int
    Gets the activity count of the module.
    CreationTime string
    Gets the creation time.
    Description string
    Gets or sets the description.
    Error ModuleErrorInfoResponse
    Gets the error info of the module.
    Etag string
    Gets the etag of the resource.
    IsComposite bool
    Gets type of module, if its composite or not.
    IsGlobal bool
    Gets the isGlobal flag of the module.
    LastModifiedTime string
    Gets the last modified time.
    ProvisioningState string
    Gets the provisioning state of the module.
    SizeInBytes float64
    Gets the size in bytes of the module.
    Version string
    Gets the version of the module.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The type of the resource.
    activityCount Integer
    Gets the activity count of the module.
    creationTime String
    Gets the creation time.
    description String
    Gets or sets the description.
    error ModuleErrorInfoResponse
    Gets the error info of the module.
    etag String
    Gets the etag of the resource.
    isComposite Boolean
    Gets type of module, if its composite or not.
    isGlobal Boolean
    Gets the isGlobal flag of the module.
    lastModifiedTime String
    Gets the last modified time.
    provisioningState String
    Gets the provisioning state of the module.
    sizeInBytes Double
    Gets the size in bytes of the module.
    version String
    Gets the version of the module.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    The type of the resource.
    activityCount number
    Gets the activity count of the module.
    creationTime string
    Gets the creation time.
    description string
    Gets or sets the description.
    error ModuleErrorInfoResponse
    Gets the error info of the module.
    etag string
    Gets the etag of the resource.
    isComposite boolean
    Gets type of module, if its composite or not.
    isGlobal boolean
    Gets the isGlobal flag of the module.
    lastModifiedTime string
    Gets the last modified time.
    provisioningState string
    Gets the provisioning state of the module.
    sizeInBytes number
    Gets the size in bytes of the module.
    version string
    Gets the version of the module.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    The type of the resource.
    activity_count int
    Gets the activity count of the module.
    creation_time str
    Gets the creation time.
    description str
    Gets or sets the description.
    error ModuleErrorInfoResponse
    Gets the error info of the module.
    etag str
    Gets the etag of the resource.
    is_composite bool
    Gets type of module, if its composite or not.
    is_global bool
    Gets the isGlobal flag of the module.
    last_modified_time str
    Gets the last modified time.
    provisioning_state str
    Gets the provisioning state of the module.
    size_in_bytes float
    Gets the size in bytes of the module.
    version str
    Gets the version of the module.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    The type of the resource.
    activityCount Number
    Gets the activity count of the module.
    creationTime String
    Gets the creation time.
    description String
    Gets or sets the description.
    error Property Map
    Gets the error info of the module.
    etag String
    Gets the etag of the resource.
    isComposite Boolean
    Gets type of module, if its composite or not.
    isGlobal Boolean
    Gets the isGlobal flag of the module.
    lastModifiedTime String
    Gets the last modified time.
    provisioningState String
    Gets the provisioning state of the module.
    sizeInBytes Number
    Gets the size in bytes of the module.
    version String
    Gets the version of the module.

    Supporting Types

    ContentHash, ContentHashArgs

    Algorithm string
    Gets or sets the content hash algorithm used to hash the content.
    Value string
    Gets or sets expected hash value of the content.
    Algorithm string
    Gets or sets the content hash algorithm used to hash the content.
    Value string
    Gets or sets expected hash value of the content.
    algorithm String
    Gets or sets the content hash algorithm used to hash the content.
    value String
    Gets or sets expected hash value of the content.
    algorithm string
    Gets or sets the content hash algorithm used to hash the content.
    value string
    Gets or sets expected hash value of the content.
    algorithm str
    Gets or sets the content hash algorithm used to hash the content.
    value str
    Gets or sets expected hash value of the content.
    algorithm String
    Gets or sets the content hash algorithm used to hash the content.
    value String
    Gets or sets expected hash value of the content.
    ContentHash Pulumi.AzureNative.Automation.Inputs.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.
    ContentHash 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.
    contentHash 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.
    contentHash 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.
    contentHash 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.

    ModuleErrorInfoResponse, ModuleErrorInfoResponseArgs

    Code string
    Gets or sets the error code.
    Message string
    Gets or sets the error message.
    Code string
    Gets or sets the error code.
    Message string
    Gets or sets the error message.
    code String
    Gets or sets the error code.
    message String
    Gets or sets the error message.
    code string
    Gets or sets the error code.
    message string
    Gets or sets the error message.
    code str
    Gets or sets the error code.
    message str
    Gets or sets the error message.
    code String
    Gets or sets the error code.
    message String
    Gets or sets the error message.

    Import

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

    $ pulumi import azure-native:automation:PowerShell72Module OmsCompositeResources /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/powerShell72Modules/{moduleName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi