Domain 3 of 5 · Chapter 3 of 4

Provision and manage containers in the Azure portal

Unlock the complete study guide + 25 practice exams totaling 1,497 questions.

Bundled into the existing Microsoft Azure Administrator premium course — no separate purchase.

14-day refund guarantee on one-time purchases and your first subscription charge.

Included in this chapter:

  • Registries, container groups, and container apps
  • Creating a registry and choosing its pricing plan
  • Authenticating to a registry
  • Registry permissions mode and image-access roles
  • Importing images into a registry
  • Registry request limits and HTTP 429
  • Container groups in Azure Container Instances
  • Restart policies for container groups
  • Checking a container's outcome
  • Storage volumes in a container group
  • Environment variables and secure values
  • Pulling Container Instances images from a private registry
  • Deploying a container group into a virtual network
  • Sizing and updating a container group
  • The Container Apps environment
  • Environment networking and subnet sizing
  • Defining the containers of a container app
  • Secrets and the settings that reference them
  • Ingress for a container app
  • Revisions and revision modes
  • Storage in a container app
  • Sizing container app replicas
  • Scale rules in Container Apps
  • How Container Apps makes scale decisions
  • Billing in Container Apps

Azure Container Instances vs Azure Container Apps

Decision pointAzure Container InstancesAzure Container Apps
Unit you deployContainer group: containers on one host sharing lifecycle, network, and volumesContainer app in a Container Apps environment, versioned as revisions and run as replicas
Image operating systemLinux or Windows (a Windows group holds one container)Linux amd64 only
Rolling out a new imageRedeploy the group under the same name; every container restartsA new revision; single revision mode switches traffic when it is ready
Changing CPU or memoryDelete and recreate the groupDeploy a new revision with a supported CPU and memory pair
Capacity modelFixed: the sum of the containers' resource requestsHorizontal: 0 to 10 replicas by default, up to 1,000, driven by scale rules
Durable filesAzure Files share (Linux containers running as root)Azure Files share (SMB or NFS) defined on the environment
Private networkingDelegated subnet; no public IP or DNS label; NAT gateway for outboundEnvironment on your virtual network; a workload profiles environment needs a delegated /27 or larger subnet
Managed identity image pull from Container RegistryUser-assigned identity onlySystem-assigned or user-assigned identity

Decision tree

Windows container image?noyesNeeds revisions orreplica scaling?ContainerInstancesWindows imagenoyesRun-oncetask?Two versionssplit traffic?yesnoyesnoContainerInstancesOnFailureor NeverContainerInstancesAlwaysContainerAppsmultiplerevisionmodeContainerAppssinglerevisionmode

