@@ -148,28 +148,11 @@ app_service_plan = {
148148 scaling_rule = {
149149 metric = " CpuPercentage"
150150
151- capacity_min = " 1"
152151 capacity_max = " 1"
153152 capacity_def = " 1"
154153
155- time_grain = " PT1M"
156- statistic = " Average"
157- time_window = " PT1M"
158- time_aggregation = " Average"
159-
160- inc_operator = " GreaterThanOrEqual"
161- inc_threshold = 20
162- inc_scale_direction = " Increase"
163- inc_scale_type = " ExactCount"
164- inc_scale_value = 1
165- inc_scale_cooldown = " PT10M"
166-
167- dec_operator = " LessThan"
168- dec_threshold = 20
169- dec_scale_direction = " Decrease"
170- dec_scale_type = " ExactCount"
171- dec_scale_value = 1
172- dec_scale_cooldown = " PT5M"
154+ inc_scale_value = 1
155+ dec_scale_value = 1
173156
174157 }
175158 }
@@ -180,12 +163,7 @@ app_service_plan = {
180163 scaling_rule = {
181164 metric = " CpuPercentage"
182165
183- capacity_min = " 1"
184- capacity_max = " 5"
185- capacity_def = " 1"
186-
187- inc_threshold = 5
188- dec_threshold = 5
166+ capacity_max = " 5"
189167 inc_scale_value = 5
190168
191169 dec_scale_type = " ChangeCount"
@@ -199,28 +177,11 @@ app_service_plan = {
199177 scaling_rule = {
200178 metric = " CpuPercentage"
201179
202- capacity_min = " 1"
203180 capacity_max = " 1"
204181 capacity_def = " 1"
205182
206- time_grain = " PT1M"
207- statistic = " Average"
208- time_window = " PT1M"
209- time_aggregation = " Average"
210-
211- inc_operator = " GreaterThanOrEqual"
212- inc_threshold = 20
213- inc_scale_direction = " Increase"
214- inc_scale_type = " ExactCount"
215- inc_scale_value = 1
216- inc_scale_cooldown = " PT10M"
217-
218- dec_operator = " LessThan"
219- dec_threshold = 20
220- dec_scale_direction = " Decrease"
221- dec_scale_type = " ExactCount"
222- dec_scale_value = 1
223- dec_scale_cooldown = " PT5M"
183+ inc_scale_value = 1
184+ dec_scale_value = 1
224185
225186 }
226187 }
@@ -231,12 +192,7 @@ app_service_plan = {
231192 scaling_rule = {
232193 metric = " CpuPercentage"
233194
234- capacity_min = " 1"
235- capacity_max = " 5"
236- capacity_def = " 1"
237-
238- inc_threshold = 5
239- dec_threshold = 5
195+ capacity_max = " 5"
240196 inc_scale_value = 5
241197
242198 dec_scale_type = " ChangeCount"
@@ -250,12 +206,7 @@ app_service_plan = {
250206 scaling_rule = {
251207 metric = " CpuPercentage"
252208
253- capacity_min = " 1"
254- capacity_max = " 3"
255- capacity_def = " 1"
256-
257- inc_threshold = 5
258- dec_threshold = 5
209+ capacity_max = " 3"
259210 inc_scale_value = 3
260211
261212 dec_scale_type = " ChangeCount"
@@ -269,12 +220,8 @@ app_service_plan = {
269220 scaling_rule = {
270221 metric = " CpuPercentage"
271222
272- capacity_min = " 1"
273223 capacity_max = " 3"
274- capacity_def = " 1"
275224
276- inc_threshold = 5
277- dec_threshold = 5
278225 inc_scale_value = 3
279226
280227 dec_scale_type = " ChangeCount"
@@ -289,7 +236,8 @@ app_service_plan = {
289236container_app_environments = {
290237 instances = {
291238 db-management = {
292- zone_redundancy_enabled = false
239+ zone_redundancy_enabled = false
240+ use_custom_infra_rg_name = false
293241 }
294242 }
295243}
@@ -302,6 +250,23 @@ container_app_jobs = {
302250 container_registry_use_mi = true
303251 db_connection_string_name = " DtOsDatabaseConnectionString"
304252 add_user_assigned_identity = true
253+ replica_retry_limit = 1
254+ }
255+ }
256+ }
257+
258+ container_apps = {
259+ apps = {
260+ wiremock = {
261+ container_app_environment_key = " db-management"
262+ docker_image = " cohort-manager-wiremock"
263+ container_registry_use_mi = true
264+ add_user_assigned_identity = false
265+ is_tcp_app = false
266+ is_web_app = true
267+ port = 8080
268+ infra_key_vault_rg = null
269+ infra_key_vault_name = null
305270 }
306271 }
307272}
@@ -1095,10 +1060,10 @@ function_apps = {
10951060 }
10961061 ]
10971062 env_vars_static = {
1098- RetrievePdsParticipantURL = " https://int .api.service.nhs.uk/personal-demographics/FHIR/R4/Patient"
1063+ RetrievePdsParticipantURL = " https://sandbox .api.service.nhs.uk/personal-demographics/FHIR/R4/Patient"
10991064 Kid = " RetrievePdsDemographic-DEV1"
1100- Audience = " https://int .api.service.nhs.uk/oauth2/token"
1101- AuthTokenURL = " https://int .api.service.nhs.uk/oauth2/token"
1065+ Audience = " https://sandbox .api.service.nhs.uk/oauth2/token"
1066+ AuthTokenURL = " https://sandbox .api.service.nhs.uk/oauth2/token"
11021067 KeyNamePrivateKey = " PDSPRIVATEKEY"
11031068 UseFakePDSServices = " true"
11041069 ParticipantManagementTopic = " participant-management"
@@ -1126,6 +1091,7 @@ function_apps = {
11261091 NemsSubscriptionProfile = " https://fhir.nhs.uk/STU3/StructureDefinition/EMS-Subscription-1"
11271092 NemsSubscriptionCriteria = " https://fhir.nhs.uk/Id/nhs-number"
11281093 NemsBypassServerCertificateValidation = " true"
1094+ IsStubbed = " true"
11291095 }
11301096 }
11311097
@@ -1256,6 +1222,7 @@ linux_web_app = {
12561222 AUTH_TRUST_HOST = " true"
12571223 NEXTAUTH_URL = " https://cohort-dev.non-live.screening.nhs.uk/api/auth"
12581224 SERVICE_NAME = " Cohort Manager"
1225+ APP_ENV = " sandbox"
12591226 }
12601227 from_key_vault = {
12611228 # env_var_name = "key_vault_secret_name"
@@ -1356,7 +1323,7 @@ sqlserver = {
13561323 licence_type = " LicenseIncluded"
13571324 max_gb = 30
13581325 read_scale = false
1359- sku = " S1 "
1326+ sku = " S0 "
13601327 storage_account_type = " Local"
13611328 zone_redundant = false
13621329 }
0 commit comments