Azure AKS Get Credentials
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
Getting each deployment and exract its image used:
kubectl get deployments -n backend -o=jsonpath='{range .items[*]}{.metadata.name}{", "}{.spec.template.spec.containers[].image}{"\n"}'
Output will be in the following format:
{deployment_name}, {deployed_image}
If you need just the image used:
kubectl get deployments -n backend -o=jsonpath='{range .items[*]}{.spec.template.spec.containers[].image}{"\n"}'