Create container

az container create --resource-group <rg-name> --name <name> --image <image-name> --cpu 1 --memory 1 --registry-login-server <login-server> --registry-username <username> --registry-password <pass> --ports 80

Create container from YAML

az container create -g <name> --file <file>.yaml

Shor all containers

az container list -o table

Show resources

az resource list -g ResourceGroup -o table
az resource list -g ResourceGroup -o yaml

Show container status

az container show -g ResourceGroup -n name -o table
az container show -g ResourceGroup -n name --query "{Status:instanceView.state}" --out table

Show container logs

az container logs -g ResourceGroup -n name

Export template

az container export -g ResourceGroup -n name -f output.yaml

Cost + Billing

Cost Management + Billing > Cost Analysis

Add Filters:

  • Group by: service name
  • Granilarity: Daily
  • Column

Azure Services

Search with OpenAI