Schedule Args
data class ScheduleArgs(val automationAccountName: Output<String>? = null, val description: Output<String>? = null, val expiryTime: Output<String>? = null, val frequency: Output<String>? = null, val interval: Output<Int>? = null, val monthDays: Output<List<Int>>? = null, val monthlyOccurrences: Output<List<ScheduleMonthlyOccurrenceArgs>>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val startTime: Output<String>? = null, val timezone: Output<String>? = null, val weekDays: Output<List<String>>? = null) : ConvertibleToJava<ScheduleArgs>
Manages a Automation Schedule.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.automation.Account;
import com.pulumi.azure.automation.AccountArgs;
import com.pulumi.azure.automation.Schedule;
import com.pulumi.azure.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var exampleSchedule = new Schedule("exampleSchedule", ScheduleArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.automationAccountName(exampleAccount.name())
.frequency("Week")
.interval(1)
.timezone("Australia/Perth")
.startTime("2014-04-15T18:00:15+02:00")
.description("This is an example schedule")
.weekDays("Friday")
.build());
}
}
Content copied to clipboard
Import
Automation Schedule can be imported using the resource id
, e.g.
$ pulumi import azure:automation/schedule:Schedule schedule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/schedules/schedule1
Content copied to clipboard
Constructors
Link copied to clipboard
fun ScheduleArgs(automationAccountName: Output<String>? = null, description: Output<String>? = null, expiryTime: Output<String>? = null, frequency: Output<String>? = null, interval: Output<Int>? = null, monthDays: Output<List<Int>>? = null, monthlyOccurrences: Output<List<ScheduleMonthlyOccurrenceArgs>>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, startTime: Output<String>? = null, timezone: Output<String>? = null, weekDays: Output<List<String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The timezone of the start time. Defaults to Etc/UTC
. For possible values see: https://docs.microsoft.com/en-us/rest/api/maps/timezone/gettimezoneenumwindows