-
Notifications
You must be signed in to change notification settings - Fork 471
/
job.yml
1082 lines (1081 loc) · 46.6 KB
/
job.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
### YamlMime:AzureCLIGroup
uid: az_containerapp_job
name: az containerapp job
importantNote: >-
> [!NOTE]
> This command group has commands that are defined in both Azure CLI and at least one extension. Install each extension to benefit from its extended capabilities. [Learn more](https://learn.microsoft.com/cli/azure/azure-cli-extensions-overview) about extensions.
summary: |-
Commands to manage Container Apps jobs.
status: GA
sourceType: Core and Extension
directCommands:
- uid: az_containerapp_job_create
name: az containerapp job create
summary: |-
Create a container apps job.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: >-
az containerapp job create --name
--resource-group
[--args]
[--command]
[--container-name]
[--cpu]
[--cron-expression]
[--env-vars]
[--environment]
[--image]
[--max-executions]
[--memory]
[--mi-system-assigned]
[--mi-user-assigned]
[--min-executions]
[--no-wait]
[--parallelism]
[--polling-interval]
[--rcc]
[--registry-identity]
[--registry-password]
[--registry-server]
[--registry-username]
[--replica-retry-limit]
[--replica-timeout]
[--scale-rule-auth]
[--scale-rule-metadata]
[--scale-rule-name]
[--scale-rule-type]
[--secrets]
[--tags]
[--trigger-type]
[--workload-profile-name]
[--yaml]
examples:
- summary: |-
Create a container apps job with Trigger Type as Manual.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--trigger-type Manual \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--image imageName \
--workload-profile-name my-wlp
- summary: |-
Create a container apps job with Trigger Type as Schedule.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--trigger-type Schedule \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--cron-expression "*/1 * * * *" \
--image imageName
- summary: |-
Create a container apps job with Trigger Type as Event.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--trigger-type Event \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--polling-interval 30 \
--min-executions 0 \
--max-executions 1 \
--scale-rule-name queueJob \
--scale-rule-type azure-queue \
--scale-rule-metadata "accountName=mystorageaccountname" \
"cloud=AzurePublicCloud" \
"queueLength": "5" "queueName": "foo" \
--scale-rule-auth "connection=my-connection-string-secret-name" \
--image imageName
requiredParameters:
- isRequired: true
name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
optionalParameters:
- name: --args
summary: |-
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
- name: --command
summary: |-
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
- name: --container-name
summary: |-
Name of the container.
- name: --cpu
summary: |-
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
- name: --cron-expression
summary: |-
Cron expression. Only supported for trigger type "Schedule".
- name: --env-vars
summary: |-
A list of environment variable(s) for the container. Space-separated values in 'key=value' format. Empty string to clear existing values. Prefix value with 'secretref:' to reference a secret.
- name: --environment
summary: |-
Name or resource ID of the container app's environment.
- name: --image
summary: |-
Container image, e.g. publisher/image-name:tag.
- name: --max-executions
summary: |-
Maximum number of job executions to run per polling interval.
- name: --memory
summary: |-
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
- name: --mi-system-assigned
defaultValue: "False"
summary: |-
Boolean indicating whether to assign system-assigned identity.
- name: --mi-user-assigned
summary: |-
Space-separated user identities to be assigned.
- name: --min-executions
summary: |-
Minimum number of job executions to run per polling interval.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --parallelism
summary: |-
Maximum number of replicas to run per execution.
- name: --polling-interval
summary: |-
Interval to check each event source in seconds. Defaults to 30s.
- name: --rcc --replica-completion-count
summary: |-
Number of replicas that need to complete successfully for execution to succeed.
- name: --registry-identity
summary: |-
A Managed Identity to authenticate with the registry server instead of username/password. Use a resource ID or 'system' for user-defined and system-defined identities, respectively. The registry must be an ACR. If possible, an 'acrpull' role assignemnt will be created for the identity automatically.
- name: --registry-password
summary: |-
The password to log in to container registry. If stored as a secret, value must start with 'secretref:' followed by the secret name.
- name: --registry-server
summary: |-
The container registry server hostname, e.g. myregistry.azurecr.io.
- name: --registry-username
summary: |-
The username to log in to container registry.
- name: --replica-retry-limit
summary: |-
Maximum number of retries before the replica fails.
- name: --replica-timeout
summary: |-
Maximum number of seconds a replica can execute.
- name: --scale-rule-auth --sra
summary: |-
Scale rule auth parameters. Auth parameters must be in format "<triggerParameter>=<secretRef> <triggerParameter>=<secretRef> ...".
- name: --scale-rule-metadata --srm
summary: |-
Scale rule metadata. Metadata must be in format "<key>=<value> <key>=<value> ...".
- name: --scale-rule-name --srn
summary: |-
The name of the scale rule.
- name: --scale-rule-type --srt
summary: |-
The type of the scale rule.
- name: --secrets -s
summary: |-
A list of secret(s) for the container app. Space-separated values in 'key=value' format.
- name: --tags
summary: |-
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
- name: --trigger-type
summary: |-
Trigger type. Schedule | Event | Manual.
- name: --workload-profile-name -w
summary: |-
The friendly name for the workload profile.
- name: --yaml
summary: |-
Path to a .yaml file with the configuration of a container app. All other parameters will be ignored. For an example, see https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec#examples.
- uid: az_containerapp_job_create(containerapp)
name: az containerapp job create
extensionSuffix: containerapp
summary: |-
Create a container apps job.
status: GA
sourceType: Extension
syntax: >-
az containerapp job create --name
--resource-group
[--args]
[--command]
[--container-name]
[--cpu]
[--cron-expression]
[--env-vars]
[--environment]
[--environment-type {connected, managed}]
[--image]
[--max-executions]
[--memory]
[--mi-system-assigned]
[--mi-user-assigned]
[--min-executions]
[--no-wait]
[--parallelism]
[--polling-interval]
[--rcc]
[--registry-identity]
[--registry-password]
[--registry-server]
[--registry-username]
[--replica-retry-limit]
[--replica-timeout]
[--scale-rule-auth]
[--scale-rule-identity]
[--scale-rule-metadata]
[--scale-rule-name]
[--scale-rule-type]
[--secrets]
[--tags]
[--trigger-type]
[--workload-profile-name]
[--yaml]
examples:
- summary: |-
Create a container apps job with Trigger Type as Manual.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--environment MyContainerappEnv
--trigger-type Manual \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--image imageName \
--workload-profile-name my-wlp
- summary: |-
Create a container apps job with Trigger Type as Schedule.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--environment MyContainerappEnv
--trigger-type Schedule \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--cron-expression "*/1 * * * *" \
--image imageName
- summary: |-
Create a container apps job with Trigger Type as Event.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--environment MyContainerappEnv
--trigger-type Event \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--polling-interval 30 \
--min-executions 0 \
--max-executions 1 \
--scale-rule-name queueJob \
--scale-rule-type azure-queue \
--scale-rule-metadata "accountName=mystorageaccountname" \
"cloud=AzurePublicCloud" \
"queueLength=5" "queueName=foo" \
--scale-rule-auth "connection=my-connection-string-secret-name" \
--image imageName
- summary: |-
Create container app job with Trigger Type as Event using identity to authenticate
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--environment MyContainerappEnv
--trigger-type Event \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--polling-interval 30 \
--min-executions 0 \
--max-executions 1 \
--scale-rule-name azure-queue \
--scale-rule-type azure-queue \
--scale-rule-metadata "accountName=mystorageaccountname" \
"cloud=AzurePublicCloud" \
"queueLength=5" "queueName=foo" \
--scale-rule-identity myUserIdentityResourceId \
--image imageName
- summary: |-
Create a container apps job hosted on a Connected Environment.
syntax: >-
az containerapp job create -n MyContainerappsjob -g MyResourceGroup \
--environment MyContainerappConnectedEnv
--environment-type connected
--trigger-type Manual \
--replica-timeout 5 \
--replica-retry-limit 2 \
--replica-completion-count 1 \
--parallelism 1 \
--image imageName \
--workload-profile-name my-wlp
requiredParameters:
- isRequired: true
name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
optionalParameters:
- name: --args
summary: |-
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
- name: --command
summary: |-
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
- name: --container-name
summary: |-
Name of the container.
- name: --cpu
summary: |-
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
- name: --cron-expression
summary: |-
Cron expression. Only supported for trigger type "Schedule".
- name: --env-vars
summary: |-
A list of environment variable(s) for the container. Space-separated values in 'key=value' format. Empty string to clear existing values. Prefix value with 'secretref:' to reference a secret.
- name: --environment
summary: |-
Name or resource ID of the container app's environment.
- name: --environment-type
defaultValue: "managed"
parameterValueGroup: "connected, managed"
summary: |-
Type of environment.
isPreview: true
- name: --image
summary: |-
Container image, e.g. publisher/image-name:tag.
- name: --max-executions
defaultValue: "100"
summary: |-
Maximum number of job executions that are created for a trigger.
- name: --memory
summary: |-
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
- name: --mi-system-assigned
defaultValue: "False"
summary: |-
Boolean indicating whether to assign system-assigned identity.
- name: --mi-user-assigned
summary: |-
Space-separated user identities to be assigned.
- name: --min-executions
defaultValue: "0"
summary: |-
Minimum number of job executions that are created for a trigger. Default: 0.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --parallelism
defaultValue: "1"
summary: |-
Maximum number of replicas to run per execution.
- name: --polling-interval
defaultValue: "30"
summary: |-
Interval to check each event source in seconds.
- name: --rcc --replica-completion-count
defaultValue: "1"
summary: |-
Number of replicas that need to complete successfully for execution to succeed.
- name: --registry-identity
summary: |-
The managed identity with which to authenticate to the Azure Container Registry (instead of username/password). Use 'system' for a system-defined identity, Use 'system-environment' for an environment level system-defined identity or a resource id for a user-defined environment/containerappjob level identity. The managed identity should have been assigned acrpull permissions on the ACR before deployment (use 'az role assignment create --role acrpull ...').
- name: --registry-password
summary: |-
The password to log in to container registry. If stored as a secret, value must start with 'secretref:' followed by the secret name.
- name: --registry-server
summary: |-
The container registry server hostname, e.g. myregistry.azurecr.io.
- name: --registry-username
summary: |-
The username to log in to container registry.
- name: --replica-retry-limit
defaultValue: "0"
summary: |-
Maximum number of retries before the replica fails. Default: 0.
- name: --replica-timeout
defaultValue: "1800"
summary: |-
Maximum number of seconds a replica can execute.
- name: --scale-rule-auth --sra
summary: |-
Scale rule auth parameters. Auth parameters must be in format "<triggerParameter>=<secretRef> <triggerParameter>=<secretRef> ...".
- name: --scale-rule-identity --sri
summary: |-
Resource ID of a managed identity to authenticate with Azure scaler resource(storage account/eventhub or else), or System to use a system-assigned identity.
isPreview: true
- name: --scale-rule-metadata --srm
summary: |-
Scale rule metadata. Metadata must be in format "<key>=<value> <key>=<value> ...".
- name: --scale-rule-name --srn
summary: |-
The name of the scale rule.
- name: --scale-rule-type --srt
summary: |-
The type of the scale rule.
- name: --secrets -s
summary: |-
A list of secret(s) for the container app. Space-separated values in 'key=value' format.
- name: --tags
summary: |-
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
- name: --trigger-type
summary: |-
Trigger type. Schedule | Event | Manual.
- name: --workload-profile-name -w
summary: |-
The friendly name for the workload profile.
- name: --yaml
summary: |-
Path to a .yaml file with the configuration of a container app. All other parameters will be ignored. For an example, see https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec#examples.
- uid: az_containerapp_job_delete
name: az containerapp job delete
summary: |-
Delete a Container Apps Job.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: >-
az containerapp job delete [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
examples:
- summary: |-
Delete a job.
syntax: az containerapp job delete -n my-containerapp-job -g MyResourceGroup
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- name: --yes -y
defaultValue: "False"
summary: |-
Do not prompt for confirmation.
- uid: az_containerapp_job_delete(containerapp)
name: az containerapp job delete
extensionSuffix: containerapp
summary: |-
Delete a Container Apps Job.
status: GA
sourceType: Extension
syntax: >-
az containerapp job delete [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
examples:
- summary: |-
Delete a job.
syntax: az containerapp job delete -n my-containerapp-job -g MyResourceGroup
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- name: --yes -y
defaultValue: "False"
summary: |-
Do not prompt for confirmation.
- uid: az_containerapp_job_list
name: az containerapp job list
summary: |-
List Container Apps Job by subscription or resource group.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: az containerapp job list [--resource-group]
examples:
- summary: |-
List jobs in the current subscription.
syntax: az containerapp job list
- summary: |-
List environments by resource group.
syntax: az containerapp job list -g MyResourceGroup
optionalParameters:
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- uid: az_containerapp_job_list(containerapp)
name: az containerapp job list
extensionSuffix: containerapp
summary: |-
List Container Apps Job by subscription or resource group.
status: GA
sourceType: Extension
syntax: az containerapp job list [--resource-group]
examples:
- summary: |-
List jobs in the current subscription.
syntax: az containerapp job list
- summary: |-
List environments by resource group.
syntax: az containerapp job list -g MyResourceGroup
optionalParameters:
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- uid: az_containerapp_job_show
name: az containerapp job show
summary: |-
Show details of a Container Apps Job.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: >-
az containerapp job show [--ids]
[--name]
[--resource-group]
[--subscription]
examples:
- summary: |-
Show the details of a job.
syntax: az containerapp job show -n my-containerapp-job -g MyResourceGroup
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_containerapp_job_show(containerapp)
name: az containerapp job show
extensionSuffix: containerapp
summary: |-
Show details of a Container Apps Job.
status: GA
sourceType: Extension
syntax: >-
az containerapp job show [--ids]
[--name]
[--resource-group]
[--subscription]
examples:
- summary: |-
Show the details of a job.
syntax: az containerapp job show -n my-containerapp-job -g MyResourceGroup
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_containerapp_job_start
name: az containerapp job start
summary: |-
Start a Container Apps Job execution.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: >-
az containerapp job start [--args]
[--command]
[--container-name]
[--cpu]
[--env-vars]
[--ids]
[--image]
[--memory]
[--name]
[--no-wait]
[--registry-identity]
[--resource-group]
[--subscription]
[--yaml]
examples:
- summary: |-
Start a job execution.
syntax: az containerapp job start -n my-containerapp-job -g MyResourceGroup
- summary: |-
Start a job with different image and configurations.
syntax: az containerapp job start -n my-containerapp-job -g MyResourceGroup --image MyImageName --cpu 0.5 --memory 1.0Gi
optionalParameters:
- name: --args
summary: |-
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
- name: --command
summary: |-
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
- name: --container-name
summary: |-
Name of the container.
- name: --cpu
summary: |-
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
- name: --env-vars
summary: |-
A list of environment variable(s) for the container. Space-separated values in 'key=value' format. Empty string to clear existing values. Prefix value with 'secretref:' to reference a secret.
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --image
summary: |-
Container image, e.g. publisher/image-name:tag.
- name: --memory
summary: |-
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --registry-identity
summary: |-
A Managed Identity to authenticate with the registry server instead of username/password. Use a resource ID or 'system' for user-defined and system-defined identities, respectively. The registry must be an ACR. If possible, an 'acrpull' role assignemnt will be created for the identity automatically.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- name: --yaml
summary: |-
Path to a .yaml file with the configuration of a container app. All other parameters will be ignored. For an example, see https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec#examples.
- uid: az_containerapp_job_stop
name: az containerapp job stop
summary: |-
Stops a Container Apps Job execution.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: >-
az containerapp job stop [--ids]
[--job-execution-name]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
examples:
- summary: |-
Stop a job execution.
syntax: az containerapp job stop -n my-containerapp-job -g MyResourceGroup
- summary: |-
Stop a job execution giving a specific job execution name.
syntax: az containerapp job stop -n my-containerapp-job -g MyResourceGroup --job-execution-name MyContainerAppJob-66v9xh0
- summary: |-
Stop all running job executions.
syntax: az containerapp job stop -n my-containerapp-job -g MyResourceGroup
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --job-execution-name
summary: |-
Name of the specific job execution which needs to be stopped.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_containerapp_job_update
name: az containerapp job update
summary: |-
Update a Container Apps Job.
status: GA
sourceType: Core
editLink: https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/containerapp/_help.py
syntax: >-
az containerapp job update [--args]
[--command]
[--container-name]
[--cpu]
[--cron-expression]
[--ids]
[--image]
[--max-executions]
[--memory]
[--min-executions]
[--name]
[--no-wait]
[--parallelism]
[--polling-interval]
[--rcc]
[--remove-all-env-vars]
[--remove-env-vars]
[--replace-env-vars]
[--replica-retry-limit]
[--replica-timeout]
[--resource-group]
[--scale-rule-auth]
[--scale-rule-metadata]
[--scale-rule-name]
[--scale-rule-type]
[--set-env-vars]
[--subscription]
[--tags]
[--workload-profile-name]
[--yaml]
examples:
- summary: |-
Update a job's replica timeout.
syntax: >-
az containerapp job update -n my-containerapp-job -g MyResourceGroup \
--replica-timeout 10
optionalParameters:
- name: --args
summary: |-
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
- name: --command
summary: |-
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
- name: --container-name
summary: |-
Name of the container.
- name: --cpu
summary: |-
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
- name: --cron-expression
summary: |-
Cron expression. Only supported for trigger type "Schedule".
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --image
summary: |-
Container image, e.g. publisher/image-name:tag.
- name: --max-executions
summary: |-
Maximum number of job executions to run per polling interval.
- name: --memory
summary: |-
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
- name: --min-executions
summary: |-
Minimum number of job executions to run per polling interval.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --parallelism
summary: |-
Maximum number of replicas to run per execution.
- name: --polling-interval
summary: |-
Interval to check each event source in seconds. Defaults to 30s.
- name: --rcc --replica-completion-count
summary: |-
Number of replicas that need to complete successfully for execution to succeed.
- name: --remove-all-env-vars
defaultValue: "False"
summary: |-
Remove all environment variable(s) from container..
- name: --remove-env-vars
summary: |-
Remove environment variable(s) from container. Space-separated environment variable names.
- name: --replace-env-vars
summary: |-
Replace environment variable(s) in container. Other existing environment variables are removed. Space-separated values in 'key=value' format. If stored as a secret, value must start with 'secretref:' followed by the secret name.
- name: --replica-retry-limit
summary: |-
Maximum number of retries before the replica fails.
- name: --replica-timeout
summary: |-
Maximum number of seconds a replica can execute.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --scale-rule-auth --sra
summary: |-
Scale rule auth parameters. Auth parameters must be in format "<triggerParameter>=<secretRef> <triggerParameter>=<secretRef> ...".
- name: --scale-rule-metadata --srm
summary: |-
Scale rule metadata. Metadata must be in format "<key>=<value> <key>=<value> ...".
- name: --scale-rule-name --srn
summary: |-
The name of the scale rule.
- name: --scale-rule-type --srt
summary: |-
The type of the scale rule.
- name: --set-env-vars
summary: |-
Add or update environment variable(s) in container. Existing environment variables are not modified. Space-separated values in 'key=value' format. If stored as a secret, value must start with 'secretref:' followed by the secret name.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- name: --tags
summary: |-
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
- name: --workload-profile-name -w
summary: |-
The friendly name for the workload profile.
- name: --yaml
summary: |-
Path to a .yaml file with the configuration of a container app. All other parameters will be ignored. For an example, see https://docs.microsoft.com/azure/container-apps/azure-resource-manager-api-spec#examples.
- uid: az_containerapp_job_update(containerapp)
name: az containerapp job update
extensionSuffix: containerapp
summary: |-
Update a Container Apps Job.
status: GA
sourceType: Extension
syntax: >-
az containerapp job update [--args]
[--command]
[--container-name]
[--cpu]
[--cron-expression]
[--ids]
[--image]
[--max-executions]
[--memory]
[--min-executions]
[--name]
[--no-wait]
[--parallelism]
[--polling-interval]
[--rcc]
[--remove-all-env-vars]
[--remove-env-vars]
[--replace-env-vars]
[--replica-retry-limit]
[--replica-timeout]
[--resource-group]
[--scale-rule-auth]
[--scale-rule-identity]
[--scale-rule-metadata]
[--scale-rule-name]
[--scale-rule-type]
[--set-env-vars]
[--subscription]
[--tags]
[--workload-profile-name]
[--yaml]
examples:
- summary: |-
Update a job's replica timeout.
syntax: >-
az containerapp job update -n my-containerapp-job -g MyResourceGroup \
--replica-timeout 10
optionalParameters:
- name: --args
summary: |-
A list of container startup command argument(s). Space-separated values e.g. "-c" "mycommand". Empty string to clear existing values.
- name: --command
summary: |-
A list of supported commands on the container that will executed during startup. Space-separated values e.g. "/bin/queue" "mycommand". Empty string to clear existing values.
- name: --container-name
summary: |-
Name of the container.
- name: --cpu
summary: |-
Required CPU in cores from 0.25 - 2.0, e.g. 0.5.
- name: --cron-expression
summary: |-
Cron expression. Only supported for trigger type "Schedule".
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --image
summary: |-
Container image, e.g. publisher/image-name:tag.
- name: --max-executions
summary: |-
Maximum number of job executions to run per polling interval.
- name: --memory
summary: |-
Required memory from 0.5 - 4.0 ending with "Gi", e.g. 1.0Gi.
- name: --min-executions
summary: |-
Minimum number of job executions to run per polling interval.
- name: --name -n
summary: |-
The name of the Container Apps Job. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --parallelism
summary: |-
Maximum number of replicas to run per execution.
- name: --polling-interval
summary: |-
Interval to check each event source in seconds. Defaults to 30s.
- name: --rcc --replica-completion-count
summary: |-
Number of replicas that need to complete successfully for execution to succeed.
- name: --remove-all-env-vars
defaultValue: "False"
summary: |-
Remove all environment variable(s) from container..
- name: --remove-env-vars
summary: |-
Remove environment variable(s) from container. Space-separated environment variable names.
- name: --replace-env-vars
summary: |-
Replace environment variable(s) in container. Other existing environment variables are removed. Space-separated values in 'key=value' format. If stored as a secret, value must start with 'secretref:' followed by the secret name.
- name: --replica-retry-limit
summary: |-
Maximum number of retries before the replica fails.
- name: --replica-timeout
summary: |-
Maximum number of seconds a replica can execute.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --scale-rule-auth --sra
summary: |-
Scale rule auth parameters. Auth parameters must be in format "<triggerParameter>=<secretRef> <triggerParameter>=<secretRef> ...".
- name: --scale-rule-identity --sri
summary: |-
Resource ID of a managed identity to authenticate with Azure scaler resource(storage account/eventhub or else), or System to use a system-assigned identity.
isPreview: true
- name: --scale-rule-metadata --srm
summary: |-
Scale rule metadata. Metadata must be in format "<key>=<value> <key>=<value> ...".