@@ -303,15 +303,15 @@ First, you define the type and metadata of the scale rule.
303
303
304
304
1 . From the KEDA scaler specification, find the ` type ` value.
305
305
306
- :::code language="yml" source="./code/keda-azure-service-bus-trigger.md " highlight="2":::
306
+ :::code language="yml" source="./code/keda-azure-service-bus-trigger.json " highlight="2":::
307
307
308
308
1 . In the ARM template, enter the scaler ` type ` value into the ` custom.type ` property of the scale rule.
309
309
310
310
:::code language="json" source="./code/container-apps-azure-service-bus-rule-0.json" highlight="6":::
311
311
312
312
1 . From the KEDA scaler specification, find the ` metadata ` values.
313
313
314
- :::code language="yml" source="./code/keda-azure-service-bus-trigger.md " highlight="4,5,6":::
314
+ :::code language="yml" source="./code/keda-azure-service-bus-trigger.json " highlight="4,5,6":::
315
315
316
316
1 . In the ARM template, add all metadata values to the ` custom.metadata ` section of the scale rule.
317
317
@@ -331,7 +331,7 @@ KEDA scalers can use secrets in a [TriggerAuthentication](https://keda.sh/docs/l
331
331
332
332
1 . In the ` TriggerAuthentication ` object, find each ` secretTargetRef ` and its associated secret.
333
333
334
- :::code language="yml" source="./code/keda-azure-service-bus-auth.md " highlight="8,16,17,18":::
334
+ :::code language="yml" source="./code/keda-azure-service-bus-auth.json " highlight="8,16,17,18":::
335
335
336
336
1 . In the ARM template, for each secret:
337
337
@@ -382,21 +382,21 @@ To learn more about using managed identity with scale rules, see [Managed identi
382
382
383
383
1 . From the KEDA scaler specification, find the ` type ` value.
384
384
385
- :::code language="yml" source="./code/keda-azure-service-bus-trigger.md " highlight="2":::
385
+ :::code language="yml" source="./code/keda-azure-service-bus-trigger.json " highlight="2":::
386
386
387
387
1 . In the CLI command, set the ` --scale-rule-type ` parameter to the specification ` type ` value.
388
388
389
- :::code language="bash" source="./code/container-apps-azure-service-bus-cli.md " highlight="10":::
389
+ :::code language="bash" source="./code/container-apps-azure-service-bus-cli.json " highlight="10":::
390
390
391
391
1 . From the KEDA scaler specification, find the ` metadata ` values.
392
392
393
- :::code language="yml" source="./code/keda-azure-service-bus-trigger.md " highlight="4,5,6":::
393
+ :::code language="yml" source="./code/keda-azure-service-bus-trigger.json " highlight="4,5,6":::
394
394
395
395
1 . In the CLI command, set the ` --scale-rule-metadata ` parameter to the metadata values.
396
396
397
397
You 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.
398
398
399
- :::code language="bash" source="./code/container-apps-azure-service-bus-cli.md " highlight="11,12,13":::
399
+ :::code language="bash" source="./code/container-apps-azure-service-bus-cli.json " highlight="11,12,13":::
400
400
401
401
### Authentication
402
402
@@ -410,7 +410,7 @@ A KEDA scaler supports secrets in a [TriggerAuthentication](https://keda.sh/docs
410
410
411
411
1 . Find the ` TriggerAuthentication ` object referenced by the KEDA ` ScaledObject ` specification. Identify each ` secretTargetRef ` of the ` TriggerAuthentication ` object.
412
412
413
- :::code language="yml" source="./code/keda-azure-service-bus-auth.md " highlight="8,16,17,18":::
413
+ :::code language="yml" source="./code/keda-azure-service-bus-auth.json " highlight="8,16,17,18":::
414
414
415
415
1 . In your container app, create the [ secrets] ( ./manage-secrets.md ) that match the ` secretTargetRef ` properties.
416
416
@@ -420,8 +420,8 @@ A KEDA scaler supports secrets in a [TriggerAuthentication](https://keda.sh/docs
420
420
421
421
1 . Create an authentication entry with the ` --scale-rule-auth ` parameter. If there are multiple entries, separate them with a space.
422
422
423
- :::code language="bash" source="./code/container-apps-azure-service-bus-cli.md " highlight="8,14":::
424
-
423
+ :::code language="bash" source="./code/container-apps-azure-service-bus-cli.json " highlight="8,14":::
424
+
425
425
#### Using managed identity
426
426
427
427
Container Apps scale rules can use managed identity to authenticate with Azure services. The following command creates a container app with a user-assigned managed identity and uses it to authenticate for an Azure Queue scaler.
@@ -464,13 +464,13 @@ Replace placeholders with your values.
464
464
465
465
1 . From the KEDA scaler specification, find the ` type ` value.
466
466
467
- :::code language="yml" source="./code/keda-azure-service-bus-trigger.md " highlight="2":::
467
+ :::code language="yml" source="./code/keda-azure-service-bus-trigger.json " highlight="2":::
468
468
469
469
1 . In the * Custom rule type* box, enter the scaler ` type ` value.
470
470
471
471
1 . From the KEDA scaler specification, find the ` metadata ` values.
472
472
473
- :::code language="yml" source="./code/keda-azure-service-bus-trigger.md " highlight="4,5,6":::
473
+ :::code language="yml" source="./code/keda-azure-service-bus-trigger.json " highlight="4,5,6":::
474
474
475
475
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.
476
476
@@ -484,7 +484,7 @@ Container Apps scale rules support secrets-based authentication. Scale rules for
484
484
485
485
1 . Find the ` TriggerAuthentication ` object referenced by the KEDA ` ScaledObject ` specification. Identify each ` secretTargetRef ` of the ` TriggerAuthentication ` object.
486
486
487
- :::code language="yml" source="./code/keda-azure-service-bus-auth.md " highlight="16,17,18":::
487
+ :::code language="yml" source="./code/keda-azure-service-bus-auth.json " highlight="16,17,18":::
488
488
489
489
1 . In the * Authentication* section, select ** Add** to create an entry for each KEDA ` secretTargetRef ` parameter.
490
490
0 commit comments