Schedule
Manages automated startup and shutdown schedules for Azure Dev Test Lab.
Create a Schedule Resource
new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);def Schedule(resource_name, opts=None, daily_recurrence=None, hourly_recurrence=None, lab_name=None, location=None, name=None, notification_settings=None, resource_group_name=None, status=None, tags=None, task_type=None, time_zone_id=None, weekly_recurrence=None, __props__=None);func NewSchedule(ctx *Context, name string, args ScheduleArgs, opts ...ResourceOption) (*Schedule, error)public Schedule(string name, ScheduleArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Schedule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Schedule resource accepts the following input properties:
- Lab
Name string The name of the dev test lab. Changing this forces a new resource to be created.
- Notification
Settings ScheduleNotification Settings Args - Resource
Group stringName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- Task
Type string The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- Time
Zone stringId The time zone ID (e.g. Pacific Standard time).
- Daily
Recurrence ScheduleDaily Recurrence Args - Hourly
Recurrence ScheduleHourly Recurrence Args - Location string
The location where the schedule is created. Changing this forces a new resource to be created.
- Name string
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- Status string
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Weekly
Recurrence ScheduleWeekly Recurrence Args
- Lab
Name string The name of the dev test lab. Changing this forces a new resource to be created.
- Notification
Settings ScheduleNotification Settings - Resource
Group stringName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- Task
Type string The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- Time
Zone stringId The time zone ID (e.g. Pacific Standard time).
- Daily
Recurrence ScheduleDaily Recurrence - Hourly
Recurrence ScheduleHourly Recurrence - Location string
The location where the schedule is created. Changing this forces a new resource to be created.
- Name string
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- Status string
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- map[string]string
A mapping of tags to assign to the resource.
- Weekly
Recurrence ScheduleWeekly Recurrence
- lab
Name string The name of the dev test lab. Changing this forces a new resource to be created.
- notification
Settings ScheduleNotification Settings - resource
Group stringName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- task
Type string The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- time
Zone stringId The time zone ID (e.g. Pacific Standard time).
- daily
Recurrence ScheduleDaily Recurrence - hourly
Recurrence ScheduleHourly Recurrence - location string
The location where the schedule is created. Changing this forces a new resource to be created.
- name string
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- status string
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- {[key: string]: string}
A mapping of tags to assign to the resource.
- weekly
Recurrence ScheduleWeekly Recurrence
- lab_
name str The name of the dev test lab. Changing this forces a new resource to be created.
- notification_
settings Dict[ScheduleNotification Settings] - resource_
group_ strname The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- task_
type str The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- time_
zone_ strid The time zone ID (e.g. Pacific Standard time).
- daily_
recurrence Dict[ScheduleDaily Recurrence] - hourly_
recurrence Dict[ScheduleHourly Recurrence] - location str
The location where the schedule is created. Changing this forces a new resource to be created.
- name str
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- status str
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- Dict[str, str]
A mapping of tags to assign to the resource.
- weekly_
recurrence Dict[ScheduleWeekly Recurrence]
Outputs
All input properties are implicitly available as output properties. Additionally, the Schedule resource produces the following output properties:
Look up an Existing Schedule Resource
Get an existing Schedule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ScheduleState, opts?: CustomResourceOptions): Schedulestatic get(resource_name, id, opts=None, daily_recurrence=None, hourly_recurrence=None, lab_name=None, location=None, name=None, notification_settings=None, resource_group_name=None, status=None, tags=None, task_type=None, time_zone_id=None, weekly_recurrence=None, __props__=None);func GetSchedule(ctx *Context, name string, id IDInput, state *ScheduleState, opts ...ResourceOption) (*Schedule, error)public static Schedule Get(string name, Input<string> id, ScheduleState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Daily
Recurrence ScheduleDaily Recurrence Args - Hourly
Recurrence ScheduleHourly Recurrence Args - Lab
Name string The name of the dev test lab. Changing this forces a new resource to be created.
- Location string
The location where the schedule is created. Changing this forces a new resource to be created.
- Name string
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- Notification
Settings ScheduleNotification Settings Args - Resource
Group stringName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- Status string
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Task
Type string The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- Time
Zone stringId The time zone ID (e.g. Pacific Standard time).
- Weekly
Recurrence ScheduleWeekly Recurrence Args
- Daily
Recurrence ScheduleDaily Recurrence - Hourly
Recurrence ScheduleHourly Recurrence - Lab
Name string The name of the dev test lab. Changing this forces a new resource to be created.
- Location string
The location where the schedule is created. Changing this forces a new resource to be created.
- Name string
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- Notification
Settings ScheduleNotification Settings - Resource
Group stringName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- Status string
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- map[string]string
A mapping of tags to assign to the resource.
- Task
Type string The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- Time
Zone stringId The time zone ID (e.g. Pacific Standard time).
- Weekly
Recurrence ScheduleWeekly Recurrence
- daily
Recurrence ScheduleDaily Recurrence - hourly
Recurrence ScheduleHourly Recurrence - lab
Name string The name of the dev test lab. Changing this forces a new resource to be created.
- location string
The location where the schedule is created. Changing this forces a new resource to be created.
- name string
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- notification
Settings ScheduleNotification Settings - resource
Group stringName The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- status string
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- {[key: string]: string}
A mapping of tags to assign to the resource.
- task
Type string The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- time
Zone stringId The time zone ID (e.g. Pacific Standard time).
- weekly
Recurrence ScheduleWeekly Recurrence
- daily_
recurrence Dict[ScheduleDaily Recurrence] - hourly_
recurrence Dict[ScheduleHourly Recurrence] - lab_
name str The name of the dev test lab. Changing this forces a new resource to be created.
- location str
The location where the schedule is created. Changing this forces a new resource to be created.
- name str
The name of the dev test lab schedule. Valid value for name depends on the
task_type. For instance for task_typeLabVmsStartupTaskthe name needs to beLabVmAutoStart.- notification_
settings Dict[ScheduleNotification Settings] - resource_
group_ strname The name of the resource group in which to create the dev test lab schedule. Changing this forces a new resource to be created.
- status str
The status of this schedule. Possible values are
EnabledandDisabled. Defaults toDisabled.- Dict[str, str]
A mapping of tags to assign to the resource.
- task_
type str The task type of the schedule. Possible values include
LabVmsShutdownTaskandLabVmAutoStart.- time_
zone_ strid The time zone ID (e.g. Pacific Standard time).
- weekly_
recurrence Dict[ScheduleWeekly Recurrence]
Supporting Types
ScheduleDailyRecurrence
ScheduleHourlyRecurrence
ScheduleNotificationSettings
- Status string
The status of the notification. Possible values are
EnabledandDisabled. Defaults toDisabled- Time
In intMinutes Time in minutes before event at which notification will be sent.
- Webhook
Url string The webhook URL to which the notification will be sent.
- Status string
The status of the notification. Possible values are
EnabledandDisabled. Defaults toDisabled- Time
In intMinutes Time in minutes before event at which notification will be sent.
- Webhook
Url string The webhook URL to which the notification will be sent.
- status string
The status of the notification. Possible values are
EnabledandDisabled. Defaults toDisabled- time
In numberMinutes Time in minutes before event at which notification will be sent.
- webhook
Url string The webhook URL to which the notification will be sent.
- status str
The status of the notification. Possible values are
EnabledandDisabled. Defaults toDisabled- time
In floatMinutes Time in minutes before event at which notification will be sent.
- webhook
Url str The webhook URL to which the notification will be sent.
ScheduleWeeklyRecurrence
- Time string
The time when the schedule takes effect.
- Week
Days List<string> A list of days that this schedule takes effect . Possible values include
Monday,Tuesday,Wednesday,Thursday,Friday,SaturdayandSunday.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.