Module

Definition of the module type. API Version: 2019-06-01.

Example Usage

Create or update a module

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var module = new AzureNative.Automation.Module("module", 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",
Version = "1.0.0.0",
},
ModuleName = "OmsCompositeResources",
ResourceGroupName = "rg",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native/sdk/go/azure/automation"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewModule(ctx, "module", &automation.ModuleArgs{
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"),
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.Module;
import com.pulumi.azurenative.automation.ModuleArgs;
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 module = new Module("module", ModuleArgs.builder()
.automationAccountName("myAutomationAccount33")
.contentLink(Map.ofEntries(
Map.entry("contentHash", Map.ofEntries(
Map.entry("algorithm", "sha265"),
Map.entry("value", "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A")
)),
Map.entry("uri", "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip"),
Map.entry("version", "1.0.0.0")
))
.moduleName("OmsCompositeResources")
.resourceGroupName("rg")
.build());
}
}

Import

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

$ pulumi import azure-native:automation:Module OmsCompositeResources /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/modules/OmsCompositeResources

Properties

Link copied to clipboard
val activityCount: Output<Int>?

Gets or sets the activity count of the module.

Link copied to clipboard

Gets or sets the contentLink of the module.

Link copied to clipboard
val creationTime: Output<String>?

Gets or sets the creation time.

Link copied to clipboard
val description: Output<String>?

Gets or sets the description.

Link copied to clipboard

Gets or sets the error info of the module.

Link copied to clipboard
val etag: Output<String>?

Gets or sets the etag of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val isComposite: Output<Boolean>?

Gets or sets type of module, if its composite or not.

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

Gets or sets the isGlobal flag of the module.

Link copied to clipboard
val lastModifiedTime: Output<String>?

Gets or sets the last modified time.

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

The Azure Region 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 module.

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 module.

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.

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

Gets or sets the version of the module.