azure-native.automation.Runbook
Explore with Pulumi AI
Definition of the runbook type.
Uses Azure REST API version 2022-08-08. In version 1.x of the Azure Native provider, it used API version 2019-06-01.
Other available API versions: 2023-05-15-preview, 2023-11-01, 2024-10-23.
Example Usage
Create or update runbook and publish it
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var runbook = new AzureNative.Automation.Runbook("runbook", new()
    {
        AutomationAccountName = "ContoseAutomationAccount",
        Description = "Description of the Runbook",
        Location = "East US 2",
        LogActivityTrace = 1,
        LogProgress = true,
        LogVerbose = false,
        Name = "Get-AzureVMTutorial",
        PublishContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
        {
            ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
            {
                Algorithm = "SHA256",
                Value = "115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80",
            },
            Uri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1",
        },
        ResourceGroupName = "rg",
        RunbookName = "Get-AzureVMTutorial",
        RunbookType = AzureNative.Automation.RunbookTypeEnum.PowerShellWorkflow,
        Tags = 
        {
            { "tag01", "value01" },
            { "tag02", "value02" },
        },
    });
});
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.NewRunbook(ctx, "runbook", &automation.RunbookArgs{
			AutomationAccountName: pulumi.String("ContoseAutomationAccount"),
			Description:           pulumi.String("Description of the Runbook"),
			Location:              pulumi.String("East US 2"),
			LogActivityTrace:      pulumi.Int(1),
			LogProgress:           pulumi.Bool(true),
			LogVerbose:            pulumi.Bool(false),
			Name:                  pulumi.String("Get-AzureVMTutorial"),
			PublishContentLink: &automation.ContentLinkArgs{
				ContentHash: &automation.ContentHashArgs{
					Algorithm: pulumi.String("SHA256"),
					Value:     pulumi.String("115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80"),
				},
				Uri: pulumi.String("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1"),
			},
			ResourceGroupName: pulumi.String("rg"),
			RunbookName:       pulumi.String("Get-AzureVMTutorial"),
			RunbookType:       pulumi.String(automation.RunbookTypeEnumPowerShellWorkflow),
			Tags: pulumi.StringMap{
				"tag01": pulumi.String("value01"),
				"tag02": pulumi.String("value02"),
			},
		})
		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.Runbook;
import com.pulumi.azurenative.automation.RunbookArgs;
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 runbook = new Runbook("runbook", RunbookArgs.builder()
            .automationAccountName("ContoseAutomationAccount")
            .description("Description of the Runbook")
            .location("East US 2")
            .logActivityTrace(1)
            .logProgress(true)
            .logVerbose(false)
            .name("Get-AzureVMTutorial")
            .publishContentLink(ContentLinkArgs.builder()
                .contentHash(ContentHashArgs.builder()
                    .algorithm("SHA256")
                    .value("115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80")
                    .build())
                .uri("https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1")
                .build())
            .resourceGroupName("rg")
            .runbookName("Get-AzureVMTutorial")
            .runbookType("PowerShellWorkflow")
            .tags(Map.ofEntries(
                Map.entry("tag01", "value01"),
                Map.entry("tag02", "value02")
            ))
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const runbook = new azure_native.automation.Runbook("runbook", {
    automationAccountName: "ContoseAutomationAccount",
    description: "Description of the Runbook",
    location: "East US 2",
    logActivityTrace: 1,
    logProgress: true,
    logVerbose: false,
    name: "Get-AzureVMTutorial",
    publishContentLink: {
        contentHash: {
            algorithm: "SHA256",
            value: "115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80",
        },
        uri: "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1",
    },
    resourceGroupName: "rg",
    runbookName: "Get-AzureVMTutorial",
    runbookType: azure_native.automation.RunbookTypeEnum.PowerShellWorkflow,
    tags: {
        tag01: "value01",
        tag02: "value02",
    },
});
import pulumi
import pulumi_azure_native as azure_native
runbook = azure_native.automation.Runbook("runbook",
    automation_account_name="ContoseAutomationAccount",
    description="Description of the Runbook",
    location="East US 2",
    log_activity_trace=1,
    log_progress=True,
    log_verbose=False,
    name="Get-AzureVMTutorial",
    publish_content_link={
        "content_hash": {
            "algorithm": "SHA256",
            "value": "115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80",
        },
        "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1",
    },
    resource_group_name="rg",
    runbook_name="Get-AzureVMTutorial",
    runbook_type=azure_native.automation.RunbookTypeEnum.POWER_SHELL_WORKFLOW,
    tags={
        "tag01": "value01",
        "tag02": "value02",
    })
resources:
  runbook:
    type: azure-native:automation:Runbook
    properties:
      automationAccountName: ContoseAutomationAccount
      description: Description of the Runbook
      location: East US 2
      logActivityTrace: 1
      logProgress: true
      logVerbose: false
      name: Get-AzureVMTutorial
      publishContentLink:
        contentHash:
          algorithm: SHA256
          value: 115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80
        uri: https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-automation-runbook-getvms/Runbooks/Get-AzureVMTutorial.ps1
      resourceGroupName: rg
      runbookName: Get-AzureVMTutorial
      runbookType: PowerShellWorkflow
      tags:
        tag01: value01
        tag02: value02
Create runbook as draft
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var runbook = new AzureNative.Automation.Runbook("runbook", new()
    {
        AutomationAccountName = "ContoseAutomationAccount",
        Description = "Description of the Runbook",
        Draft = null,
        Location = "East US 2",
        LogProgress = false,
        LogVerbose = false,
        Name = "Get-AzureVMTutorial",
        ResourceGroupName = "rg",
        RunbookName = "Get-AzureVMTutorial",
        RunbookType = AzureNative.Automation.RunbookTypeEnum.PowerShellWorkflow,
        Tags = 
        {
            { "tag01", "value01" },
            { "tag02", "value02" },
        },
    });
});
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.NewRunbook(ctx, "runbook", &automation.RunbookArgs{
			AutomationAccountName: pulumi.String("ContoseAutomationAccount"),
			Description:           pulumi.String("Description of the Runbook"),
			Draft:                 &automation.RunbookDraftArgs{},
			Location:              pulumi.String("East US 2"),
			LogProgress:           pulumi.Bool(false),
			LogVerbose:            pulumi.Bool(false),
			Name:                  pulumi.String("Get-AzureVMTutorial"),
			ResourceGroupName:     pulumi.String("rg"),
			RunbookName:           pulumi.String("Get-AzureVMTutorial"),
			RunbookType:           pulumi.String(automation.RunbookTypeEnumPowerShellWorkflow),
			Tags: pulumi.StringMap{
				"tag01": pulumi.String("value01"),
				"tag02": pulumi.String("value02"),
			},
		})
		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.Runbook;
