【发布时间】:2019-08-28 18:48:46
【问题描述】:
我需要监听 Azure Blob 存储中的事件。
我正在按照本教程中的步骤Quickstart: Route storage events to web endpoint with Azure CLI。
我从 Microsoft 提供的预构建 Web 应用程序创建了消息端点。
现在我尝试使用以下命令创建事件(从教程中复制)
storageid=$(az storage account show --name dealhubsftpintegrations --resource-group Dealhub --query id --output tsv)
endpoint=https://dealhubsharon.azurewebsites.net/api/updates
az eventgrid event-subscription create \
--source-resource-id $storageid \
--name dealhubsftpintegrations \
--endpoint $endpoint
我收到以下回复
Argument 'resource_id' has been deprecated and will be removed in version '2.1.0'. Use '--source-resource-id' instead.
If the provided endpoint does not support subscription validation handshake, navigate to the validation URL that you receive in the subscriptionvalidation event, in order to complete the event subscription creation or update. For more details, please visit http://aka.ms/esvalidation
Deployment failed. Correlation ID: 8bbe1a84-fe87-460b-b7fb-24fb8a78f952. The attempt to configure storage notifications for the provided storageaccount dealhubsftpintegrations failed. Please ensure that your storage account meets the requirements described at https://aka.ms/storageevents.
The error is 400: XML specified is not syntactically valid.
我不知道需要修复什么。使用错误消息在网上搜索会得到不相关的结果
【问题讨论】:
标签: azure azure-cli azure-eventgrid