JobScheduleArgs

data class JobScheduleArgs(val automationAccountName: Output<String>? = null, val jobScheduleId: Output<String>? = null, val parameters: Output<Map<String, String>>? = null, val resourceGroupName: Output<String>? = null, val runOn: Output<String>? = null, val runbookName: Output<String>? = null, val scheduleName: Output<String>? = null) : ConvertibleToJava<JobScheduleArgs>

Links an Automation Runbook and Schedule.

Example Usage

This is an example of just the Job Schedule.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.automation.JobSchedule;
import com.pulumi.azure.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 example = new JobSchedule("example", JobScheduleArgs.builder()
.automationAccountName("tf-automation-account")
.parameters(Map.ofEntries(
Map.entry("resourcegroup", "tf-rgr-vm"),
Map.entry("vmname", "TF-VM-01")
))
.resourceGroupName("tf-rgr-automation")
.runbookName("Get-VirtualMachine")
.scheduleName("hour")
.build());
}
}

Import

Automation Job Schedules can be imported using the resource id, e.g.

$ pulumi import azure:automation/jobSchedule:JobSchedule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/jobSchedules/10000000-1001-1001-1001-000000000001

Constructors

Link copied to clipboard
fun JobScheduleArgs(automationAccountName: Output<String>? = null, jobScheduleId: Output<String>? = null, parameters: Output<Map<String, String>>? = null, resourceGroupName: Output<String>? = null, runOn: Output<String>? = null, runbookName: Output<String>? = null, scheduleName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): JobScheduleArgs

Properties

Link copied to clipboard
val automationAccountName: Output<String>? = null

The name of the Automation Account in which the Job Schedule is created. Changing this forces a new resource to be created.

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

(Optional) The UUID identifying the Automation Job Schedule.

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

A map of key/value pairs corresponding to the arguments that can be passed to the Runbook. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which the Job Schedule is created. Changing this forces a new resource to be created.

Link copied to clipboard
val runbookName: Output<String>? = null

The name of a Runbook to link to a Schedule. It needs to be in the same Automation Account as the Schedule and Job Schedule. Changing this forces a new resource to be created.

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

Name of a Hybrid Worker Group the Runbook will be executed on. Changing this forces a new resource to be created.

Link copied to clipboard
val scheduleName: Output<String>? = null

The name of the Schedule. Changing this forces a new resource to be created.