Azure Dev Test Schedule
This page shows how to write Terraform and Azure Resource Manager for Dev Test Schedule and write them securely.
azurerm_dev_test_schedule (Terraform)
The Schedule in Dev Test can be configured in Terraform with the resource name azurerm_dev_test_schedule
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_dev_test_schedule" "this" {
lab_name = var.lab_name
location = var.location
name = var.name
resource_group_name = var.resource_group_name
status = var.status
resource "azurerm_dev_test_schedule" "this" {
lab_name = var.lab_name
location = var.location
name = var.name
resource_group_name = var.resource_group_name
status = var.status
Parameters
-
id
optional computed - string -
lab_name
required - string -
location
required - string -
name
required - string -
resource_group_name
required - string -
status
optional - string -
tags
optional - map from string to string -
task_type
required - string -
time_zone_id
required - string -
daily_recurrence
list block-
time
required - string
-
-
hourly_recurrence
list block-
minute
required - number
-
-
notification_settings
list block-
status
optional - string -
time_in_minutes
optional - number -
webhook_url
optional - string
-
-
timeouts
single block -
weekly_recurrence
list block
Explanation in Terraform Registry
Manages automated startup and shutdown schedules for Azure Dev Test Lab.
Microsoft.DevTestLab/labs/schedules (Azure Resource Manager)
The labs/schedules in Microsoft.DevTestLab can be configured in Azure Resource Manager with the resource name Microsoft.DevTestLab/labs/schedules
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"newLabName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"labName": {
Parameters
apiVersion
required - stringlocation
optional - stringThe location of the resource.
name
required - stringThe name of the schedule.
properties
requireddailyRecurrence
optionaltime
optional - stringThe time of day the schedule will occur.
hourlyRecurrence
optionalminute
optional - integerMinutes of the hour the schedule will run.
notificationSettings
optionalemailRecipient
optional - stringThe email recipient to send notifications to (can be a list of semi-colon separated email addresses).
notificationLocale
optional - stringThe locale to use when sending a notification (fallback for unsupported languages is EN).
status
optional - stringIf notifications are enabled for this schedule (i.e. Enabled, Disabled).
timeInMinutes
optional - integerTime in minutes before event at which notification will be sent.
webhookUrl
optional - stringThe webhook URL to which the notification will be sent.
status
optional - stringThe status of the schedule (i.e. Enabled, Disabled).
targetResourceId
optional - stringThe resource ID to which the schedule belongs
taskType
optional - stringThe task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
timeZoneId
optional - stringThe time zone ID (e.g. Pacific Standard time).
weeklyRecurrence
optionaltime
optional - stringThe time of the day the schedule will occur.
weekdays
optional - arrayThe days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).
tags
optional - stringThe tags of the resource.
type
required - string
Frequently asked questions
What is Azure Dev Test Schedule?
Azure Dev Test Schedule is a resource for Dev Test of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Dev Test Schedule?
For Terraform, the niveklabs/azurerm and kevinhead/azurerm source code examples are useful. See the Terraform Example section for further details.
For Azure Resource Manager, the mikenelson-io/DevTestLabs, mikenelson-io/Azure-DevTest-Labs and nikkh/dtl source code examples are useful. See the Azure Resource Manager Example section for further details.