Update-AzContainerRegistryWebhook
Updates a container registry webhook.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Update-AzContainerRegistryWebhook
[-Uri <Uri>]
[-Action <String[]>]
[-Header <Hashtable>]
[-Tag <Hashtable>]
[-Status <String>]
[-Scope <String>]
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzContainerRegistryWebhook
[-Name] <String>
[-ResourceGroupName] <String>
[-RegistryName] <String>
[-Uri <Uri>]
[-Action <String[]>]
[-Header <Hashtable>]
[-Tag <Hashtable>]
[-Status <String>]
[-Scope <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzContainerRegistryWebhook
[-Uri <Uri>]
[-Action <String[]>]
-Webhook <PSContainerRegistryWebhook>
[-Header <Hashtable>]
[-Tag <Hashtable>]
[-Status <String>]
[-Scope <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Update-AzContainerRegistryWebhook cmdlet updates a container registry webhook.
Examples
Example 1: Update an existing container registry webhook.
Update-AzContainerRegistryWebhook -ResourceGroupName "MyResourceGroup" -RegistryName "MyRegistry" -Name "webhook001" -Uri http://www.bing.com -Action Delete,Push -Header @{SpecialHeader='headerVal'} -Tag @{Key='val'} -Status Enabled -Scope 'foo:*'
Name Location Status Scope Actions Provisioni ServiceUri
ngState
---- -------- ------ ----- ------- ---------- ----------
webhook001 westus enabled foo:* {push, delete} Succeeded
Update an existing container registry webhook.
Parameters
Space separated list of actions that trigger the webhook to post notifications.
| Type: | String[] |
| Aliases: | WebhookActions |
| Accepted values: | delete, push |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Space separated custom headers in 'key[=value]' format that will be added to the webhook notifications.
| Type: | Hashtable |
| Aliases: | WebhookHeaders |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Webhook Name.
| Type: | String |
| Aliases: | WebhookName, ResourceName |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Name.
| Type: | String |
| Aliases: | ContainerRegistryName |
| Position: | 2 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Resource Group Name.
| Type: | String |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The container registry Webhook resource id
| Type: | String |
| Aliases: | Id |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Webhook scope.
| Type: | String |
| Aliases: | WebhookScope |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Webhook status
| Type: | String |
| Aliases: | WebhookStatus |
| Accepted values: | enabled, disabled |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Space separated tags in 'key[=value]' format.
| Type: | Hashtable |
| Aliases: | Tags |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The service URI for the webhook to post notifications.
| Type: | Uri |
| Aliases: | WebhookUri |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Container Registry Webhook Object.
| Type: | PSContainerRegistryWebhook |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |