ACR and App Service container CLI: which command does what
Verdict: az acr build runs an on-demand cloud build and push. az acr task create defines triggered builds. az webapp config container set points App Service at an image with credentials. az webapp log tail streams live container logs.
| Criterion | az acr build | az acr task create | az webapp config container set | az webapp log tail |
|---|---|---|---|---|
| Does what | On-demand cloud build and push of one image, no local Docker | Defines a persistent triggered task | Points App Service at an image and sets registry credentials | Streams live container log output |
| Use when | Verify a Dockerfile builds in the cloud; a CI/CD build step | Automate builds on commit or base image update | Switch to username and password registry auth for a third-party registry | Watch container startup logs live |
| Needs | Nothing extra | A PAT with repo scope for a private GitHub repo webhook | Registry URL, username, password | Filesystem container logging enabled first |
Rules
- az acr build offloads a docker build and push to the cloud without a local Docker Engine.
- az webapp config container set sets the image plus registry URL, username and password for credential-based pulls.
- az webapp log tail streams live container logs after filesystem container logging is enabled.
Traps
- az acr login authenticates the local Docker client; it does not configure App Service's image source or credentials.
- az acr task logs retrieves prior task-run logs, not live App Service container logs.
- az acr task create defines a persistent triggered task, not an immediate one-off build.