Cheat sheet

  • Registry import copies existing images server-side without a local Docker engine
  • Registry resource names and login-server addresses are different identifiers
  • Premium Registry adds private endpoints and geo-replication rather than basic registry access
  • Registry authentication should match interactive users or unattended workloads
  • The optional registry admin account has broad access and two rotatable passwords
  • Registry permission mode determines which image-access roles are honored
  • Registry throttling can be caused by both shared and per-identity rate limits
  • ACI container groups share a host, lifecycle, and network identity
  • ACI restart policy distinguishes ongoing services from run-to-completion tasks
  • ACI uses Azure Files mounts for data that must outlive the container
  • VNet-deployed ACI groups need a delegated subnet and explicit outbound connectivity
  • Updating an ACI group restarts its containers and requires preserving existing settings
  • ACI process state and stdout logs answer different operational questions
  • ACI managed-identity image pulls require a user-assigned identity configured as registry credentials
  • ACI runs isolated containers without requiring VM administration or a cluster orchestrator
  • ACI interactive execution inspects a running container beyond its existing logs
  • A zonal ACI deployment pins one container group to one selected availability zone
  • ACI Spot and confidential groups address interruption tolerance and data-in-use protection respectively
  • ACI secure environment values hide secrets from resource properties but not from the container
  • ACI emptyDir and secret volumes serve different nondurable file requirements
  • ACI group allocation is based on the sum of container requests
  • ACI resource limits allow a container to use spare group capacity without adding allocation
  • ACI CPU and memory changes require group recreation rather than an in-place update
  • ACI distinguishes fixed group limits from adjustable regional quotas
  • Startup, liveness, and readiness probes check different stages of container health
  • A Container Apps environment groups related apps behind shared operational boundaries
  • Container Apps requires Linux x64 images and distinguishes sidecars from initialization tasks
  • App ingress visibility is relative to the environment rather than automatically to the internet
  • Template changes create revisions while application configuration can affect every revision
  • Revision mode chooses automatic replacement or concurrent traffic-controlled versions
  • Container-local, replica-scoped, and Azure Files storage have different persistence boundaries
  • Container Apps environment type determines routing support and subnet allocation rules
  • Container Apps must select private-registry authentication separately from enabling an identity
  • Container Apps ingress separates the container listener from the client-facing protocol and port
  • Container Apps environment variables explicitly bind application settings to values or named secrets
  • Container Apps replica limits must preserve a path to activation from zero
  • Choose a Container Apps scale trigger that measures the actual source of demand
  • Event scale rules need their own authenticated connection to the source
  • Container Apps evaluates multiple demand rules without requiring all triggers to fire
  • Consumption replicas require supported combined CPU and memory pairs
  • Container Apps scale rules change replica count rather than per-replica hardware
  • An event scaler rounds aggregate demand upward to obtain its desired replica population
  • An idle Consumption replica can still be billable while zero replicas consume no app resources

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal
  2. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-overview
  3. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-groups
  4. https://learn.microsoft.com/en-us/azure/container-apps/containers
  5. https://learn.microsoft.com/en-us/azure/container-apps/revisions
  6. https://learn.microsoft.com/en-us/azure/container-apps/scale-app
  7. https://learn.microsoft.com/en-us/azure/container-apps/environment
  8. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-skus
  9. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication
  10. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-rbac-abac-repository-permissions
  11. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-troubleshoot-login-authn-authz
  12. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-rbac-built-in-roles-overview
  13. https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-cli
  14. https://learn.microsoft.com/en-us/azure/container-registry/container-registry-import-images
  15. https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/analyze-metrics
  16. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-resource-and-quota-limits
  17. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-restart-policy
  18. https://learn.microsoft.com/en-us/rest/api/container-instances/container-groups/get
  19. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-secret
  20. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files
  21. https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-linux
  22. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview
  23. https://learn.microsoft.com/en-us/azure/storage/files/create-classic-file-share
  24. https://learn.microsoft.com/en-us/azure/storage/files/files-management-concepts
  25. https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview
  26. https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage
  27. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-volume-emptydir
  28. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-environment-variables
  29. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/data-types
  30. https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/parameters
  31. https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/data-types
  32. https://learn.microsoft.com/en-us/azure/container-instances/using-azure-container-registry-mi
  33. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-virtual-network-concepts
  34. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-subnet
  35. https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security-virtual-networks
  36. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-update
  37. https://learn.microsoft.com/en-us/azure/container-apps/custom-virtual-networks
  38. https://learn.microsoft.com/en-us/azure/container-apps/ingress-overview
  39. https://learn.microsoft.com/en-us/azure/nat-gateway/nat-overview
  40. https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
  41. https://learn.microsoft.com/en-us/azure/container-apps/environment-type-consumption-only
  42. https://learn.microsoft.com/en-us/azure/container-apps/health-probes
  43. https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container
  44. https://learn.microsoft.com/en-us/azure/container-apps/environment-variables
  45. https://learn.microsoft.com/en-us/azure/container-apps/ingress-how-to
  46. https://learn.microsoft.com/en-us/azure/container-apps/storage-mounts
  47. https://learn.microsoft.com/en-us/azure/container-apps/billing