@@ -291,19 +291,19 @@ First, you'll define the type and metadata of the scale rule.
291
291
292
292
1 . From the KEDA scaler specification, find the ` type ` value.
293
293
294
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-trigger.yml" highlight="2":::
294
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-trigger.yml" highlight="2":::
295
295
296
296
1 . In the ARM template, enter the scaler ` type ` value into the ` custom.type ` property of the scale rule.
297
297
298
- :::code language="json" source="../../includes /container-apps/container-apps-azure-service-bus-rule-0.json" highlight="6":::
298
+ :::code language="json" source="~ /azure-docs-snippets-pr /container-apps/container-apps-azure-service-bus-rule-0.json" highlight="6":::
299
299
300
300
1 . From the KEDA scaler specification, find the ` metadata ` values.
301
301
302
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-trigger.yml" highlight="4,5,6":::
302
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-trigger.yml" highlight="4,5,6":::
303
303
304
304
1 . In the ARM template, add all metadata values to the ` custom.metadata ` section of the scale rule.
305
305
306
- :::code language="json" source="../../includes /container-apps/container-apps-azure-service-bus-rule-0.json" highlight="8,9,10":::
306
+ :::code language="json" source="~ /azure-docs-snippets-pr /container-apps/container-apps-azure-service-bus-rule-0.json" highlight="8,9,10":::
307
307
308
308
### Authentication
309
309
@@ -316,7 +316,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
316
316
317
317
1 . From the KEDA specification, find each ` secretTargetRef ` of the ` TriggerAuthentication ` object and its associated secret.
318
318
319
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-auth.yml" highlight="8,16,17,18":::
319
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-auth.yml" highlight="8,16,17,18":::
320
320
321
321
1 . In the ARM template, add all entries to the ` auth ` array of the scale rule.
322
322
@@ -326,7 +326,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
326
326
327
327
1 . Set the value of the ` secretRef ` property to the name of the Container Apps secret.
328
328
329
- :::code language="json" source="../../includes /container-apps/container-apps-azure-service-bus-rule-1.json" highlight="10,11,12,13,32,33,34,35":::
329
+ :::code language="json" source="~ /azure-docs-snippets-pr /container-apps/container-apps-azure-service-bus-rule-1.json" highlight="10,11,12,13,32,33,34,35":::
330
330
331
331
Some scalers support metadata with the ` FromEnv ` suffix to reference a value in an environment variable. Container Apps looks at the first container listed in the ARM template for the environment variable.
332
332
@@ -338,21 +338,21 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
338
338
339
339
1 . From the KEDA scaler specification, find the ` type ` value.
340
340
341
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-trigger.yml" highlight="2":::
341
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-trigger.yml" highlight="2":::
342
342
343
343
1 . In the CLI command, set the ` --scale-rule-type ` parameter to the specification ` type ` value.
344
344
345
- :::code language="bash" source="../../includes/ container-apps/container-apps-azure-service-bus-cli.txt " highlight="10":::
345
+ :::code language="bash" source="~ /azure-docs-snippets-pr/ container-apps/container-apps-azure-service-bus-cli.bash " highlight="10":::
346
346
347
347
1 . From the KEDA scaler specification, find the ` metadata ` values.
348
348
349
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-trigger.yml" highlight="4,5,6":::
349
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-trigger.yml" highlight="4,5,6":::
350
350
351
351
1 . In the CLI command, set the ` --scale-rule-metadata ` parameter to the metadata values.
352
352
353
353
You'll need to transform the values from a YAML format to a key/value pair for use on the command line. Separate each key/value pair with a space.
354
354
355
- :::code language="bash" source="../../includes/ container-apps/container-apps-azure-service-bus-cli.txt " highlight="11,12,13":::
355
+ :::code language="bash" source="~ /azure-docs-snippets-pr/ container-apps/container-apps-azure-service-bus-cli.bash " highlight="11,12,13":::
356
356
357
357
### Authentication
358
358
@@ -363,7 +363,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
363
363
364
364
1 . Find the ` TriggerAuthentication ` object referenced by the KEDA ` ScaledObject ` specification. Identify each ` secretTargetRef ` of the ` TriggerAuthentication ` object.
365
365
366
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-auth.yml" highlight="8,16,17,18":::
366
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-auth.yml" highlight="8,16,17,18":::
367
367
368
368
1 . In your container app, create the [ secrets] ( ./manage-secrets.md ) that match the ` secretTargetRef ` properties.
369
369
@@ -373,7 +373,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
373
373
374
374
1 . Create an authentication entry with the ` --scale-rule-auth ` parameter. If there are multiple entries, separate them with a space.
375
375
376
- :::code language="bash" source="../../includes/ container-apps/container-apps-azure-service-bus-cli.txt " highlight="8,14":::
376
+ :::code language="bash" source="~ /azure-docs-snippets-pr/ container-apps/container-apps-azure-service-bus-cli.bash " highlight="8,14":::
377
377
378
378
::: zone-end
379
379
@@ -399,13 +399,13 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
399
399
400
400
1 . From the KEDA scaler specification, find the ` type ` value.
401
401
402
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-trigger.yml" highlight="2":::
402
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-trigger.yml" highlight="2":::
403
403
404
404
1 . In the * Custom rule type* box, enter the scaler ` type ` value.
405
405
406
406
1 . From the KEDA scaler specification, find the ` metadata ` values.
407
407
408
- :::code language="yml" source="../../includes /container-apps/keda-azure-service-bus-trigger.yml" highlight="4,5,6":::
408
+ :::code language="yml" source="~ /azure-docs-snippets-pr /container-apps/keda-azure-service-bus-trigger.yml" highlight="4,5,6":::
409
409
410
410
1 . In the portal, find the * Metadata* section and select ** Add** . Enter the name and value for each item in the KEDA ` ScaledObject ` specification metadata section.
411
411
0 commit comments