Skip to content

Commit 38d6928

Browse files
committed
Minor fixes.
1 parent 358d0fd commit 38d6928

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/container-apps/scale-app.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ First, you define the type and metadata of the scale rule.
392392

393393
1. In the Bicep template, add all metadata values to the `custom.metadata` section of the scale rule.
394394

395-
:::code language="json" source="./code/container-apps-azure-service-bus-rule-0.json" highlight="8,9,10":::
395+
:::code language="bicep" source="./code/container-apps-azure-service-bus-rule-0.bicep" highlight="8,9,10":::
396396

397397
### Authentication
398398

@@ -408,7 +408,7 @@ KEDA scalers can use secrets in a [TriggerAuthentication](https://keda.sh/docs/l
408408

409409
1. In the `TriggerAuthentication` object, find each `secretTargetRef` and its associated secret.
410410

411-
:::code language="yml" source="./code/keda-azure-service-bus-auth.json" highlight="8,16,17,18":::
411+
:::code language="json" source="./code/keda-azure-service-bus-auth.json" highlight="8,16,17,18":::
412412

413413
1. In the Bicep template, for each secret:
414414

@@ -420,7 +420,7 @@ KEDA scalers can use secrets in a [TriggerAuthentication](https://keda.sh/docs/l
420420

421421
1. Set the value of the `secretRef` property to the name of the `secretTargetRef`'s `key` property.
422422

423-
:::code language="json" source="./code/container-apps-azure-service-bus-rule-1.json" highlight="8-11,30-33":::
423+
:::code language="bicep" source="./code/container-apps-azure-service-bus-rule-1.bicep" highlight="8-11,30-33":::
424424

425425
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.
426426

@@ -539,7 +539,7 @@ KEDA scalers can use secrets in a [TriggerAuthentication](https://keda.sh/docs/l
539539

540540
1. In the `TriggerAuthentication` object, find each `secretTargetRef` and its associated secret.
541541

542-
:::code language="yml" source="./code/keda-azure-service-bus-auth.json" highlight="8,16,17,18":::
542+
:::code language="json" source="./code/keda-azure-service-bus-auth.json" highlight="8,16,17,18":::
543543

544544
1. In the ARM template, for each secret:
545545

@@ -592,15 +592,15 @@ To learn more about using managed identity with scale rules, see [Managed identi
592592

593593
1. From the KEDA scaler specification, find the `type` value.
594594

595-
:::code language="yml" source="./code/keda-azure-service-bus-trigger.json" highlight="2":::
595+
:::code language="json" source="./code/keda-azure-service-bus-trigger.json" highlight="2":::
596596

597597
1. In the CLI command, set the `--scale-rule-type` parameter to the specification `type` value.
598598

599599
:::code language="bash" source="./code/container-apps-azure-service-bus-cli.json" highlight="10":::
600600

601601
1. From the KEDA scaler specification, find the `metadata` values.
602602

603-
:::code language="yml" source="./code/keda-azure-service-bus-trigger.json" highlight="4,5,6":::
603+
:::code language="json" source="./code/keda-azure-service-bus-trigger.json" highlight="4,5,6":::
604604

605605
1. In the CLI command, set the `--scale-rule-metadata` parameter to the metadata values.
606606

@@ -620,7 +620,7 @@ A KEDA scaler supports secrets in a [TriggerAuthentication](https://keda.sh/docs
620620

621621
1. Find the `TriggerAuthentication` object referenced by the KEDA `ScaledObject` specification. Identify each `secretTargetRef` of the `TriggerAuthentication` object.
622622

623-
:::code language="yml" source="./code/keda-azure-service-bus-auth.json" highlight="8,16,17,18":::
623+
:::code language="json" source="./code/keda-azure-service-bus-auth.json" highlight="8,16,17,18":::
624624

625625
1. In your container app, create the [secrets](./manage-secrets.md) that match the `secretTargetRef` properties.
626626

@@ -674,13 +674,13 @@ Replace the `<PLACEHOLDERS`> with your values.
674674

675675
1. From the KEDA scaler specification, find the `type` value.
676676

677-
:::code language="yml" source="./code/keda-azure-service-bus-trigger.json" highlight="2":::
677+
:::code language="json" source="./code/keda-azure-service-bus-trigger.json" highlight="2":::
678678

679679
1. In the *Custom rule type* box, enter the scaler `type` value.
680680

681681
1. From the KEDA scaler specification, find the `metadata` values.
682682

683-
:::code language="yml" source="./code/keda-azure-service-bus-trigger.json" highlight="4,5,6":::
683+
:::code language="json" source="./code/keda-azure-service-bus-trigger.json" highlight="4,5,6":::
684684

685685
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.
686686

@@ -694,7 +694,7 @@ Container Apps scale rules support secrets-based authentication. Scale rules for
694694

695695
1. Find the `TriggerAuthentication` object referenced by the KEDA `ScaledObject` specification. Identify each `secretTargetRef` of the `TriggerAuthentication` object.
696696

697-
:::code language="yml" source="./code/keda-azure-service-bus-auth.json" highlight="16,17,18":::
697+
:::code language="json" source="./code/keda-azure-service-bus-auth.json" highlight="16,17,18":::
698698

699699
1. In the *Authentication* section, select **Add** to create an entry for each KEDA `secretTargetRef` parameter.
700700

0 commit comments

Comments
 (0)