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

main.tf#L7
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
main.tf#L7
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

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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

createLab.json
{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "newLabName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "labName": {

Parameters

  • apiVersion required - string
  • location optional - string

    The location of the resource.

  • name required - string

    The name of the schedule.

  • properties required
      • dailyRecurrence optional
          • time optional - string

            The time of day the schedule will occur.

      • hourlyRecurrence optional
          • minute optional - integer

            Minutes of the hour the schedule will run.

      • notificationSettings optional
          • emailRecipient optional - string

            The email recipient to send notifications to (can be a list of semi-colon separated email addresses).

          • notificationLocale optional - string

            The locale to use when sending a notification (fallback for unsupported languages is EN).

          • status optional - string

            If notifications are enabled for this schedule (i.e. Enabled, Disabled).

          • timeInMinutes optional - integer

            Time in minutes before event at which notification will be sent.

          • webhookUrl optional - string

            The webhook URL to which the notification will be sent.

      • status optional - string

        The status of the schedule (i.e. Enabled, Disabled).

      • targetResourceId optional - string

        The resource ID to which the schedule belongs

      • taskType optional - string

        The task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).

      • timeZoneId optional - string

        The time zone ID (e.g. Pacific Standard time).

      • weeklyRecurrence optional
          • time optional - string

            The time of the day the schedule will occur.

          • weekdays optional - array

            The days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).

  • tags optional - string

    The 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.