Skip to content

Commit ddf702b

Browse files
committed
updating configuration for autoscale
1 parent dfff4cc commit ddf702b

File tree

4 files changed

+29
-13
lines changed

4 files changed

+29
-13
lines changed

examples/application_gateway_with_ssl/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ module "application-gateway" {
3434
# SKU requires `name`, `tier` to use for this Application Gateway
3535
# `Capacity` property is optional if `autoscale_configuration` is set
3636
sku = {
37-
name = "Standard_v2"
38-
tier = "Standard_v2"
39-
capacity = 1
37+
name = "Standard_v2"
38+
tier = "Standard_v2"
39+
}
40+
41+
autoscale_configuration = {
42+
min_capacity = 1
43+
max_capacity = 15
4044
}
4145
4246
# A backend pool routes request to backend servers, which serve the request.

examples/application_gateway_with_ssl/main.tf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ module "application-gateway" {
2323
# SKU requires `name`, `tier` to use for this Application Gateway
2424
# `Capacity` property is optional if `autoscale_configuration` is set
2525
sku = {
26-
name = "Standard_v2"
27-
tier = "Standard_v2"
28-
capacity = 1
26+
name = "Standard_v2"
27+
tier = "Standard_v2"
28+
}
29+
30+
autoscale_configuration = {
31+
min_capacity = 1
32+
max_capacity = 15
2933
}
3034

3135
# A backend pool routes request to backend servers, which serve the request.

examples/application_gateway_with_waf/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ module "application-gateway" {
3434
# SKU requires `name`, `tier` to use for this Application Gateway
3535
# `Capacity` property is optional if `autoscale_configuration` is set
3636
sku = {
37-
name = "WAF_v2"
38-
tier = "WAF_v2"
39-
capacity = 1
37+
name = "Standard_v2"
38+
tier = "Standard_v2"
39+
}
40+
41+
autoscale_configuration = {
42+
min_capacity = 1
43+
max_capacity = 15
4044
}
4145
4246
# A backend pool routes request to backend servers, which serve the request.
@@ -63,7 +67,7 @@ module "application-gateway" {
6367
path = "/"
6468
enable_https = true
6569
request_timeout = 30
66-
probe_name = "appgw-testgateway-westeurope-probe1" # Remove this if `health_probes` object is not defined.
70+
# probe_name = "appgw-testgateway-westeurope-probe1" # Remove this if `health_probes` object is not defined.
6771
connection_draining = {
6872
enable_connection_draining = true
6973
drain_timeout_sec = 300

examples/application_gateway_with_waf/main.tf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ module "application-gateway" {
2323
# SKU requires `name`, `tier` to use for this Application Gateway
2424
# `Capacity` property is optional if `autoscale_configuration` is set
2525
sku = {
26-
name = "WAF_v2"
27-
tier = "WAF_v2"
28-
capacity = 1
26+
name = "Standard_v2"
27+
tier = "Standard_v2"
28+
}
29+
30+
autoscale_configuration = {
31+
min_capacity = 1
32+
max_capacity = 15
2933
}
3034

3135
# A backend pool routes request to backend servers, which serve the request.

0 commit comments

Comments
 (0)