Skip to content

Commit 33be0f4

Browse files
[Containerapp] az containerapp job create: Fix message with --help (#31682)
Co-authored-by: xinyu pang <[email protected]>
1 parent 633cc93 commit 33be0f4

File tree

1 file changed

+6
-3
lines changed
  • src/azure-cli/azure/cli/command_modules/containerapp

1 file changed

+6
-3
lines changed

src/azure-cli/azure/cli/command_modules/containerapp/_help.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
--scale-rule-type azure-queue \\
5454
--scale-rule-metadata "accountName=mystorageaccountname" \\
5555
"cloud=AzurePublicCloud" \\
56-
"queueLength": "5" "queueName": "foo" \\
56+
"queueLength=5" "queueName=foo" \\
5757
--scale-rule-auth "connection=my-connection-string-secret-name"
5858
- name: Create a container app with secrets and mounts them in a volume.
5959
text: |
@@ -611,6 +611,7 @@
611611
- name: Create a container apps job with Trigger Type as Manual.
612612
text: |
613613
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \\
614+
--environment MyContainerappEnv \\
614615
--trigger-type Manual \\
615616
--replica-timeout 5 \\
616617
--replica-retry-limit 2 \\
@@ -621,6 +622,7 @@
621622
- name: Create a container apps job with Trigger Type as Schedule.
622623
text: |
623624
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \\
625+
--environment MyContainerappEnv \\
624626
--trigger-type Schedule \\
625627
--replica-timeout 5 \\
626628
--replica-retry-limit 2 \\
@@ -631,6 +633,7 @@
631633
- name: Create a container apps job with Trigger Type as Event.
632634
text: |
633635
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \\
636+
--environment MyContainerappEnv \\
634637
--trigger-type Event \\
635638
--replica-timeout 5 \\
636639
--replica-retry-limit 2 \\
@@ -639,11 +642,11 @@
639642
--polling-interval 30 \\
640643
--min-executions 0 \\
641644
--max-executions 1 \\
642-
--scale-rule-name queueJob \\
645+
--scale-rule-name queue \\
643646
--scale-rule-type azure-queue \\
644647
--scale-rule-metadata "accountName=mystorageaccountname" \\
645648
"cloud=AzurePublicCloud" \\
646-
"queueLength": "5" "queueName": "foo" \\
649+
"queueLength=5" "queueName=foo" \\
647650
--scale-rule-auth "connection=my-connection-string-secret-name" \\
648651
--image imageName
649652
"""

0 commit comments

Comments
 (0)