File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,6 +202,14 @@ Type: `string`
202202
203203The following input variables are optional (have default values):
204204
205+ ### <a name =" input_accelerated_networking_enabled " ></a > [ accelerated\_ networking\_ enabled] ( #input\_ accelerated\_ networking\_ enabled )
206+
207+ Description: Enable accelerated networking on the network interface created by this module. Only applies when create\_ network\_ interface is true.
208+
209+ Type: ` bool `
210+
211+ Default: ` false `
212+
205213### <a name =" input_additional_capabilities " ></a > [ additional\_ capabilities] ( #input\_ additional\_ capabilities )
206214
207215Description: Enable additional capabilities.
@@ -603,6 +611,14 @@ object({
603611
604612Default: ` null `
605613
614+ ### <a name =" input_ip_forwarding_enabled " ></a > [ ip\_ forwarding\_ enabled] ( #input\_ ip\_ forwarding\_ enabled )
615+
616+ Description: Enable ip forwarding on the network interface created by this module. Only applies when create\_ network\_ interface is true.
617+
618+ Type: ` bool `
619+
620+ Default: ` false `
621+
606622### <a name =" input_key_vault_id " ></a > [ key\_ vault\_ id] ( #input\_ key\_ vault\_ id )
607623
608624Description: The resource ID of the Azure Key Vault where the generated admin password or SSH private key should be stored as a secret.
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ resource "azurerm_network_interface" "this" {
3232
3333 dns_servers = var. dns_servers
3434
35+ accelerated_networking_enabled = var. accelerated_networking_enabled
36+ ip_forwarding_enabled = var. ip_forwarding_enabled
37+
3538 ip_configuration {
3639 name = " ipconfig1"
3740 private_ip_address = var. private_ip_address
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ locals {
1313 windows_license_types = [" None" , " Windows_Client" , " Windows_Server" ]
1414}
1515
16+ variable "accelerated_networking_enabled" {
17+ description = " Enable accelerated networking on the network interface created by this module. Only applies when create_network_interface is true."
18+ type = bool
19+ default = false
20+ }
21+
1622variable "additional_capabilities" {
1723 description = <<- EOT
1824 Enable additional capabilities.
@@ -444,6 +450,12 @@ variable "image" {
444450 }
445451}
446452
453+ variable "ip_forwarding_enabled" {
454+ description = " Enable ip forwarding on the network interface created by this module. Only applies when create_network_interface is true."
455+ type = bool
456+ default = false
457+ }
458+
447459variable "key_vault_id" {
448460 description = <<- EOT
449461 The resource ID of the Azure Key Vault where the generated admin password or SSH private key should be stored as a secret.
You can’t perform that action at this time.
0 commit comments