An ACR webhook is an Azure Container Registry event notification that sends an HTTP or HTTPS request to a configured endpoint when registry actions occur, such as image push or delete. It can be registry-wide or scoped to a repository or tag, including regional replicas.
An ACR webhook is an Azure Container Registry event notification that sends an HTTP or HTTPS request to a configured endpoint when registry actions occur, such as image push or delete. It can be registry-wide or scoped to a repository or tag, including regional replicas.
In Azure architecture, this term sits in the container artifact lifecycle: source code becomes an image or OCI artifact, the registry stores it, deployment platforms such as AKS and Azure Container Apps pull it, and operators use metadata to prove what was built, promoted, scanned, or removed. The control plane includes the ACR resource, repository settings, token or scope-map objects, task definitions, webhook definitions, and policy settings. The data plane includes pushes, pulls, tags, manifests, layers, and credential use by clients. A safe design treats registry content as production supply-chain evidence, not just files in a private Docker store. For ACR webhook, the important fields are action triggers, service URI, custom headers, status, repository or tag scope, delivery history, and regional replica for geo-replicated registries. The endpoint must be reachable by the registry and should authenticate incoming requests.
Why it matters
This matters because container mistakes travel quickly. A wrong repository name, overly broad token, accidental tag deletion, missed rebuild, noisy webhook, or blind retention rule can break deployments, expose private images, raise storage cost, or hide the evidence needed during an incident. The practical habit is to ask what artifact boundary the term controls, who owns that boundary, which workload consumes it, what command proves the current state, and what rollback evidence must be preserved before a cleanup, credential, or automation change is made. For ACR webhook, the most useful evidence is not the product label; it is the concrete output that shows current state, ownership, scope, and the next safe action.
⌁
Where you see it
Signals, screens, and Azure surfaces where this term usually becomes operational.
Signal 01
ACR webhooks
Signal 02
image push automation
Signal 03
vulnerability scan triggers
Signal 04
registry event delivery
Signal 05
az acr webhook commands
✦
When this becomes relevant
Specific situations where this term helps solve real Azure design, operations, migration, security, reliability, cost, or governance problems.
Notify an endpoint when images are pushed or deleted.
Trigger scanning, deployment, or ticket creation from registry events.
Scope event notifications to a repository or tag pattern.
Test webhook delivery with ping and inspect event history.
◆
Real-world case studies
Different enterprise-style examples that show the term being used to hit measurable objectives.
Case study 01
ACR webhook in action
Scenario, objectives, solution, measured impact, and takeaway.
📌Scenario
Meridian Sportswear wanted an automated notification whenever a new production image was pushed, but release coordinators were still watching pipeline pages manually.
🎯Business/Technical Objectives
Notify the deployment orchestrator within seconds of image push.
Limit webhook scope to production repository tags.
Validate endpoint health before enabling production automation.
Keep event payload evidence for release troubleshooting.
✅Solution Using ACR webhook
The platform team created an ACR webhook scoped to `retail/web-api:prod-*` and configured it to trigger on image push events. The webhook sent HTTPS POST notifications to a public endpoint fronted by API Management, which validated a shared header and forwarded the event to a Logic App. Operators used the webhook ping command before production enablement and reviewed `az acr webhook list-events` after the first pushes. For the geo-replicated registry, the webhook was configured in the regional replica that served the deployment workload, so events matched the region where releases occurred. The runbook also recorded the owner, scope, verification command, rollback contact, and evidence to save after the change so operators could repeat the pattern safely.
📈Results & Business Impact
Deployment notification latency fell from 15 minutes to under 30 seconds.
Manual release-page monitoring was eliminated for six services.
Webhook ping testing caught two endpoint firewall mistakes before go-live.
Release incident triage used event payloads to identify wrong tags in minutes.
💡Key Takeaway for Glossary Readers
An ACR webhook turns registry events into automation signals, but only when scope and endpoint security are deliberate.
Case study 02
ACR webhook in action
Scenario, objectives, solution, measured impact, and takeaway.
📌Scenario
HorizonGrid Energy needed to start vulnerability scanning whenever a container image was pushed to a shared registry repository.
🎯Business/Technical Objectives
Trigger scanning automatically on image push events.
Avoid scanning development repositories outside the security program.
Capture webhook delivery status for operational review.
Reduce the delay between image push and risk assessment.
✅Solution Using ACR webhook
Security engineering created an ACR webhook for push actions on `production/*` repositories. The service URI pointed to a hardened scanner gateway that accepted only authenticated webhook requests. When ACR sent the event payload, the gateway queued a scan using repository, tag, and digest details from the event. Operators tested the webhook with ping before enabling it, then checked delivery events after several sample pushes. The scanner posted results back to Azure DevOps, blocking deployment if the digest failed policy. Webhook configuration was included in the registry runbook with owner, URI, scope, actions, and expected response code. The runbook also recorded the owner, scope, verification command, rollback contact, and evidence to save after the change so operators could repeat the pattern safely.
📈Results & Business Impact
Average time from push to scan start dropped from 47 minutes to 2 minutes.
Unauthorized development repositories were excluded from scanner cost.
Delivery-event evidence reduced webhook troubleshooting time by 70%.
Critical vulnerability blocks prevented 9 risky image deployments in one quarter.
💡Key Takeaway for Glossary Readers
ACR webhooks are useful when registry changes need immediate downstream action and auditable delivery evidence.
Case study 03
ACR webhook in action
Scenario, objectives, solution, measured impact, and takeaway.
📌Scenario
CivicRoute Transit operated separate container deployments in East US and West US and needed region-aware automation after image deletion events.
🎯Business/Technical Objectives
Detect delete events from the correct geo-replicated registry region.
Notify the platform team before cleanup affects rollback images.
Test webhook delivery without pushing real production images.
Reduce false alerts from unrelated repository activity.
✅Solution Using ACR webhook
The container platform group configured ACR webhooks in each regional registry replica, with scopes limited to the repositories used by that region's AKS clusters. Delete events flowed to a regional Azure Function endpoint that enriched the payload with environment and owner metadata. Before enabling delete alerts, operators used the webhook ping action and reviewed the response code. Event history was checked after each cleanup window, and the function created a ticket only when a deleted tag matched the rollback retention watchlist. This made image deletion visible without flooding operations with every registry event. The runbook also recorded the owner, scope, verification command, rollback contact, and evidence to save after the change so operators could repeat the pattern safely.
📈Results & Business Impact
False cleanup alerts decreased 58% after repository-scoped webhooks were applied.
Regional ownership was visible in every generated incident ticket.
Webhook ping testing verified endpoints before three maintenance windows.
Rollback-image delete alerts reached the team in under 1 minute.
💡Key Takeaway for Glossary Readers
A scoped ACR webhook connects registry events to operations without turning every image change into noise.
Why use Azure CLI for this?
Azure CLI is useful for ACR webhook because it turns portal-visible configuration into repeatable evidence. Operators can list the target, inspect IDs and state, confirm whether the command is read-only or mutating, and save sanitized output for release or incident records. For this term, CLI work should start with context checks such as tenant, subscription, resource group, registry, database, role scope, or resource ID. Use JSON output when tags, digests, receiver lists, token permissions, assignment scopes, metrics, or replica links matter. Treat commands that delete manifests, disable tokens, update scope maps, create alerts, or fail over databases as approval-required changes, not casual inspection.
CLI use cases
Inventory the current ACR webhook configuration before a release, access change, cleanup, alert update, or database operation so the operator can prove the target is correct.
Troubleshoot production behavior by comparing live Azure output for ACR webhook with the expected architecture, owner, scope, tag, permission, metric, or replica state.
Automate a repeatable verification check around ACR webhook in a pipeline or runbook so drift is caught before users, workloads, or auditors discover it.
Create sanitized post-change evidence for ACR webhook, keeping IDs, state, timestamps, digests, run IDs, metrics, or links while redacting secrets and sensitive endpoints.
Before you run CLI
Confirm the active tenant and subscription with `az account show`; many ACR webhook mistakes are wrong-context mistakes that look like product failures.
Identify the exact resource boundary before running commands: registry, repository, scope map, token, task, webhook, action group, role scope, database, or replica link.
Classify the command as read-only, security-impacting, cost-impacting, destructive, or availability-impacting; approval is required before mutating ACR webhook in production.
Decide how sensitive output will be handled before the command runs, especially token passwords, webhook URIs, object IDs, connection details, and registry metadata.
What output tells you
The output confirms whether Azure returned the intended ACR webhook target by name, resource ID, subscription, region, repository, database, role scope, or alert group.
State fields show what Azure will actually use: tags, digests, retention status, repository actions, token status, task triggers, receivers, session metrics, or replica links.
Nested JSON often contains the important evidence; table output can hide permissions, timestamps, action lists, credential status, endpoint scope, or metric dimensions.
The output also tells you whether the next action should be inspection, approval, rollback, scale, cleanup, failover, credential rotation, or a safer design review.
Mapped Azure CLI commands
ACR webhook commands
direct
az acr webhook list --registry <registry-name> --resource-group <resource-group> --output table
az acr webhook ping --registry <registry-name> --name <webhook-name>
az acr webhookdiscoverContainers
az acr webhook list-events --registry <registry-name> --name <webhook-name>
az acr webhookdiscoverContainers
az acr webhook delete --registry <registry-name> --name <webhook-name>
az acr webhookremoveContainers
Architecture context
Use webhooks when a registry action should start external automation quickly, such as scanning, deployment notification, or ticket creation. Scope them narrowly, test with ping before production, monitor delivery events, and avoid treating webhook delivery as a replacement for deployment approval.
Security
Security depends on treating the registry as part of the software supply chain. Verify who can push, pull, delete, update metadata, trigger automation, or read event payloads. Prefer managed identity or Microsoft Entra integration for Azure workloads where it fits, use repository-scoped tokens only when needed, avoid registry admin credentials, and keep secrets out of command lines and logs. For ACR webhook, save evidence that proves the repository, token, scope, trigger, task, or policy affects only the intended image boundary.
Cost
Cost is usually indirect but real. Registry storage grows through repeated tags, orphaned manifests, large layers, retained rollback images, and build artifacts. Tasks can add build/run consumption, webhooks and scanners can trigger downstream cost, and over-segmentation can create unnecessary registries. For ACR webhook, cost control comes from clear image lifecycle rules, unique tagging, retention reviewed against rollback needs, and evidence that cleanup is removing waste rather than deleting still-needed production artifacts.
Reliability
Reliability depends on preserving the artifacts and automation that workloads actually consume. A missing tag, deleted manifest, disabled token, broken webhook endpoint, failed task, or wrong repository name can stop AKS, Container Apps, or CI/CD even when the compute platform is healthy. For ACR webhook, operators should verify the current state before change, keep rollback images available, test automation paths, and record the digest, tag, trigger, run ID, or permission output that proves the release can still recover.
Performance
Performance usually appears through pull speed, build duration, automation latency, and deployment reliability rather than user-request latency. Large images, remote regions, excessive layers, broken caching, slow build tasks, or webhook delays can lengthen rollout windows. For ACR webhook, performance review should check image size, tag and digest choice, regional registry strategy, task duration, endpoint response time, and whether deployment platforms can pull the required artifact without waiting on avoidable registry or network bottlenecks.
Operations
Operational excellence means the registry is inspectable from scripts, not only from portal memory. Use Azure CLI to list repositories, show tags, inspect manifest metadata, check retention, view token and scope-map settings, run tasks, read logs, ping webhooks, and export evidence. For ACR webhook, a good runbook names the owner, intended repository path, safe command, destructive command, expected output, rollback contact, and what evidence can be saved without exposing credentials or private image details.
Common mistakes
Treating ACR webhook as a label instead of a boundary with owner, scope, evidence, and rollback consequences.
Running mutating commands from the wrong subscription, resource group, registry, role scope, database, or region because the Azure CLI context was not checked first.
Saving raw secrets, token passwords, webhook URLs, or sensitive identity details in tickets instead of sanitized operational evidence.
Assuming a successful command proves the design is correct; it only proves Azure accepted the request or returned the current state.