az containerapp job logs
Note
This reference is part of the containerapp extension for the Azure CLI (version 2.62.0 or higher). The extension will automatically install the first time you run an az containerapp job logs command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show container app job logs.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp job logs show |
Show past logs and/or print logs in real time (with the --follow parameter). Note that the logs are only taken from one execution, replica, and container. |
Extension | Preview |
az containerapp job logs show
Command group 'containerapp job logs' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show past logs and/or print logs in real time (with the --follow parameter). Note that the logs are only taken from one execution, replica, and container.
az containerapp job logs show --container
--name
--resource-group
[--execution]
[--follow {false, true}]
[--format {json, text}]
[--replica]
[--tail]
Examples
Fetch the past 20 lines of logs from a job and return
az containerapp job logs show -n my-containerappjob -g MyResourceGroup --container MyContainer
Fetch 30 lines of past logs logs from a job and print logs as they come in
az containerapp job logs show -n my-containerappjob -g MyResourceGroup --container MyContainer --follow --tail 30
Fetch logs for a particular execution, replica, and container
az containerapp job logs show -n my-containerappjob -g MyResourceGroup --execution MyExecution --replica MyReplica --container MyContainer
Required Parameters
The name of the container.
The name of the Containerapp job.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The name of the container app execution. Defaults to the latest execution.
Print logs in real time if present.
Log output format.
The name of the replica. List replicas with 'az containerapp job replica list'. A replica may not exist if the job pod has been cleaned up.
The number of past logs to print (0-300).
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI