Schedule

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

Example Usage

Create or update a schedule

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var schedule = new AzureNative.Automation.Schedule("schedule", new()
{
AdvancedSchedule = null,
AutomationAccountName = "myAutomationAccount33",
Description = "my description of schedule goes here",
ExpiryTime = "2017-04-01T17:28:57.2494819Z",
Frequency = "Hour",
Interval = 1,
Name = "mySchedule",
ResourceGroupName = "rg",
ScheduleName = "mySchedule",
StartTime = "2017-03-27T17:28:57.2494819Z",
});
});
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.NewSchedule(ctx, "schedule", &automation.ScheduleArgs{
AdvancedSchedule: nil,
AutomationAccountName: pulumi.String("myAutomationAccount33"),
Description: pulumi.String("my description of schedule goes here"),
ExpiryTime: pulumi.String("2017-04-01T17:28:57.2494819Z"),
Frequency: pulumi.String("Hour"),
Interval: pulumi.Any(1),
Name: pulumi.String("mySchedule"),
ResourceGroupName: pulumi.String("rg"),
ScheduleName: pulumi.String("mySchedule"),
StartTime: pulumi.String("2017-03-27T17:28:57.2494819Z"),
})
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.Schedule;
import com.pulumi.azurenative.automation.ScheduleArgs;
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 schedule = new Schedule("schedule", ScheduleArgs.builder()
.advancedSchedule()
.automationAccountName("myAutomationAccount33")
.description("my description of schedule goes here")
.expiryTime("2017-04-01T17:28:57.2494819Z")
.frequency("Hour")
.interval(1)
.name("mySchedule")
.resourceGroupName("rg")
.scheduleName("mySchedule")
.startTime("2017-03-27T17:28:57.2494819Z")
.build());
}
}

Import

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

$ pulumi import azure-native:automation:Schedule mySchedule /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule

Properties

Link copied to clipboard

Gets or sets the advanced schedule.

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

Gets or sets the creation time.

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

Gets or sets the description.

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

Gets or sets the end time of the schedule.

Link copied to clipboard

Gets or sets the expiry time's offset in minutes.

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

Gets or sets the frequency of the schedule.

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

Gets or sets the interval of the schedule.

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

Gets or sets a value indicating whether this schedule is enabled.

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

Gets or sets the last modified time.

Link copied to clipboard
val name: Output<String>

The name of the resource

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

Gets or sets the next run time of the schedule.

Link copied to clipboard

Gets or sets the next run time's offset in minutes.

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

Gets or sets the start time of the schedule.

Link copied to clipboard

Gets the start time's offset in minutes.

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

Gets or sets the time zone of the schedule.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>