Azure Container Instances Enumeration
List all container instances in the subscription
az container list
az container list --query "[].{Name:name, ResourceGroup:resourceGroup, FQDN:ipAddress.fqdn, PublicIP:ipAddress.ip, Port:ipAddress.ports[0].port, Identity:identity.type, Image:containers[0].image, OS:osType, Registry:imageRegistryCredentials[0].server}" --output json
Show detailed information about a specific container instance
az container show --name $ACI_NAME --resource-group $RESOURCE_GROUP
Fetch logs from a container
az container logs --name $ACI_NAME--resource-group $RESOURCE_GROUP
Execute a command in a running container and get the output
az container exec --name $ACI_NAME --resource-group $RESOURCE_GROUP --exec-command "/bin/h"
Get yaml configuration of the container group
az container export --name $ACI_NAME --resource-group $RESOURCE_GROUP --file </path/local/file.yml>