JobSchedule

Definition of the job schedule. API Version: 2019-06-01.

Example Usage

Create a job schedule

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var jobSchedule = new AzureNative.Automation.JobSchedule("jobSchedule", new()
{
AutomationAccountName = "ContoseAutomationAccount",
JobScheduleId = "0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc",
Parameters =
{
{ "jobscheduletag01", "jobschedulevalue01" },
{ "jobscheduletag02", "jobschedulevalue02" },
},
ResourceGroupName = "rg",
Runbook = new AzureNative.Automation.Inputs.RunbookAssociationPropertyArgs
{
Name = "TestRunbook",
},
Schedule = new AzureNative.Automation.Inputs.ScheduleAssociationPropertyArgs
{
Name = "ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2",
},
});
});
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.NewJobSchedule(ctx, "jobSchedule", &automation.JobScheduleArgs{
AutomationAccountName: pulumi.String("ContoseAutomationAccount"),
JobScheduleId: pulumi.String("0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc"),
Parameters: pulumi.StringMap{
"jobscheduletag01": pulumi.String("jobschedulevalue01"),
"jobscheduletag02": pulumi.String("jobschedulevalue02"),
},
ResourceGroupName: pulumi.String("rg"),
Runbook: &automation.RunbookAssociationPropertyArgs{
Name: pulumi.String("TestRunbook"),
},
Schedule: &automation.ScheduleAssociationPropertyArgs{
Name: pulumi.String("ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2"),
},
})
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.JobSchedule;
import com.pulumi.azurenative.automation.JobScheduleArgs;
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 jobSchedule = new JobSchedule("jobSchedule", JobScheduleArgs.builder()
.automationAccountName("ContoseAutomationAccount")
.jobScheduleId("0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc")
.parameters(Map.ofEntries(
Map.entry("jobscheduletag01", "jobschedulevalue01"),
Map.entry("jobscheduletag02", "jobschedulevalue02")
))
.resourceGroupName("rg")
.runbook(Map.of("name", "TestRunbook"))
.schedule(Map.of("name", "ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2"))
.build());
}
}

Import

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

$ pulumi import azure-native:automation:JobSchedule myresource1 /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc

Properties

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

Gets or sets the id of job schedule.

Link copied to clipboard
val name: Output<String>

Gets the name of the variable.

Link copied to clipboard
val parameters: Output<Map<String, String>>?

Gets or sets the parameters of the job schedule.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gets or sets the runbook.

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

Gets or sets the hybrid worker group that the scheduled job should run on.

Link copied to clipboard

Gets or sets the schedule.

Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val urn: Output<String>