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
-
idoptional computed - string -
lab_namerequired - string -
locationrequired - string -
namerequired - string -
resource_group_namerequired - string -
statusoptional - string -
tagsoptional - map from string to string -
task_typerequired - string -
time_zone_idrequired - string -
daily_recurrencelist block-
timerequired - string
-
-
hourly_recurrencelist block-
minuterequired - number
-
-
notification_settingslist block-
statusoptional - string -
time_in_minutesoptional - number -
webhook_urloptional - string
-
-
timeoutssingle block -
weekly_recurrencelist 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
apiVersionrequired - stringlocationoptional - stringThe location of the resource.
namerequired - stringThe name of the schedule.
propertiesrequireddailyRecurrenceoptionaltimeoptional - stringThe time of day the schedule will occur.
hourlyRecurrenceoptionalminuteoptional - integerMinutes of the hour the schedule will run.
notificationSettingsoptionalemailRecipientoptional - stringThe email recipient to send notifications to (can be a list of semi-colon separated email addresses).
notificationLocaleoptional - stringThe locale to use when sending a notification (fallback for unsupported languages is EN).
statusoptional - stringIf notifications are enabled for this schedule (i.e. Enabled, Disabled).
timeInMinutesoptional - integerTime in minutes before event at which notification will be sent.
webhookUrloptional - stringThe webhook URL to which the notification will be sent.
statusoptional - stringThe status of the schedule (i.e. Enabled, Disabled).
targetResourceIdoptional - stringThe resource ID to which the schedule belongs
taskTypeoptional - stringThe task type of the schedule (e.g. LabVmsShutdownTask, LabVmAutoStart).
timeZoneIdoptional - stringThe time zone ID (e.g. Pacific Standard time).
weeklyRecurrenceoptionaltimeoptional - stringThe time of the day the schedule will occur.
weekdaysoptional - arrayThe days of the week for which the schedule is set (e.g. Sunday, Monday, Tuesday, etc.).
tagsoptional - stringThe tags of the resource.
typerequired - 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.