Skip to content

Commit

Permalink
Fix documentation and add vm_series_count capacity for VMSS
Browse files Browse the repository at this point in the history
  • Loading branch information
adambaumeister committed Mar 25, 2022
1 parent bb049c8 commit e20b396
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/panorama.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ ensuring the IPv4 Type is set to DHCP and a management config is attached that p

<img src="images/pan_mc.png" alt="interfaces" class="inline"/>

Add a virtual router for each template. Configure the following routes in the inbound template;
Add a virtual router for each template. Configure the following routes in the outbound template;

| Destination | Next Hop | Description |
| :------------- | :----------: | -----------: |
| 0.0.0.0/0 | 10.110.129.1 | Default route out the public interface |
| 10.0.0.0/8| 10.110.0.1 | Route to the Azure internal networks |
| 168.63.129.16/32 | 10.110.0.1 | LB health probe IP address on PRIVATE interface |

Configure the following routes in the outbound template;
Configure the following routes in the inbound template;

| Destination | Next Hop | Description |
| :------------- | :----------: | -----------: |
Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ module "vm-series" {
vhd-container = module.panorama.storage-container-name
private_backend_pool_id = module.outbound-lb.backend-pool-id
public_backend_pool_id = module.inbound-lb.backend-pool-id

vm_series_count = var.vm_series_count
vm_series_sku = var.vm_series_sku
}

# Create a test VNET
Expand Down
4 changes: 2 additions & 2 deletions modules/vmss/vmseries.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "azurerm_virtual_machine_scale_set" "inbound-scale-set" {
version = var.vm_series_version
}
sku {
capacity = 1
capacity = var.vm_series_count
name = var.vmseries_size
}
storage_profile_os_disk {
Expand Down Expand Up @@ -165,7 +165,7 @@ resource "azurerm_virtual_machine_scale_set" "outbound-scale-set" {
version = var.vm_series_version
}
sku {
capacity = 1
capacity = var.vm_series_count
name = var.vmseries_size
}
plan {
Expand Down

0 comments on commit e20b396

Please sign in to comment.