Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebase to latest master
Browse files Browse the repository at this point in the history
lonegunmanb committed Nov 15, 2022
1 parent a840e7c commit 4b73f34
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -62,6 +62,7 @@ resource "azurerm_virtual_machine" "vm_linux" {

storage_os_disk {
create_option = "FromImage"
disk_size_gb = var.storage_os_disk_size_gb
name = "osdisk-${var.vm_hostname}-${count.index}"
caching = "ReadWrite"
managed_disk_type = var.storage_account_type
@@ -176,6 +177,7 @@ resource "azurerm_virtual_machine" "vm_windows" {

storage_os_disk {
create_option = "FromImage"
disk_size_gb = var.storage_os_disk_size_gb
name = "${var.vm_hostname}-osdisk-${count.index}"
caching = "ReadWrite"
managed_disk_type = var.storage_account_type
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -173,6 +173,12 @@ variable "source_address_prefixes" {
default = ["0.0.0.0/0"]
}

variable "storage_os_disk_size_gb" {
description = "(Optional) Specifies the size of the data disk in gigabytes."
type = number
default = null
}

variable "ssh_key" {
description = "Path to the public key to be used for ssh access to the VM. Only used with non-Windows vms and can be left as-is even if using Windows vms. If specifying a path to a certification on a Windows machine to provision a linux vm use the / in the path versus backslash.e.g. c : /home/id_rsa.pub."
type = string

0 comments on commit 4b73f34

Please sign in to comment.