简体   繁体   English

是否可以为 Azure Function 部署槽创建 Azure 存储事件网格订阅?

[英]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:然后我尝试创建订阅并收到以下错误:

“无效的 ARM ID”

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!谢谢!

  • As far as I know and as per the Microsoft Documentation Event Grid is still in preview mode for Azure functions and it is not fully supported.据我所知,根据 Microsoft 文档,事件网格仍处于 Azure 函数的预览模式,并且未得到完全支持。
  • Here is the Feedback form for raising a Feature Request.这是提出功能请求的反馈表

在此处输入图像描述

在此处输入图像描述

  • Here is the Github document for further investigation.这里是 Github 文件,供进一步调查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以在 azure function 应用程序中创建主题订阅? - Is it possible to create a topic subscription in an azure function app? Azure Lighthouse - 获取订阅级别部署的区域 - Azure Lighthouse - Get the region for subscription level deployment 部署到唯一 Azure Function 应用程序部署槽并返回 URL 和 Github 操作 - Deploy to Unique Azure Function App Deployment Slot and Return URL with Github Actions Azure Function Java Blob 存储(基于事件)的绑定名称不起作用 - Azure Function Java BindingName for Blob Storage (event-based) is not working Azure Function 插槽交换前的健康检查? - Azure Function healthcheck before slot swap? Azure 事件网格 | 每个事件的主题 - Azure Event Grid | Topic per event 我想连接到 azure 数据块并创建工作区并使用 powershell 命令或 rest api 进行部署。这可能吗? - I want to connect to azure databricks and create workspace and do the deployment using powershell commands or rest api. is it possible? 无法使用 Visual Studio 发布 Azure Function:禁用创建按钮 - Publishing Azure Function using Visual Studio not possible: Create button disabled Azure 事件网格主题的应用程序网关后端池 - Azure Application Gateway backendpool to Event Grid Topic 默认 Azure Function 部署超时 - Default Azure Function Times Out During Deployment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM