Schedule
Manages a Automation Schedule.
Create a Schedule Resource
new Schedule(name: string, args: ScheduleArgs, opts?: CustomResourceOptions);def Schedule(resource_name, opts=None, automation_account_name=None, description=None, expiry_time=None, frequency=None, interval=None, month_days=None, monthly_occurrences=None, name=None, resource_group_name=None, start_time=None, timezone=None, week_days=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:
- Automation
Account stringName The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- Frequency string
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- Resource
Group stringName The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- Description string
A description for this Schedule.
- Expiry
Time string The end time of the schedule.
- Interval int
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- Month
Days List<int> List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- Monthly
Occurrences List<ScheduleMonthly Occurrence Args> List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- Name string
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- Start
Time string Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- Timezone string
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- Week
Days List<string> List of days of the week that the job should execute on. Only valid when frequency is
Week.
- Automation
Account stringName The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- Frequency string
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- Resource
Group stringName The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- Description string
A description for this Schedule.
- Expiry
Time string The end time of the schedule.
- Interval int
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- Month
Days []int List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- Monthly
Occurrences []ScheduleMonthly Occurrence List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- Name string
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- Start
Time string Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- Timezone string
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- Week
Days []string List of days of the week that the job should execute on. Only valid when frequency is
Week.
- automation
Account stringName The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- frequency string
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- resource
Group stringName The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- description string
A description for this Schedule.
- expiry
Time string The end time of the schedule.
- interval number
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- month
Days number[] List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- monthly
Occurrences ScheduleMonthly Occurrence[] List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- name string
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- start
Time string Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- timezone string
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- week
Days string[] List of days of the week that the job should execute on. Only valid when frequency is
Week.
- automation_
account_ strname The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- frequency str
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- resource_
group_ strname The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- description str
A description for this Schedule.
- expiry_
time str The end time of the schedule.
- interval float
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- month_
days List[Integer] List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- monthly_
occurrences List[ScheduleMonthly Occurrence] List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- name str
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- start_
time str Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- timezone str
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- week_
days List[str] List of days of the week that the job should execute on. Only valid when frequency is
Week.
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, automation_account_name=None, description=None, expiry_time=None, frequency=None, interval=None, month_days=None, monthly_occurrences=None, name=None, resource_group_name=None, start_time=None, timezone=None, week_days=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:
- Automation
Account stringName The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- Description string
A description for this Schedule.
- Expiry
Time string The end time of the schedule.
- Frequency string
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- Interval int
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- Month
Days List<int> List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- Monthly
Occurrences List<ScheduleMonthly Occurrence Args> List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- Name string
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- Start
Time string Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- Timezone string
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- Week
Days List<string> List of days of the week that the job should execute on. Only valid when frequency is
Week.
- Automation
Account stringName The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- Description string
A description for this Schedule.
- Expiry
Time string The end time of the schedule.
- Frequency string
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- Interval int
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- Month
Days []int List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- Monthly
Occurrences []ScheduleMonthly Occurrence List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- Name string
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- Start
Time string Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- Timezone string
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- Week
Days []string List of days of the week that the job should execute on. Only valid when frequency is
Week.
- automation
Account stringName The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- description string
A description for this Schedule.
- expiry
Time string The end time of the schedule.
- frequency string
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- interval number
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- month
Days number[] List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- monthly
Occurrences ScheduleMonthly Occurrence[] List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- name string
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- start
Time string Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- timezone string
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- week
Days string[] List of days of the week that the job should execute on. Only valid when frequency is
Week.
- automation_
account_ strname The name of the automation account in which the Schedule is created. Changing this forces a new resource to be created.
- description str
A description for this Schedule.
- expiry_
time str The end time of the schedule.
- frequency str
The frequency of the schedule. - can be either
OneTime,Day,Hour,Week, orMonth.- interval float
The number of
frequencys between runs. Only valid when frequency isDay,Hour,Week, orMonthand defaults to1.- month_
days List[Integer] List of days of the month that the job should execute on. Must be between
1and31.-1for last day of the month. Only valid when frequency isMonth.- monthly_
occurrences List[ScheduleMonthly Occurrence] List of occurrences of days within a month. Only valid when frequency is
Month. Themonthly_occurrenceblock supports fields documented below.- name str
Specifies the name of the Schedule. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
- start_
time str Start time of the schedule. Must be at least five minutes in the future. Defaults to seven minutes in the future from the time the resource is created.
- timezone str
The timezone of the start time. Defaults to
UTC. For possible values see: https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values- week_
days List[str] List of days of the week that the job should execute on. Only valid when frequency is
Week.
Supporting Types
ScheduleMonthlyOccurrence
- Day string
Day of the occurrence. Must be one of
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday.- Occurrence int
Occurrence of the week within the month. Must be between
1and5.-1for last week within the month.
- Day string
Day of the occurrence. Must be one of
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday.- Occurrence int
Occurrence of the week within the month. Must be between
1and5.-1for last week within the month.
- day string
Day of the occurrence. Must be one of
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday.- occurrence number
Occurrence of the week within the month. Must be between
1and5.-1for last week within the month.
- day str
Day of the occurrence. Must be one of
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday.- occurrence float
Occurrence of the week within the month. Must be between
1and5.-1for last week within the month.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.