azure-native.automation.Runbook
Explore with Pulumi AI
Definition of the runbook type. API Version: 2019-06-01.
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 = "PowerShellWorkflow",
Tags =
{
{ "tag01", "value01" },
{ "tag02", "value02" },
},
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation"
"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.ContentLinkResponse{
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("PowerShellWorkflow"),
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 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(Map.ofEntries(
Map.entry("contentHash", Map.ofEntries(
Map.entry("algorithm", "SHA256"),
Map.entry("value", "115775B8FF2BE672D8A946BD0B489918C724DDE15A440373CA54461D53010A80")
)),
Map.entry("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(Map.ofEntries(
Map.entry("tag01", "value01"),
Map.entry("tag02", "value02")
))
.build());
}
}
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=azure_native.automation.ContentLinkResponseArgs(
content_hash=azure_native.automation.ContentHashArgs(
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="PowerShellWorkflow",
tags={
"tag01": "value01",
"tag02": "value02",
})
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: "PowerShellWorkflow",
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 = "PowerShellWorkflow",
Tags =
{
{ "tag01", "value01" },
{ "tag02", "value02" },
},
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation"
"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: nil,
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("PowerShellWorkflow"),
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 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 pulumi
import pulumi_azure_native as azure_native
runbook = azure_native.automation.Runbook("runbook",
automation_account_name="ContoseAutomationAccount",
description="Description of the Runbook",
draft=azure_native.automation.RunbookDraftArgs(),
location="East US 2",
log_progress=False,
log_verbose=False,
name="Get-AzureVMTutorial",
resource_group_name="rg",
runbook_name="Get-AzureVMTutorial",
runbook_type="PowerShellWorkflow",
tags={
"tag01": "value01",
"tag02": "value02",
})
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: "PowerShellWorkflow",
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 =
{
{ "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", new[]
{
"string",
} },
{ "parameters",
{
{ "string",
{
{ "defaultValue", "string" },
{ "isMandatory", false },
{ "position", 0 },
{ "type", "string" },
} },
} },
},
RunbookName = "string",
Description = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := automation.NewRunbook(ctx, "runbookResource", &automation.RunbookArgs{
AutomationAccountName: "string",
RunbookType: "string",
ResourceGroupName: "string",
Location: "string",
LogActivityTrace: 0,
LogProgress: false,
LogVerbose: false,
Name: "string",
PublishContentLink: map[string]interface{}{
"contentHash": map[string]interface{}{
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
Draft: map[string]interface{}{
"creationTime": "string",
"draftContentLink": map[string]interface{}{
"contentHash": map[string]interface{}{
"algorithm": "string",
"value": "string",
},
"uri": "string",
"version": "string",
},
"inEdit": false,
"lastModifiedTime": "string",
"outputTypes": []string{
"string",
},
"parameters": map[string]interface{}{
"string": map[string]interface{}{
"defaultValue": "string",
"isMandatory": false,
"position": 0,
"type": "string",
},
},
},
RunbookName: "string",
Description: "string",
Tags: map[string]interface{}{
"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(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.draft(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.runbookName("string")
.description("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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={
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,
},
},
},
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:
- Automation
Account stringName - The name of the automation account.
- Resource
Group stringName - Name of an Azure Resource group.
- Runbook
Type 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.
- 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 string
- Gets or sets the name of the resource.
- Publish
Content Pulumi.Link Azure Native. Automation. Inputs. Content Link - Gets or sets the published runbook content link.
- Runbook
Name string - The runbook name.
- Dictionary<string, string>
- Gets or sets the tags attached to the resource.
- Automation
Account stringName - The name of the automation account.
- Resource
Group stringName - Name of an Azure Resource group.
- Runbook
Type string | RunbookType Enum - Gets or sets the type of the runbook.
- Description string
- Gets or sets the description of the runbook.
- Draft
Runbook
Draft Args - Gets or sets the draft runbook properties.
- Location string
- 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 string
- Gets or sets the name of the resource.
- Publish
Content ContentLink Link Args - Gets or sets the published runbook content link.
- Runbook
Name string - The runbook name.
- map[string]string
- Gets or sets the tags attached to the resource.
- automation
Account StringName - The name of the automation account.
- resource
Group StringName - Name of an Azure Resource group.
- runbook
Type String | RunbookType Enum - Gets or sets the type of the runbook.
- description String
- Gets or sets the description of the runbook.
- draft
Runbook
Draft - Gets or sets the draft runbook properties.
- location String
- Gets or sets the location of the resource.
- log
Activity IntegerTrace - Gets or sets the activity-level tracing options of the runbook.
- log
Progress Boolean - Gets or sets progress log option.
- log
Verbose Boolean - Gets or sets verbose log option.
- name String
- Gets or sets the name of the resource.
- publish
Content ContentLink Link - Gets or sets the published runbook content link.
- runbook
Name String - The runbook name.
- Map<String,String>
- Gets or sets the tags attached to the resource.
- automation
Account stringName - The name of the automation account.
- resource
Group stringName - Name of an Azure Resource group.
- runbook
Type string | RunbookType Enum - Gets or sets the type of the runbook.
- description string
- Gets or sets the description of the runbook.
- draft
Runbook
Draft - Gets or sets the draft runbook properties.
- location string
- Gets or sets the location of the resource.
- log
Activity numberTrace - Gets or sets the activity-level tracing options of the runbook.
- log
Progress boolean - Gets or sets progress log option.
- log
Verbose boolean - Gets or sets verbose log option.
- name string
- Gets or sets the name of the resource.
- publish
Content ContentLink Link - Gets or sets the published runbook content link.
- runbook
Name 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
Runbook
Draft 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.
- automation
Account StringName - The name of the automation account.
- resource
Group StringName - Name of an Azure Resource group.
- runbook
Type 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.
- log
Activity NumberTrace - Gets or sets the activity-level tracing options of the runbook.
- log
Progress Boolean - Gets or sets progress log option.
- log
Verbose Boolean - Gets or sets verbose log option.
- name String
- Gets or sets the name of the resource.
- publish
Content Property MapLink - Gets or sets the published runbook content link.
- runbook
Name 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.
- Creation
Time string - Gets or sets the creation time.
- Etag string
- Gets or sets the etag of the resource.
- Job
Count int - Gets or sets the job count of the runbook.
- Last
Modified stringBy - Gets or sets the last modified by.
- Last
Modified stringTime - Gets or sets the last modified time.
- Output
Types 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.
- Provisioning
State 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.
- Creation
Time string - Gets or sets the creation time.
- Etag string
- Gets or sets the etag of the resource.
- Job
Count int - Gets or sets the job count of the runbook.
- Last
Modified stringBy - Gets or sets the last modified by.
- Last
Modified stringTime - Gets or sets the last modified time.
- Output
Types []string - Gets or sets the runbook output types.
- Parameters
map[string]Runbook
Parameter Response - Gets or sets the runbook parameters.
- Provisioning
State 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.
- creation
Time String - Gets or sets the creation time.
- etag String
- Gets or sets the etag of the resource.
- job
Count Integer - Gets or sets the job count of the runbook.
- last
Modified StringBy - Gets or sets the last modified by.
- last
Modified StringTime - Gets or sets the last modified time.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters
Map<String,Runbook
Parameter Response> - Gets or sets the runbook parameters.
- provisioning
State 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.
- creation
Time string - Gets or sets the creation time.
- etag string
- Gets or sets the etag of the resource.
- job
Count number - Gets or sets the job count of the runbook.
- last
Modified stringBy - Gets or sets the last modified by.
- last
Modified stringTime - Gets or sets the last modified time.
- output
Types string[] - Gets or sets the runbook output types.
- parameters
{[key: string]: Runbook
Parameter Response} - Gets or sets the runbook parameters.
- provisioning
State 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, Runbook
Parameter 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.
- creation
Time String - Gets or sets the creation time.
- etag String
- Gets or sets the etag of the resource.
- job
Count Number - Gets or sets the job count of the runbook.
- last
Modified StringBy - Gets or sets the last modified by.
- last
Modified StringTime - Gets or sets the last modified time.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook parameters.
- provisioning
State 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
- 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.
RunbookDraft, RunbookDraftArgs
- Creation
Time string - Gets or sets the creation time of the runbook draft.
- Draft
Content Pulumi.Link Azure Native. Automation. Inputs. Content Link - Gets or sets the draft runbook content link.
- In
Edit bool - Gets or sets whether runbook is in edit mode.
- Last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- Output
Types 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.
- Creation
Time string - 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 stringTime - Gets or sets the last modified time of the runbook draft.
- Output
Types []string - Gets or sets the runbook output types.
- Parameters
map[string]Runbook
Parameter - Gets or sets the runbook draft parameters.
- creation
Time String - Gets or sets the creation time of the runbook draft.
- draft
Content ContentLink Link - Gets or sets the draft runbook content link.
- in
Edit Boolean - Gets or sets whether runbook is in edit mode.
- last
Modified StringTime - Gets or sets the last modified time of the runbook draft.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters
Map<String,Runbook
Parameter> - Gets or sets the runbook draft parameters.
- creation
Time string - Gets or sets the creation time of the runbook draft.
- draft
Content ContentLink Link - Gets or sets the draft runbook content link.
- in
Edit boolean - Gets or sets whether runbook is in edit mode.
- last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- output
Types string[] - Gets or sets the runbook output types.
- parameters
{[key: string]: Runbook
Parameter} - 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, Runbook
Parameter] - Gets or sets the runbook draft parameters.
- creation
Time String - Gets or sets the creation time of the runbook draft.
- draft
Content Property MapLink - Gets or sets the draft runbook content link.
- in
Edit Boolean - Gets or sets whether runbook is in edit mode.
- last
Modified StringTime - Gets or sets the last modified time of the runbook draft.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook draft parameters.
RunbookDraftResponse, RunbookDraftResponseArgs
- Creation
Time string - Gets or sets the creation time of the runbook draft.
- Draft
Content Pulumi.Link Azure Native. Automation. Inputs. Content Link Response - Gets or sets the draft runbook content link.
- In
Edit bool - Gets or sets whether runbook is in edit mode.
- Last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- Output
Types 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.
- Creation
Time string - 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 stringTime - Gets or sets the last modified time of the runbook draft.
- Output
Types []string - Gets or sets the runbook output types.
- Parameters
map[string]Runbook
Parameter Response - Gets or sets the runbook draft parameters.
- creation
Time String - 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 Boolean - Gets or sets whether runbook is in edit mode.
- last
Modified StringTime - Gets or sets the last modified time of the runbook draft.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters
Map<String,Runbook
Parameter Response> - Gets or sets the runbook draft parameters.
- creation
Time string - 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 boolean - Gets or sets whether runbook is in edit mode.
- last
Modified stringTime - Gets or sets the last modified time of the runbook draft.
- output
Types string[] - Gets or sets the runbook output types.
- parameters
{[key: string]: Runbook
Parameter 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, Runbook
Parameter Response] - Gets or sets the runbook draft parameters.
- creation
Time String - Gets or sets the creation time of the runbook draft.
- draft
Content Property MapLink - Gets or sets the draft runbook content link.
- in
Edit Boolean - Gets or sets whether runbook is in edit mode.
- last
Modified StringTime - Gets or sets the last modified time of the runbook draft.
- output
Types List<String> - Gets or sets the runbook output types.
- parameters Map<Property Map>
- Gets or sets the runbook draft parameters.
RunbookParameter, RunbookParameterArgs
- Default
Value string - 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 string
- Gets or sets the type of the parameter.
- Default
Value string - 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 string
- Gets or sets the type of the parameter.
- default
Value String - Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value string - Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value String - Gets or sets the default value of parameter.
- is
Mandatory 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
- Default
Value string - 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 string
- Gets or sets the type of the parameter.
- Default
Value string - 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 string
- Gets or sets the type of the parameter.
- default
Value String - Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value string - Gets or sets the default value of parameter.
- is
Mandatory 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.
- default
Value String - Gets or sets the default value of parameter.
- is
Mandatory 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
- Power
Shell Workflow - PowerShellWorkflow
- Power
Shell - PowerShell
- Graph
Power Shell Workflow - GraphPowerShellWorkflow
- Graph
Power Shell - GraphPowerShell
- Python2
- Python2
- Python3
- Python3
- Runbook
Type Enum Script - Script
- Runbook
Type Enum Graph - Graph
- Runbook
Type Enum Power Shell Workflow - PowerShellWorkflow
- Runbook
Type Enum Power Shell - PowerShell
- Runbook
Type Enum Graph Power Shell Workflow - GraphPowerShellWorkflow
- Runbook
Type Enum Graph Power Shell - GraphPowerShell
- Runbook
Type Enum Python2 - Python2
- Runbook
Type Enum 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
- Power
Shell Workflow - PowerShellWorkflow
- Power
Shell - PowerShell
- Graph
Power Shell Workflow - GraphPowerShellWorkflow
- Graph
Power 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
- "Power
Shell Workflow" - PowerShellWorkflow
- "Power
Shell" - PowerShell
- "Graph
Power Shell Workflow" - GraphPowerShellWorkflow
- "Graph
Power 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/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0