将现有 VNET 与 Azure Function APP 结合使用

发布于 2025-01-16 01:39:11 字数 345 浏览 4 评论 0原文

我在其下有一个 VNET2 个子网。一个子网用于连接到外部 Kafka 服务器。

互联网络: xx.xx.xx.0/26 子网: xx.xx.xxx.0/27 和 xx.xx.xxx.32/27(每个 27 个可用 IP)

我想使用以下命令测试 Kafka 主题 引导服务器。是否可以创建一个 Function App 并将其定位到相同的现有子网(用于连接到外部 Kafka 服务器)。这样,我就可以在 Azure 中获得一个控制台来运行命令并测试 Kafka 主题。

I have one VNET and 2 subnets under that. One subnet is used to connect to an external Kafka server.

VNET: xx.xx.xx.0/26
Subnets: xx.xx.xxx.0/27 and xx.xx.xxx.32/27 (27 Available IPs each)

I wanted to test the Kafka topics using the bootstrap server. Is it possible to create a Function App and target that to the same existing subnet (that was used to connect to an external Kafka server.) So that, I can get a console in Azure to run the commands and test the Kafka topics.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

差↓一点笑了 2025-01-23 01:39:11

• 由于您的 Kafka 服务器是外部服务器,并且您已部署 bootstrap-config 服务器来连接 Azure 资源元数据并将其转发到 Kafka 服务器,同时还在与 bootstrap 服务器相同的子网中配置函数应用程序,因此您将需要两个子网。正如您可以与 P2S(点到站点)连接联系起来一样,我们连接两台虚拟机,一台是外部的,另一台是内部的。对于这种类型的连接,您需要 VPN 网关和应用程序网关本身,这将创建另一个子网。

• 因此,根据上述结论,您将需要两个子网来在外部Kafka 服务器和Azure 上托管的函数应用程序之间创建连接。您还可以参考下面的链接,了解有关在封闭虚拟网络中的 Azure 上配置和部署 Kafka 集群和函数应用程序的更多详细信息。在本文档中,已部署资源的架构意味着要部署的 Kafka 服务器和功能应用程序将托管在同一虚拟网络内的不同子网上。

https://techcommunity.microsoft.com/t5/apps-on-azure-blog/collaborate-kafka-and-azure-functions-securely-within-filled/ba-p/2429394

另外,有关使用其他平台设置 Kafka 引导服务器以及 Azure 中类似资源的更多详细信息,请参阅下面记录的示例链接:-

https://learn.microsoft.com/en-us/samples/azure/azure-functions-kafka-extension-sample-confluence/azure-functions-kafka-extension-sample-using-confluence-cloud/< /a>

https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-vnet

• Since your Kafka Server is an external server and you have deployed a bootstrap-config server to connect and forward the Azure resources metadata to the Kafka server while also configuring the function app in the same subnet as the bootstrap server, you will need two subnets. As you can relate with P2S(Point-to-Site) connectivity where we connect two virtual machines, one is external and the other one is internal. For this type of connection, you require a VPN gateway and application gateway itself which will create another subnet.

• Hence, from the above conclusion, you will require two subnets to create a connection between external Kafka server and function application hosted on Azure. You can also refer to the link below for more details on configuring and deploying a Kafka cluster and a function app on Azure within a closed virtual network. In this document, the architecture of the deployed resources implies that the Kafka server and the function app to be deployed will be hosted on different subnets within the same virtual network.

https://techcommunity.microsoft.com/t5/apps-on-azure-blog/collaborate-kafka-and-azure-functions-securely-within-closed/ba-p/2429394

Also, for more details on setting up the Kafka bootstrap server with other platforms, and similar resources in Azure, please refer to the below documented sample link: -

https://learn.microsoft.com/en-us/samples/azure/azure-functions-kafka-extension-sample-confluent/azure-functions-kafka-extension-sample-using-confluent-cloud/

https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-vnet

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文