< Back

Get-AzureRmContainerRegistryWebhook

Tue Jan 29, 2019 9:40 pm

NAME Get-AzureRmContainerRegistryWebhook



SYNOPSIS

Gets a container registry webhook.





SYNTAX

Get-AzureRmContainerRegistryWebhook [-Name] <String> [-ResourceGroupName] <String> [-RegistryName] <String> [-DefaultProfile

<IAzureContextContainer>] [-IncludeConfiguration] [<CommonParameters>]



Get-AzureRmContainerRegistryWebhook [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-IncludeConfiguration] -Registry

<PSContainerRegistry> [<CommonParameters>]



Get-AzureRmContainerRegistryWebhook [-DefaultProfile <IAzureContextContainer>] [-IncludeConfiguration] -Registry <PSContainerRegistry>

[<CommonParameters>]



Get-AzureRmContainerRegistryWebhook [-ResourceGroupName] <String> [-RegistryName] <String> [-DefaultProfile <IAzureContextContainer>]

[-IncludeConfiguration] [<CommonParameters>]



Get-AzureRmContainerRegistryWebhook [-DefaultProfile <IAzureContextContainer>] [-IncludeConfiguration] -ResourceId <String> [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IncludeConfiguration [<SwitchParameter>]

Get the configuration information for a webhook.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Webhook Name.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Registry <PSContainerRegistry>

Container Registry Object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-RegistryName <String>

Container Registry Name.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceId <String>

The container registry Webhook resource id



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry

System.String





OUTPUTS

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook

System.Collections.Generic.IList`1[[Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryWebhook,

Microsoft.Azure.Commands.ContainerRegistry, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]





NOTES









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







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... credential

New-AzureRmContainerRegistryWebhook

Update-AzureRmContainerRegistryWebhook

Remove-AzureRmContainerRegistryWebhook

Test-AzureRmContainerRegistryWebhook