Get-AzureRmContainerRegistryWebhook

Gets a container registry webhook.

Warning

The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.

Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.

Syntax

Get-AzureRmContainerRegistryWebhook
   [-ResourceGroupName] <String>
   [-RegistryName] <String>
   [-IncludeConfiguration]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmContainerRegistryWebhook
   [-Name] <String>
   [-ResourceGroupName] <String>
   [-RegistryName] <String>
   [-IncludeConfiguration]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmContainerRegistryWebhook
   [-Name] <String>
   -Registry <PSContainerRegistry>
   [-IncludeConfiguration]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmContainerRegistryWebhook
   -Registry <PSContainerRegistry>
   [-IncludeConfiguration]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmContainerRegistryWebhook
   [-IncludeConfiguration]
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzureRmContainerRegistryWebhook cmdlet gets a specified webhook of container registry or all the webhooks of a container registry.

Examples

Example 1: Get a specified webhook of a container registry

PS C:\>Get-AzureRmContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry" -Name "webhook001"

Name            Location   Status     Scope           Actions         Provisioni ServiceUri
                                                                      ngState
----            --------   ------     -----           -------         ---------- ----------
webhook001      westus     enabled                    {push, delete}  Succeeded

Get a specified webhook of a container registry

Example 2: Get all the webhooks of a container registry

PS C:\>Get-AzureRmContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry"

Name            Location   Status     Scope           Actions         Provisioni ServiceUri
                                                                      ngState
----            --------   ------     -----           -------         ---------- ----------
webhook04       westus     enabled                    {push, delete}  Succeeded
webhook05       westus     disabled                   {push, delete}  Succeeded
wh003           westus     enabled                    delete          Succeeded

Get all the webhooks of a container registry

Example 3: Get a specified webhook of a container registry with configuration details

PS C:\>Get-AzureRmContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry" -Name "webhook001" -IncludeConfiguration

Name            Location   Status     Scope           Actions         Provisioni ServiceUri
                                                                      ngState
----            --------   ------     -----           -------         ---------- ----------
webhook001      westus     enabled                    {push, delete}  Succeeded  http://www.test.com/

Get a specified webhook of a container registry with configuration details

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IncludeConfiguration

Get the configuration information for a webhook.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Webhook Name.

Type:String
Aliases:WebhookName, ResourceName
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Registry

Container Registry Object.

Type:PSContainerRegistry
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-RegistryName

Container Registry Name.

Type:String
Aliases:ContainerRegistryName
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

The container registry Webhook resource id

Type:String
Aliases:Id
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PSContainerRegistry

Parameters: Registry (ByValue)

String

Outputs

PSContainerRegistryWebhook