CmdID

CmdID / az / az containerapp / az containerapp env / az containerapp env logs

az containerapp env logs show

Show past environment logs and/or print logs in real time (with the --follow parameter) Azure CLI reference

2 examples 2 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Fetch the past 20 lines of logs from an app and return

az containerapp env logs show -n MyEnvironment -g MyResourceGroupIdentify
-nName of the Container Apps environment.
-gName of resource group.

Fetch 30 lines of past logs logs from an environment and print logs as they come in

az containerapp env logs show -n MyEnvironment -g MyResourceGroup --follow --tail 30Identify
-nName of the Container Apps environment.
-gName of resource group.
--followPrint logs in real time if present.
--tailThe number of past logs to print (0-300)

Options

2 in the Azure CLI reference
--followPrint logs in real time if present.
--tailThe number of past logs to print (0-300)