import com.pulumi.azurenative.automation.RunbookArgs;
import com.pulumi.azurenative.automation.inputs.RunbookDraftArgs;
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 runbook = new Runbook("runbook", RunbookArgs.builder()
            .automationAccountName("ContoseAutomationAccount")
            .description("Description of the Runbook")
            .draft()
            .location("East US 2")
            .logProgress(false)
            .logVerbose(false)
            .name("Get-AzureVMTutorial")
            .resourceGroupName("rg")
            .runbookName("Get-AzureVMTutorial")
            .runbookType("PowerShellWorkflow")
            .tags(Map.ofEntries(
                Map.entry("tag01", "value01"),
                Map.entry("tag02", "value02")
            ))
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const runbook = new azure_native.automation.Runbook("runbook", {
    automationAccountName: "ContoseAutomationAccount",
    description: "Description of the Runbook",
    draft: {},
    location: "East US 2",
    logProgress: false,
    logVerbose: false,
    name: "Get-AzureVMTutorial",
    resourceGroupName: "rg",
    runbookName: "Get-AzureVMTutorial",
    runbookType: azure_native.automation.RunbookTypeEnum.PowerShellWorkflow,
    tags: {
        tag01: "value01",
        tag02: "value02",
    },
});
import pulumi
import pulumi_azure_native as azure_native
runbook = azure_native.automation.Runbook("runbook",
    automation_account_name="ContoseAutomationAccount",
    description="Description of the Runbook",
    draft={},
    location="East US 2",
    log_progress=False,
    log_verbose=False,
    name="Get-AzureVMTutorial",
    resource_group_name="rg",
    runbook_name="Get-AzureVMTutorial",
    runbook_type=azure_native.automation.RunbookTypeEnum.POWER_SHELL_WORKFLOW,
    tags={
        "tag01": "value01",
        "tag02": "value02",
    })
resources:
  runbook:
    type: azure-native:automation:Runbook
    properties:
      automationAccountName: ContoseAutomationAccount
      description: Description of the Runbook
      draft: {}
      location: East US 2
      logProgress: false
      logVerbose: false
      name: Get-AzureVMTutorial
      resourceGroupName: rg
      runbookName: Get-AzureVMTutorial
      runbookType: PowerShellWorkflow
      tags:
        tag01: value01
        tag02: value02
Create Runbook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Runbook(name: string, args: RunbookArgs, opts?: CustomResourceOptions);@overload
def Runbook(resource_name: str,
            args: RunbookArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Runbook(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            automation_account_name: Optional[str] = None,
            runbook_type: Optional[Union[str, RunbookTypeEnum]] = None,
            resource_group_name: Optional[str] = None,
            location: Optional[str] = None,
            log_activity_trace: Optional[int] = None,
            log_progress: Optional[bool] = None,
            log_verbose: Optional[bool] = None,
            name: Optional[str] = None,
            publish_content_link: Optional[ContentLinkArgs] = None,
            draft: Optional[RunbookDraftArgs] = None,
            runbook_name: Optional[str] = None,
            description: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)func NewRunbook(ctx *Context, name string, args RunbookArgs, opts ...ResourceOption) (*Runbook, error)public Runbook(string name, RunbookArgs args, CustomResourceOptions? opts = null)
public Runbook(String name, RunbookArgs args)
public Runbook(String name, RunbookArgs args, CustomResourceOptions options)
type: azure-native:automation:Runbook
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 RunbookArgs
- 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 RunbookArgs
- 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 RunbookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RunbookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RunbookArgs
- 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 runbookResource = new AzureNative.Automation.Runbook("runbookResource", new()
{
    AutomationAccountName = "string",
    RunbookType = "string",
    ResourceGroupName = "string",
    Location = "string",
    LogActivityTrace = 0,
    LogProgress = false,
    LogVerbose = false,
    Name = "string",
    PublishContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
    {
        ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
        {
            Algorithm = "string",
            Value = "string",
        },
        Uri = "string",
        Version = "string",
    },
    Draft = new AzureNative.Automation.Inputs.RunbookDraftArgs
    {
        CreationTime = "string",
        DraftContentLink = new AzureNative.Automation.Inputs.ContentLinkArgs
        {
            ContentHash = new AzureNative.Automation.Inputs.ContentHashArgs
            {
                Algorithm = "string",
                Value = "string",
            },
            Uri = "string",
            Version = "string",
        },
        InEdit = false,
        LastModifiedTime = "string",
        OutputTypes = new[]
        {
            "string",
        },
        Parameters = 
        {
            { "string", new AzureNative.Automation.Inputs.RunbookParameterArgs
            {
                DefaultValue = "string",
                IsMandatory = false,
                Position = 0,
                Type = "string",
            } },
        },
    },
    RunbookName = "string",
    Description = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := automation.NewRunbook(ctx, "runbookResource", &automation.RunbookArgs{
	AutomationAccountName: pulumi.String("string"),
	RunbookType:           pulumi.String("string"),
	ResourceGroupName:     pulumi.String("string"),
	Location:              pulumi.String("string"),
	LogActivityTrace:      pulumi.Int(0),
	LogProgress:           pulumi.Bool(false),
	LogVerbose:            pulumi.Bool(false),
	Name:                  pulumi.String("string"),
	PublishContentLink: &automation.ContentLinkArgs{
		ContentHash: &automation.ContentHashArgs{
			Algorithm: pulumi.String("string"),
			Value:     pulumi.String("string"),
		},
		Uri:     pulumi.String("string"),
		Version: pulumi.String("string"),
	},
	Draft: &automation.RunbookDraftArgs{
		CreationTime: pulumi.String("string"),
		DraftContentLink: &automation.ContentLinkArgs{
			ContentHash: &automation.ContentHashArgs{
				Algorithm: pulumi.String("string"),
				Value:     pulumi.String("string"),
			},
			Uri:     pulumi.String("string"),
			Version: pulumi.String("string"),
		},
		InEdit:           pulumi.Bool(false),
		LastModifiedTime: pulumi.String("string"),
		OutputTypes: pulumi.StringArray{
			pulumi.String("string"),
		},
		Parameters: automation.RunbookParameterMap{
			"string": &automation.RunbookParameterArgs{
				DefaultValue: pulumi.String("string"),
				IsMandatory:  pulumi.Bool(false),
				Position:     pulumi.Int(0),
				Type:         pulumi.String("string"),
			},
		},
	},
	RunbookName: pulumi.String("string"),
	Description: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var runbookResource = new Runbook("runbookResource", RunbookArgs.builder()
    .automationAccountName("string")
    .runbookType("string")
    .resourceGroupName("string")
    .location("string")
    .logActivityTrace(0)
    .logProgress(false)
    .logVerbose(false)
    .name("string")
    .publishContentLink(ContentLinkArgs.builder()
        .contentHash(ContentHashArgs.builder()
            .algorithm("string")
            .value("string")
            .build())
        .uri("string")
        .version("string")
        .build())
    .draft(RunbookDraftArgs.builder()
        .creationTime("string")
        .draftContentLink(ContentLinkArgs.builder()
            .contentHash(ContentHashArgs.builder()
                .algorithm("string")
                .value("string")
                .build())
            .uri("string")
            .version("string")
            .build())
        .inEdit(false)
        .lastModifiedTime("string")
        .outputTypes("string")
        .parameters(Map.of("string", Map.ofEntries(
            Map.entry("defaultValue", "string"),
            Map.entry("isMandatory", false),
            Map.entry("position", 0),
            Map.entry("type", "string")
        )))
        .build())
    .runbookName("string")
    .description("string")
    .tags(Map.of("string", "string"))
    .build());
runbook_resource = azure_native.automation.Runbook("runbookResource",
    automation_account_name="string",
    runbook_type="string",
    resource_group_name="string",
    location="string",
    log_activity_trace=0,
    log_progress=False,
    log_verbose=False,
    name="string",
    publish_content_link={
        "content_hash": {
            "algorithm": "string",
            "value": "string",
        },
        "uri": "string",
        "version": "string",
    },
    draft={
        "creation_time": "string",
        "draft_content_link": {
            "content_hash": {
                "algorithm": "string",
                "value": "string",
            },
            "uri": "string",
            "version": "string",
        },
        "in_edit": False,
        "last_modified_time": "string",
        "output_types": ["string"],
        "parameters": {
            "string": {
                "default_value": "string",
                "is_mandatory": False,
                "position": 0,
                "type": "string",
            },
        },
    },
    runbook_name="string",
    description="string",
    tags={
        "string": "string",
    })
const runbookResource = new azure_native.automation.Runbook("runbookResource", {
    automationAccountName: "string",
    runbookType: "string",
    resourceGroupName: "string",
    location: "string",
    logActivityTrace: 0,
    logProgress: false,
    logVerbose: false,
    name: "string",
    publishContentLink: {
        contentHash: {
            algorithm: "string",
            value: "string",
        },
        uri: "string",
        version: "string",
    },
    draft: {
        creationTime: "string",
        draftContentLink: {
            contentHash: {
                algorithm: "string",
                value: "string",
            },
            uri: "string",
            version: "string",
        },
        inEdit: false,
        lastModifiedTime: "string",
        outputTypes: ["string"],
        parameters: {
            string: {
                defaultValue: "string",
                isMandatory: false,
                position: 0,
                type: "string",
            },
        },
    },
    runbookName: "string",
    description: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:automation:Runbook
properties:
    automationAccountName: string
    description: string
    draft:
        creationTime: string
        draftContentLink:
            contentHash:
                algorithm: string
                value: string
            uri: string
            version: string
        inEdit: false
        lastModifiedTime: string
        outputTypes:
            - string
        parameters:
            string:
                defaultValue: string
                isMandatory: false
                position: 0
                type: string
    location: string
    logActivityTrace: 0
    logProgress: false
    logVerbose: false
    name: string
    publishContentLink:
        contentHash:
            algorithm: string
            value: string
        uri: string
        version: string
    resourceGroupName: string
    runbookName: string
    runbookType: string
    tags:
        string: string
Runbook 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 Runbook resource accepts the following input properties:
- AutomationAccount stringName 
- The name of the automation account.
- ResourceGroup stringName 
- Name of an Azure Resource group.
- RunbookType string | Pulumi.Azure Native. Automation. Runbook Type Enum 
- Gets or sets the type of the runbook.
- Description string
- Gets or sets the description of the runbook.
- Draft
Pulumi.Azure Native. Automation. Inputs. Runbook Draft 
- Gets or sets the draft runbook properties.
- Location string
- Gets or sets the location of the resource.
- LogActivity intTrace 
- Gets or sets the activity-level tracing options of the runbook.
- LogProgress bool
- Gets or sets progress log option.
- LogVerbose bool
- Gets or sets verbose log option.
- Name string
- Gets or sets the name of the resource.
- PublishContent Pulumi.Link Azure Native. Automation. Inputs. Content Link 
- Gets or sets the published runbook content link.
- RunbookName string
- The runbook name.
- Dictionary<string, string>
- Gets or sets the tags attached to the resource.
- AutomationAccount stringName 
- The name of the automation account.
- ResourceGroup stringName 
- Name of an Azure Resource group.
- RunbookType string | RunbookType Enum 
- Gets or sets the type of the runbook.
- Description string
- Gets or sets the description of the runbook.
- Draft
RunbookDraft Args 
- Gets or sets the draft runbook properties.
- Location string
- Gets or sets the location of the resource.
- LogActivity intTrace 
- Gets or sets the activity-level tracing options of the runbook.
- LogProgress bool
- Gets or sets progress log option.
- LogVerbose bool
- Gets or sets verbose log option.
- Name string
- Gets or sets the name of the resource.
- PublishContent ContentLink Link Args 
- Gets or sets the published runbook content link.
- RunbookName string
- The runbook name.
- map[string]string
- Gets or sets the tags attached to the resource.
- automationAccount StringName 
- The name of the automation account.
- resourceGroup StringName 
- Name of an Azure Resource group.
- runbookType String | RunbookType Enum 
- Gets or sets the type of the runbook.
- description String
- Gets or sets the description of the runbook.
- draft
RunbookDraft 
- Gets or sets the draft runbook properties.
- location String
- Gets or sets the location of the resource.
- logActivity IntegerTrace 
- Gets or sets the activity-level tracing options of the runbook.
- logProgress Boolean
- Gets or sets progress log option.
- logVerbose Boolean
- Gets or sets verbose log option.
- name String
- Gets or sets the name of the resource.
- publishContent ContentLink Link 
- Gets or sets the published runbook content link.
- runbookName String
- The runbook name.
- Map<String,String>
- Gets or sets the tags attached to the resource.
- automationAccount stringName 
- The name of the automation account.
- resourceGroup stringName 
- Name of an Azure Resource group.
- runbookType string | RunbookType Enum 
- Gets or sets the type of the runbook.
- description string
- Gets or sets the description of the runbook.
- draft
RunbookDraft 
- Gets or sets the draft runbook properties.
- location string
- Gets or sets the location of the resource.
- logActivity numberTrace 
- Gets or sets the activity-level tracing options of the runbook.
- logProgress boolean
- Gets or sets progress log option.
- logVerbose boolean
- Gets or sets verbose log option.
- name string
- Gets or sets the name of the resource.
- publishContent ContentLink Link 
- Gets or sets the published runbook content link.
- runbookName string
- The runbook name.
- {[key: string]: string}
- Gets or sets the tags attached to the resource.
- automation_account_ strname 
- The name of the automation account.
- resource_group_ strname 
- Name of an Azure Resource group.
- runbook_type str | RunbookType Enum 
- Gets or sets the type of the runbook.
- description str
- Gets or sets the description of the runbook.
- draft
RunbookDraft Args 
- Gets or sets the draft runbook properties.
- location str
- Gets or sets the location of the resource.
- log_activity_ inttrace 
- Gets or sets the activity-level tracing options of the runbook.
- log_progress bool
- Gets or sets progress log option.
- log_verbose bool
- Gets or sets verbose log option.
- name str
- Gets or sets the name of the resource.
- publish_content_ Contentlink Link Args 
- Gets or sets the published runbook content link.
- runbook_name str
- The runbook name.
- Mapping[str, str]
- Gets or sets the tags attached to the resource.
- automationAccount StringName 
- The name of the automation account.
- resourceGroup StringName 
- Name of an Azure Resource group.
- runbookType String | "Script" | "Graph" | "PowerShell Workflow" | "Power Shell" | "Graph Power Shell Workflow" | "Graph Power Shell" | "Python2" | "Python3" 
- Gets or sets the type of the runbook.
- description String
- Gets or sets the description of the runbook.
- draft Property Map
- Gets or sets the draft runbook properties.
- location String
- Gets or sets the location of the resource.
- logActivity NumberTrace 
- Gets or sets the activity-level tracing options of the runbook.
- logProgress Boolean
- Gets or sets progress log option.
- logVerbose Boolean
- Gets or sets verbose log option.
- name String
- Gets or sets the name of the resource.
- publishContent Property MapLink 
- Gets or sets the published runbook content link.
- runbookName String
- The runbook name.
- Map<String>
- Gets or sets the tags attached to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Runbook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- The type of the resource.
- CreationTime string
- Gets or sets the creation time.
- Etag string
- Gets or sets the etag of the resource.
- JobCount int
- Gets or sets the job count of the runbook.
- LastModified stringBy 
- Gets or sets the last modified by.
- LastModified stringTime 
- Gets or sets the last modified time.
- OutputTypes List<string>
- Gets or sets the runbook output types.
- Parameters
Dictionary<string, Pulumi.Azure Native. Automation. Outputs. Runbook Parameter Response> 
- Gets or sets the runbook parameters.
- ProvisioningState string
- Gets or sets the provisioning state of the runbook.
- State string
- Gets or sets the state of the runbook.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type string
- The type of the resource.
- CreationTime string
- Gets or sets the creation time.
- Etag string
- Gets or sets the etag of the resource.
- JobCount int
- Gets or sets the job count of the runbook.
- LastModified stringBy 
- Gets or sets the last modified by.
- LastModified stringTime 
- Gets or sets the last modified time.
- OutputTypes []string
- Gets or sets the runbook output types.
- Parameters
map[string]RunbookParameter Response 
- Gets or sets the runbook parameters.
- ProvisioningState string
- Gets or sets the provisioning state of the runbook.
- State string
- Gets or sets the state of the runbook.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- The type of the resource.
- creationTime String
- Gets or sets the creation time.
- etag String
- Gets or sets the etag of the resource.
- jobCount Integer
- Gets or sets the job count of the runbook.
- lastModified StringBy 
- Gets or sets the last modified by.
- lastModified StringTime 
- Gets or sets the last modified time.
- outputTypes List<String>
- Gets or sets the runbook output types.
- parameters
Map<String,RunbookParameter Response> 
- Gets or sets the runbook parameters.
- provisioningState String
- Gets or sets the provisioning state of the runbook.
- state String
- Gets or sets the state of the runbook.
- id string
- The provider-assigned unique ID for this managed resource.
- type string
- The type of the resource.
- creationTime string
- Gets or sets the creation time.
- etag string
- Gets or sets the etag of the resource.
- jobCount number
- Gets or sets the job count of the runbook.
- lastModified stringBy 
- Gets or sets the last modified by.
- lastModified stringTime 
- Gets or sets the last modified time.
- outputTypes string[]
- Gets or sets the runbook output types.
- parameters
{[key: string]: RunbookParameter Response} 
- Gets or sets the runbook parameters.
- provisioningState string
- Gets or sets the provisioning state of the runbook.
- state string
- Gets or sets the state of the runbook.
- id str
- The provider-assigned unique ID for this managed resource.
- type str
- The type of the resource.
- creation_time str
- Gets or sets the creation time.
- etag str
- Gets or sets the etag of the resource.
- job_count int
- Gets or sets the job count of the runbook.
- last_modified_ strby 
- Gets or sets the last modified by.
- last_modified_ strtime 
- Gets or sets the last modified time.
- output_types Sequence[str]
- Gets or sets the runbook output types.
- parameters
Mapping[str, RunbookParameter Response] 
- Gets or sets the runbook parameters.
- provisioning_state str
- Gets or sets the provisioning state of the runbook.
- state str
- Gets or sets the state of the runbook.
- id String
- The provider-assigned unique ID for this managed resource.
- type String
- The type of the resource.
- creationTime String
- Gets or sets the creation time.
- etag String
- Gets or sets the etag of the resource.
- jobCount Number
- Gets or sets the job count of the runbook.
- lastModified StringBy 
- Gets or sets the last modified by.
- lastModified StringTime 
- Gets or sets the last modified time.
- outputTypes List<String>
- Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook parameters.
- provisioningState String
- Gets or sets the provisioning state of the runbook.
- state String
- Gets or sets the state of the runbook.
Supporting Types
ContentHash, ContentHashArgs    
ContentHashResponse, ContentHashResponseArgs      
ContentLink, ContentLinkArgs    
- ContentHash 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.
- 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.
ContentLinkResponse, ContentLinkResponseArgs      
- ContentHash 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.
- ContentHash 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.
- contentHash 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.
- contentHash 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.
- 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.
RunbookDraft, RunbookDraftArgs    
- CreationTime string
- Gets or sets the creation time of the runbook draft.
- DraftContent Pulumi.Link Azure Native. Automation. Inputs. Content Link 
- Gets or sets the draft runbook content link.
- InEdit bool
- Gets or sets whether runbook is in edit mode.
- LastModified stringTime 
- Gets or sets the last modified time of the runbook draft.
- OutputTypes List<string>
- Gets or sets the runbook output types.
- Parameters
Dictionary<string, Pulumi.Azure Native. Automation. Inputs. Runbook Parameter> 
- Gets or sets the runbook draft parameters.
- CreationTime string
- Gets or sets the creation time of the runbook draft.
- DraftContent ContentLink Link 
- Gets or sets the draft runbook content link.
- InEdit bool
- Gets or sets whether runbook is in edit mode.
- LastModified stringTime 
- Gets or sets the last modified time of the runbook draft.
- OutputTypes []string
- Gets or sets the runbook output types.
- Parameters
map[string]RunbookParameter 
- Gets or sets the runbook draft parameters.
- creationTime String
- Gets or sets the creation time of the runbook draft.
- draftContent ContentLink Link 
- Gets or sets the draft runbook content link.
- inEdit Boolean
- Gets or sets whether runbook is in edit mode.
- lastModified StringTime 
- Gets or sets the last modified time of the runbook draft.
- outputTypes List<String>
- Gets or sets the runbook output types.
- parameters
Map<String,RunbookParameter> 
- Gets or sets the runbook draft parameters.
- creationTime string
- Gets or sets the creation time of the runbook draft.
- draftContent ContentLink Link 
- Gets or sets the draft runbook content link.
- inEdit boolean
- Gets or sets whether runbook is in edit mode.
- lastModified stringTime 
- Gets or sets the last modified time of the runbook draft.
- outputTypes string[]
- Gets or sets the runbook output types.
- parameters
{[key: string]: RunbookParameter} 
- Gets or sets the runbook draft parameters.
- creation_time str
- Gets or sets the creation time of the runbook draft.
- draft_content_ Contentlink Link 
- Gets or sets the draft runbook content link.
- in_edit bool
- Gets or sets whether runbook is in edit mode.
- last_modified_ strtime 
- Gets or sets the last modified time of the runbook draft.
- output_types Sequence[str]
- Gets or sets the runbook output types.
- parameters
Mapping[str, RunbookParameter] 
- Gets or sets the runbook draft parameters.
- creationTime String
- Gets or sets the creation time of the runbook draft.
- draftContent Property MapLink 
- Gets or sets the draft runbook content link.
- inEdit Boolean
- Gets or sets whether runbook is in edit mode.
- lastModified StringTime 
- Gets or sets the last modified time of the runbook draft.
- outputTypes List<String>
- Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook draft parameters.
RunbookDraftResponse, RunbookDraftResponseArgs      
- CreationTime string
- Gets or sets the creation time of the runbook draft.
- DraftContent Pulumi.Link Azure Native. Automation. Inputs. Content Link Response 
- Gets or sets the draft runbook content link.
- InEdit bool
- Gets or sets whether runbook is in edit mode.
- LastModified stringTime 
- Gets or sets the last modified time of the runbook draft.
- OutputTypes List<string>
- Gets or sets the runbook output types.
- Parameters
Dictionary<string, Pulumi.Azure Native. Automation. Inputs. Runbook Parameter Response> 
- Gets or sets the runbook draft parameters.
- CreationTime string
- Gets or sets the creation time of the runbook draft.
- DraftContent ContentLink Link Response 
- Gets or sets the draft runbook content link.
- InEdit bool
- Gets or sets whether runbook is in edit mode.
- LastModified stringTime 
- Gets or sets the last modified time of the runbook draft.
- OutputTypes []string
- Gets or sets the runbook output types.
- Parameters
map[string]RunbookParameter Response 
- Gets or sets the runbook draft parameters.
- creationTime String
- Gets or sets the creation time of the runbook draft.
- draftContent ContentLink Link Response 
- Gets or sets the draft runbook content link.
- inEdit Boolean
- Gets or sets whether runbook is in edit mode.
- lastModified StringTime 
- Gets or sets the last modified time of the runbook draft.
- outputTypes List<String>
- Gets or sets the runbook output types.
- parameters
Map<String,RunbookParameter Response> 
- Gets or sets the runbook draft parameters.
- creationTime string
- Gets or sets the creation time of the runbook draft.
- draftContent ContentLink Link Response 
- Gets or sets the draft runbook content link.
- inEdit boolean
- Gets or sets whether runbook is in edit mode.
- lastModified stringTime 
- Gets or sets the last modified time of the runbook draft.
- outputTypes string[]
- Gets or sets the runbook output types.
- parameters
{[key: string]: RunbookParameter Response} 
- Gets or sets the runbook draft parameters.
- creation_time str
- Gets or sets the creation time of the runbook draft.
- draft_content_ Contentlink Link Response 
- Gets or sets the draft runbook content link.
- in_edit bool
- Gets or sets whether runbook is in edit mode.
- last_modified_ strtime 
- Gets or sets the last modified time of the runbook draft.
- output_types Sequence[str]
- Gets or sets the runbook output types.
- parameters
Mapping[str, RunbookParameter Response] 
- Gets or sets the runbook draft parameters.
- creationTime String
- Gets or sets the creation time of the runbook draft.
- draftContent Property MapLink 
- Gets or sets the draft runbook content link.
- inEdit Boolean
- Gets or sets whether runbook is in edit mode.
- lastModified StringTime 
- Gets or sets the last modified time of the runbook draft.
- outputTypes List<String>
- Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook draft parameters.
RunbookParameter, RunbookParameterArgs    
- DefaultValue string
- Gets or sets the default value of parameter.
- IsMandatory bool
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- Position int
- Get or sets the position of the parameter.
- Type string
- Gets or sets the type of the parameter.
- DefaultValue string
- Gets or sets the default value of parameter.
- IsMandatory bool
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- Position int
- Get or sets the position of the parameter.
- Type string
- Gets or sets the type of the parameter.
- defaultValue String
- Gets or sets the default value of parameter.
- isMandatory Boolean
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position Integer
- Get or sets the position of the parameter.
- type String
- Gets or sets the type of the parameter.
- defaultValue string
- Gets or sets the default value of parameter.
- isMandatory boolean
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position number
- Get or sets the position of the parameter.
- type string
- Gets or sets the type of the parameter.
- default_value str
- Gets or sets the default value of parameter.
- is_mandatory bool
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position int
- Get or sets the position of the parameter.
- type str
- Gets or sets the type of the parameter.
- defaultValue String
- Gets or sets the default value of parameter.
- isMandatory Boolean
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position Number
- Get or sets the position of the parameter.
- type String
- Gets or sets the type of the parameter.
RunbookParameterResponse, RunbookParameterResponseArgs      
- DefaultValue string
- Gets or sets the default value of parameter.
- IsMandatory bool
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- Position int
- Get or sets the position of the parameter.
- Type string
- Gets or sets the type of the parameter.
- DefaultValue string
- Gets or sets the default value of parameter.
- IsMandatory bool
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- Position int
- Get or sets the position of the parameter.
- Type string
- Gets or sets the type of the parameter.
- defaultValue String
- Gets or sets the default value of parameter.
- isMandatory Boolean
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position Integer
- Get or sets the position of the parameter.
- type String
- Gets or sets the type of the parameter.
- defaultValue string
- Gets or sets the default value of parameter.
- isMandatory boolean
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position number
- Get or sets the position of the parameter.
- type string
- Gets or sets the type of the parameter.
- default_value str
- Gets or sets the default value of parameter.
- is_mandatory bool
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position int
- Get or sets the position of the parameter.
- type str
- Gets or sets the type of the parameter.
- defaultValue String
- Gets or sets the default value of parameter.
- isMandatory Boolean
- Gets or sets a Boolean value to indicate whether the parameter is mandatory or not.
- position Number
- Get or sets the position of the parameter.
- type String
- Gets or sets the type of the parameter.
RunbookTypeEnum, RunbookTypeEnumArgs      
- Script
- Script
- Graph
- Graph
- PowerShell Workflow 
- PowerShellWorkflow
- PowerShell 
- PowerShell
- GraphPower Shell Workflow 
- GraphPowerShellWorkflow
- GraphPower Shell 
- GraphPowerShell
- Python2
- Python2
- Python3
- Python3
- RunbookType Enum Script 
- Script
- RunbookType Enum Graph 
- Graph
- RunbookType Enum Power Shell Workflow 
- PowerShellWorkflow
- RunbookType Enum Power Shell 
- PowerShell
- RunbookType Enum Graph Power Shell Workflow 
- GraphPowerShellWorkflow
- RunbookType Enum Graph Power Shell 
- GraphPowerShell
- RunbookType Enum Python2 
- Python2
- RunbookType Enum Python3 
- Python3
- Script
- Script
- Graph
- Graph
- PowerShell Workflow 
- PowerShellWorkflow
- PowerShell 
- PowerShell
- GraphPower Shell Workflow 
- GraphPowerShellWorkflow
- GraphPower Shell 
- GraphPowerShell
- Python2
- Python2
- Python3
- Python3
- Script
- Script
- Graph
- Graph
- PowerShell Workflow 
- PowerShellWorkflow
- PowerShell 
- PowerShell
- GraphPower Shell Workflow 
- GraphPowerShellWorkflow
- GraphPower Shell 
- GraphPowerShell
- Python2
- Python2
- Python3
- Python3
- SCRIPT
- Script
- GRAPH
- Graph
- POWER_SHELL_WORKFLOW
- PowerShellWorkflow
- POWER_SHELL
- PowerShell
- GRAPH_POWER_SHELL_WORKFLOW
- GraphPowerShellWorkflow
- GRAPH_POWER_SHELL
- GraphPowerShell
- PYTHON2
- Python2
- PYTHON3
- Python3
- "Script"
- Script
- "Graph"
- Graph
- "PowerShell Workflow" 
- PowerShellWorkflow
- "PowerShell" 
- PowerShell
- "GraphPower Shell Workflow" 
- GraphPowerShellWorkflow
- "GraphPower Shell" 
- GraphPowerShell
- "Python2"
- Python2
- "Python3"
- Python3
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Runbook Get-AzureVMTutorial /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0