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_name
required - string -
description
optional - string -
expiry_time
optional computed - string -
frequency
required - string -
id
optional computed - string -
interval
optional computed - number -
month_days
optional - set of number -
name
required - string -
resource_group_name
required - string -
start_time
optional computed - string -
timezone
optional - string -
week_days
optional - set of string -
monthly_occurrence
list block-
day
required - string -
occurrence
required - number
-
-
timeouts
single 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.