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

Commit

Permalink
feat(vmss): support for public IP prefix for mgmt interface (#144)
Browse files Browse the repository at this point in the history
Closes #130
  • Loading branch information
michalbil authored Mar 4, 2022
1 parent f5f28d8 commit d40229d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/vmss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ No modules.
| <a name="input_location"></a> [location](#input\_location) | Region to install VM-Series and dependencies. | `string` | n/a | yes |
| <a name="input_metrics_retention_in_days"></a> [metrics\_retention\_in\_days](#input\_metrics\_retention\_in\_days) | Specifies the metrics retention period in days. Possible values are 0, 30, 60, 90, 120, 180, 270, 365, 550 or 730. Defaults to 90. A special value 0 disables creation of Application Insights altogether, which is incompatible with `create_autoscaling`. | `number` | `null` | no |
| <a name="input_mgmt_pip_domain_name_label"></a> [mgmt\_pip\_domain\_name\_label](#input\_mgmt\_pip\_domain\_name\_label) | n/a | `string` | `null` | no |
| <a name="input_mgmt_pip_prefix_id"></a> [mgmt\_pip\_prefix\_id](#input\_mgmt\_pip\_prefix\_id) | Public IP address prefix id to use for management interface. | `string` | `null` | no |
| <a name="input_name_application_insights"></a> [name\_application\_insights](#input\_name\_application\_insights) | Name of the Applications Insights instance to be created. Can be null, in which case a default name is auto-generated. | `string` | `null` | no |
| <a name="input_name_autoscale"></a> [name\_autoscale](#input\_name\_autoscale) | Name of the Autoscale Settings to be created. Can be null, in which case a default name is auto-generated. | `string` | `null` | no |
| <a name="input_name_fw_mgmt_pip"></a> [name\_fw\_mgmt\_pip](#input\_name\_fw\_mgmt\_pip) | n/a | `string` | `"fw-mgmt-pip"` | no |
Expand Down
1 change: 1 addition & 0 deletions modules/vmss/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ resource "azurerm_linux_virtual_machine_scale_set" "this" {
name = "${var.name_prefix}${var.name_fw_mgmt_pip}"
domain_name_label = var.mgmt_pip_domain_name_label
idle_timeout_in_minutes = 4
public_ip_prefix_id = var.mgmt_pip_prefix_id
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions modules/vmss/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ variable "mgmt_pip_domain_name_label" {
type = string
}

variable "mgmt_pip_prefix_id" {
description = "Public IP address prefix id to use for management interface."
default = null
type = string
}

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

0 comments on commit d40229d

Please sign in to comment.