Skip to content

Commit ef3fad2

Browse files
Code samples in external repo
1 parent b1eb9cb commit ef3fad2

7 files changed

+20
-128
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
"need_preview_pull_request": true,
3333
"contribution_branch_mappings": {},
3434
"dependent_repositories": [
35+
{
36+
"path_to_root": "azure-docs-snippets-pr",
37+
"url": "https://github.com/MicrosoftDocs/azure-docs-snippets-pr",
38+
"branch": "main",
39+
"branch_mapping": {}
40+
},
3541
{
3642
"path_to_root": "azure-dev-docs-pr",
3743
"url": "https://github.com/MicrosoftDocs/azure-dev-docs-pr",

articles/container-apps/scale-app.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,19 @@ First, you'll define the type and metadata of the scale rule.
291291

292292
1. From the KEDA scaler specification, find the `type` value.
293293

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

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

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

300300
1. From the KEDA scaler specification, find the `metadata` values.
301301

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

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

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

308308
### Authentication
309309

@@ -316,7 +316,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
316316

317317
1. From the KEDA specification, find each `secretTargetRef` of the `TriggerAuthentication` object and its associated secret.
318318

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

321321
1. In the ARM template, add all entries to the `auth` array of the scale rule.
322322

@@ -326,7 +326,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
326326

327327
1. Set the value of the `secretRef` property to the name of the Container Apps secret.
328328

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

331331
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.
332332

@@ -338,21 +338,21 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
338338

339339
1. From the KEDA scaler specification, find the `type` value.
340340

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

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

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

347347
1. From the KEDA scaler specification, find the `metadata` values.
348348

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

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

353353
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.
354354

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

357357
### Authentication
358358

@@ -363,7 +363,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
363363
364364
1. Find the `TriggerAuthentication` object referenced by the KEDA `ScaledObject` specification. Identify each `secretTargetRef` of the `TriggerAuthentication` object.
365365

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

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

@@ -373,7 +373,7 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
373373

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

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

378378
::: zone-end
379379

@@ -399,13 +399,13 @@ A KEDA scaler may support using secrets in a [TriggerAuthentication](https://ked
399399

400400
1. From the KEDA scaler specification, find the `type` value.
401401

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

404404
1. In the *Custom rule type* box, enter the scaler `type` value.
405405

406406
1. From the KEDA scaler specification, find the `metadata` values.
407407

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

410410
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.
411411

includes/container-apps/container-apps-azure-service-bus-cli.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

includes/container-apps/container-apps-azure-service-bus-rule-0.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

includes/container-apps/container-apps-azure-service-bus-rule-1.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

includes/container-apps/keda-azure-service-bus-auth.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

includes/container-apps/keda-azure-service-bus-trigger.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)