azure
description: "These code samples will show you how to manage WebHook resource of Container Registry service using Azure SDK for Golang."
urlFragment: container-registry-web-hook
Getting started - Managing Container Registry WebHook using Azure Golang SDK
These code samples will show you how to manage WebHook resource of Container Registry service using Azure SDK for Golang.
Features
This project framework provides examples for the following services:
# bash
export AZURE_SUBSCRIPTION_ID=<your Azure subscription id>
# If no value is set, the created resource will be deleted by default.
# anything other than empty to keep the resources
export KEEP_RESOURCE=1
export AZURE_TENANT_ID=<your Azure Tenant id>
export AZURE_OBJECT_ID=<your Azure Client/Object id>
Run comtainerregistry sample.
cd azure-sdk-for-go-samples/sdk/resourcemanager/comtainerregistry/webhook
go mod tidy
go run main.go