Quarantine action not available on Azure Container Registry (ACR) Webhook

Cleber Ramos 60 Reputation points
2023-10-02T11:24:26.45+00:00

Many Microsoft tutorials show the "quarantine" action on an ACR webhook, but it's not available, only push, delete, chart_push, and chart_delete. Is the action hidden or deprecated? Is there anything that needs to be done to show it, or are all tutorials outdated?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Mutaz Nassar 2,361 Reputation points Microsoft Employee
    2023-10-03T08:35:52+00:00

    Hi @Cleber Ramos,

    As mentioned here, the quarantine action is currently a preview feature of ACR and will not appear in the list.
    You can enable it using REST API as described here, and here are the steps to create a webhook:

    1. Prepare the webhook with your parameters:
    PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/webhooks/myWebhook?api-version=2023-01-01-preview
    
    {
      "location": "westus",
      "tags": {
        "key": "value"
      },
      "properties": {
        "serviceUri": "http://myservice.com",
        "customHeaders": {
          "Authorization": "******"
        },
        "status": "enabled",
        "scope": "myRepository",
        "actions": [
          "quarantine"
        ]
      }
    }
    
    1. Navigate to https://resources.azure.com/raw/, and copy the content from step 1
      User's image
    2. Highlight the text then press CRTL+s , and the webhook will be created.
      User's image

    5.Here is my quarantine webhook:User's image

    Hope this helps, and please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jitendra Kumar 0 Reputation points Microsoft Employee
    2025-10-02T17:31:55.7+00:00

    The option should also be available form az cli.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.