使用 "az eventgrid system-topic event-subscription" 更新高级过滤器时,我应该提供什么端点?

What endpoint should I provide when updating advanced filters with "az eventgrid system-topic event-subscription"?

我已尝试通过 az eventgrid system-topic event-subscription update 更新数据工厂 blobevent 触发器的高级过滤器。

它要求一个端点(实际上这在文档中是兼性的),但如果我不输入它,我会得到:

Invalid event subscription request: Supplied URL is invalid. It cannot be null or empty and should be a proper HTTPS URL like https://www.example.com.

这是我的命令:

az eventgrid system-topic event-subscription update 
--system-topic-name $systemtopicname 
--name $topicName 
-g $ResourceGroup 
--endpoint $endpoint 
--advanced-filter data.api StringIn CreateFile PutBlob CopyBlob

我查看了有关此端点的文档,据说它是 webhook 端点 (https://docs.microsoft.com/fr-fr/cli/azure/eventgrid/system-topic/event-subscription?view=azure-cli-latest)

Endpoint where EventGrid should deliver events matching this event subscription. For webhook endpoint type, this should be the corresponding webhook URL. For other endpoint types, this should be the Azure resource identifier of the endpoint. It is expected that the destination endpoint to be already created and available for use before executing any Event Grid command.

但是没用。

Deployment failed. Correlation ID: 95e4fab5-163e-48ab-8cb2-b23432516e53. Webhook validation handshake failed for [webwook end point provided in the topic]. Http POST request failed with response code Unknown. For troublehooting, visit https://aka.ms/esvalidation.

我也试过 az eventgrid event-subscription update 但没有成功!

任何意见或建议都将非常有用,在此先感谢!

用于更新事件订阅的 az 命令需要一个完整的端点url包括其查询参数。

使用带有可选参数的 az eventgrid system-topic event-subscription show 命令 [--include-full-endpoint-url {false, true}] 获取$endpoint 变量的完整端点 url。

请注意,用于更新 (PATCH) 事件订阅的 REST API 只能用于高级过滤属性。