Azure functions 从只能访问有限虚拟网络的Azure存储帐户订阅事件的方法是什么?

Azure functions 从只能访问有限虚拟网络的Azure存储帐户订阅事件的方法是什么?,azure-functions,azure-storage,azure-eventgrid,Azure Functions,Azure Storage,Azure Eventgrid,尝试从Azure存储创建Azure事件订阅到Azure函数时,我遇到以下错误 The attempt to configure storage notifications for the provided storage account <storage-name> failed. Please ensure that your storage account meets the requirements described at https://aka.ms/storageeven

尝试从Azure存储创建Azure事件订阅到Azure函数时,我遇到以下错误

The attempt to configure storage notifications for the provided storage account <storage-name> failed.
Please ensure that your storage account meets the requirements described at https://aka.ms/storageevents.
The error is Failed to retrieve credentials for request=RequestUri=https://management.azure.com/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.Storage/storageAcco...

我怀疑该问题与Azure事件订阅由于网络限制而无法连接到存储帐户有关。是否缺少一些必要的步骤?

此错误不是由于虚拟网络造成的。事实上,显示的错误已经告诉您问题的方向。查看此文档:

只有StorageV2通用v2和BlobStorage类型的存储帐户支持事件集成。Storage genral purpose v1不支持与事件网格集成


创建一个v2存储帐户,问题就会消失。

您的存储帐户是版本1还是版本2?该存储帐户是v2存储帐户。