Azure Automation Schedule
This page shows how to write Terraform and Azure Resource Manager for Automation Schedule and write them securely.
azurerm_automation_schedule (Terraform)
The Schedule in Automation can be configured in Terraform with the resource name azurerm_automation_schedule. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_automation_schedule" "once-a-week" {
name = "once-a-week"
resource_group_name = azurerm_automation_account.resource-monitor.resource_group_name
automation_account_name = azurerm_automation_account.resource-monitor.name
frequency = "Week"
interval = 1
resource "azurerm_automation_schedule" "vmstartup" {
name = "vm-startup-schedule"
resource_group_name = data.azurerm_resource_group.example.name
automation_account_name = data.azurerm_automation_account.example.name
frequency = "Day"
interval = 1
Parameters
-
automation_account_namerequired - string -
descriptionoptional - string -
expiry_timeoptional computed - string -
frequencyrequired - string -
idoptional computed - string -
intervaloptional computed - number -
month_daysoptional - set of number -
namerequired - string -
resource_group_namerequired - string -
start_timeoptional computed - string -
timezoneoptional - string -
week_daysoptional - set of string -
monthly_occurrencelist block-
dayrequired - string -
occurrencerequired - number
-
-
timeoutssingle block
Explanation in Terraform Registry
Manages a Automation Schedule.
Microsoft.Automation/automationAccounts/schedules (Azure Resource Manager)
The automationAccounts/schedules in Microsoft.Automation can be configured in Azure Resource Manager with the resource name Microsoft.Automation/automationAccounts/schedules. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Frequently asked questions
What is Azure Automation Schedule?
Azure Automation Schedule is a resource for Automation of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Automation Schedule?
For Terraform, the mozilla-platform-ops/relops_infra_as_code and paul-p-cb/azure_automation source code examples are useful. See the Terraform Example section for further details.