Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
add support for disk_controller_type
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Nov 11, 2024
1 parent 7a6a72c commit 8a4a295
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ No modules.
| <a name="input_dedicated_host_group_id"></a> [dedicated\_host\_group\_id](#input\_dedicated\_host\_group\_id) | (Optional) The ID of a Dedicated Host Group that this Linux Virtual Machine should be run within. Conflicts with `dedicated_host_id`. | `string` | `null` | no |
| <a name="input_dedicated_host_id"></a> [dedicated\_host\_id](#input\_dedicated\_host\_id) | (Optional) The ID of a Dedicated Host where this machine should be run on. Conflicts with `dedicated_host_group_id`. | `string` | `null` | no |
| <a name="input_disable_password_authentication"></a> [disable\_password\_authentication](#input\_disable\_password\_authentication) | (Optional) Should Password Authentication be disabled on this Virtual Machine? Defaults to `true`. Changing this forces a new resource to be created. | `bool` | `true` | no |
| <a name="input_disk_controller_type"></a> [disk\_controller\_type](#input\_disk\_controller\_type) | (Optional) Specifies the Disk Controller Type used for this Virtual Machine. Possible values are `SCSI` and `NVMe`. | `string` | `null` | no |
| <a name="input_edge_zone"></a> [edge\_zone](#input\_edge\_zone) | (Optional) Specifies the Edge Zone within the Azure Region where this Linux Virtual Machine should exist. Changing this forces a new Virtual Machine to be created. | `string` | `null` | no |
| <a name="input_encryption_at_host_enabled"></a> [encryption\_at\_host\_enabled](#input\_encryption\_at\_host\_enabled) | (Optional) Should all of the disks (including the temp disk) attached to this Virtual Machine be encrypted by enabling Encryption at Host? | `bool` | `null` | no |
| <a name="input_eviction_policy"></a> [eviction\_policy](#input\_eviction\_policy) | (Optional) Specifies what should happen when the Virtual Machine is evicted for price reasons when using a Spot instance. Possible values are `Deallocate` and `Delete`. Changing this forces a new resource to be created. | `string` | `null` | no |
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ resource "azurerm_linux_virtual_machine" "vm_linux" {
dedicated_host_group_id = var.dedicated_host_group_id
dedicated_host_id = var.dedicated_host_id
disable_password_authentication = var.disable_password_authentication
disk_controller_type = var.disk_controller_type
edge_zone = var.edge_zone
encryption_at_host_enabled = var.encryption_at_host_enabled
eviction_policy = var.eviction_policy
Expand Down Expand Up @@ -310,6 +311,7 @@ resource "azurerm_windows_virtual_machine" "vm_windows" {
custom_data = var.custom_data
dedicated_host_group_id = var.dedicated_host_group_id
dedicated_host_id = var.dedicated_host_id
disk_controller_type = var.disk_controller_type
edge_zone = var.edge_zone
enable_automatic_updates = var.automatic_updates_enabled
encryption_at_host_enabled = var.encryption_at_host_enabled
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ variable "disable_password_authentication" {
description = "(Optional) Should Password Authentication be disabled on this Virtual Machine? Defaults to `true`. Changing this forces a new resource to be created."
}

variable "disk_controller_type" {
type = string
default = null
description = "(Optional) Specifies the Disk Controller Type used for this Virtual Machine. Possible values are `SCSI` and `NVMe`."
}

variable "edge_zone" {
type = string
default = null
Expand Down

0 comments on commit 8a4a295

Please sign in to comment.