[英]Is it possible to create an Azure Storage Event Grid Subscription to an Azure Function deployment slot?
I'm using Azure Portal to create a new Event Grid Subscription on my Blob Storage account.我正在使用 Azure 门户在我的 Blob 存储帐户上创建一个新的事件网格订阅。
When configuring the " Endpoint Details " section, I specify that the Endpoint Type is an Azure Function. When prompted to select the Function I want to subscribe to, I'm unable to specify which Deployment Slot the Function is in.配置“端点详细信息”部分时,我指定端点类型为 Azure Function。当系统提示我要订阅 select Function 时,我无法指定 Function 在哪个部署槽中。
The only item available in the Slot dropdown is "Production". Slot 下拉列表中唯一可用的项目是“Production”。 But I've verified that the Function contains more than just that one default Slot.
但我已经验证 Function 包含的不仅仅是一个默认插槽。 The info icon reveals the following:
信息图标显示以下内容:
I understood this to be a limitation of Azure Portal and attempted to circumvent the issue by opening the Advanced Editor and manually modifying the Resource ID to include the path to the Slot.我理解这是 Azure 门户的限制,并试图通过打开高级编辑器并手动修改资源 ID 以包含插槽路径来规避该问题。
Portal-generated Resource ID: "/subscriptions/[subscriptionId]/resourceGroups/[groupName]/providers/Microsoft.Web/sites/[functionAppName]/functions/[functionName]"
门户生成的资源 ID:
"/subscriptions/[subscriptionId]/resourceGroups/[groupName]/providers/Microsoft.Web/sites/[functionAppName]/functions/[functionName]"
Manually edited Resource ID: "/subscriptions/[subscriptionId]/resourceGroups/[groupName]/providers/Microsoft.Web/sites/[functionAppName]/slots/[slotName]/functions/[functionName]"
手动编辑的资源 ID:
"/subscriptions/[subscriptionId]/resourceGroups/[groupName]/providers/Microsoft.Web/sites/[functionAppName]/slots/[slotName]/functions/[functionName]"
Then I attempt to create the Subscription and get the following error:然后我尝试创建订阅并收到以下错误:
Is it possible to create an Azure Storage Event Grid Subscription to an Azure Function deployment slot?是否可以为 Azure Function 部署槽创建 Azure 存储事件网格订阅? I cannot find any resources which explain how to accomplish this using Portal, PowerShell, CLI, etc.
我找不到任何资源来解释如何使用门户、PowerShell、CLI 等来完成此操作。
Thank you!谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.