terraform/quickstart/101-vm-auto-shutdown
2023-09-26 10:00:13 -04:00
..
2023-09-26 09:56:46 -04:00
2023-09-26 10:00:13 -04:00
2023-09-25 17:12:51 -04:00

Terraform Azure VM Automation Example

This repository contains Terraform code to create resources in Azure, including an Automation account, a PowerShell runbook, and schedules for the runbook.

Terraform resource types

Variables

Name Description Default
resource_group_location The location where the resource group should be created. East US
prefix A prefix for naming resources. demo
vnet_address_space Address space for the virtual network. ["10.0.0.0/16"]
subnet_address_prefixes Address prefixes for the subnet. ["10.0.1.0/24"]
public_ip_allocation_method Allocation method for the public IP. Dynamic
vm_size Size of the virtual machine. Standard_DS1_v2
vm_image Source image reference for the virtual machine. Windows Server 2022
storage_account_tier Performance tier of the storage account. Standard
storage_account_replication_type Replication type for the storage account. LRS
automation_account_sku_name SKU name for the Azure Automation Account. Basic
runbook_type Type of the runbook. PowerShell
runbook_uri URI for the runbook content. https://raw.githubusercontent.com/azureautomation/runbooks/master/Utility/ASM/Set-AzureScheduleWithRunbook.ps1
one_time_schedule_start_time Start time for the one-time runbook schedule. "2023-09-23T00:00:00Z"
hourly_schedule_start_time Start time for the hourly runbook schedule. "2023-09-23T01:00:00Z"