Skip to content

Commit 36b7032

Browse files
update file extensions
1 parent 894c54f commit 36b7032

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

articles/container-apps/scale-app.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,15 @@ First, you define the type and metadata of the scale rule.
303303

304304
1. From the KEDA scaler specification, find the `type` value.
305305

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":::
307307

308308
1. In the ARM template, enter the scaler `type` value into the `custom.type` property of the scale rule.
309309

310310
:::code language="json" source="./code/container-apps-azure-service-bus-rule-0.json" highlight="6":::
311311

312312
1. From the KEDA scaler specification, find the `metadata` values.
313313

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":::
315315

316316
1. In the ARM template, add all metadata values to the `custom.metadata` section of the scale rule.
317317

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

332332
1. In the `TriggerAuthentication` object, find each `secretTargetRef` and its associated secret.
333333

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":::
335335

336336
1. In the ARM template, for each secret:
337337

@@ -382,21 +382,21 @@ To learn more about using managed identity with scale rules, see [Managed identi
382382

383383
1. From the KEDA scaler specification, find the `type` value.
384384

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":::
386386

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

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":::
390390

391391
1. From the KEDA scaler specification, find the `metadata` values.
392392

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":::
394394

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

397397
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.
398398

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":::
400400

401401
### Authentication
402402

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

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

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":::
414414

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

@@ -420,8 +420,8 @@ A KEDA scaler supports secrets in a [TriggerAuthentication](https://keda.sh/docs
420420

421421
1. Create an authentication entry with the `--scale-rule-auth` parameter. If there are multiple entries, separate them with a space.
422422

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+
425425
#### Using managed identity
426426

427427
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.
464464

465465
1. From the KEDA scaler specification, find the `type` value.
466466

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":::
468468

469469
1. In the *Custom rule type* box, enter the scaler `type` value.
470470

471471
1. From the KEDA scaler specification, find the `metadata` values.
472472

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":::
474474

475475
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.
476476

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

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

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":::
488488

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

0 commit comments

Comments
 (0)